Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kkl init #6

Merged
merged 6 commits into from
Jul 8, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
update pipelines
Signed-off-by: Kevin  Klopfenstein <kk@sudo-i.net>
  • Loading branch information
chifu1234 committed Jul 8, 2020
commit 5966f079de894d4df6454d10e6805a43c594f0e6
9 changes: 7 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,21 @@ jobs:
fi

- name: Build
run: go build -v .
run: |
go build -v cmd/fmcCLI
go build -v pkg/fmcClient

- name: Test
run: go test -v .
run: |
go test -v cmd/fmcCLI
go test -v pkg/fmcClient

- name: go-crossbuild
uses: izumin5210/action-go-crossbuild@v1.0.0
with:
# An application name
name: fmcCLI
package: ./cmd/fmcCLI
# Space or comma separated list of GOARCH
- uses: softprops/action-gh-release@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/kubernetli/fmcClient

go 1.14
2 changes: 2 additions & 0 deletions pkg/fmcClient/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ type CreateNetworkInput struct {
ID string `json:"id"`
}

// UpdateNetworkOutput output format .
type UpdateNetworkOutput struct {
Links struct {
Self string `json:"self"`
Expand Down Expand Up @@ -154,6 +155,7 @@ func (c *Client) UpdateNetworks(i CreateNetworkInput) (*UpdateNetworkOutput, err
}
req.Body = ioutil.NopCloser(bytes.NewReader(t))
res := UpdateNetworkOutput{}

// create Pointer for Network Struct
err = c.sendRequest(req, &res)
if err != nil {
Expand Down