Skip to content

Commit

Permalink
Merge pull request #5 from Kubernetli/kkl_init
Browse files Browse the repository at this point in the history
update pipelines
  • Loading branch information
chifu1234 authored Jul 8, 2020
2 parents 62de217 + 750899f commit 40ea43b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
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

0 comments on commit 40ea43b

Please sign in to comment.