Skip to content

Commit

Permalink
feat(ipfs): add token to manage IPFS CLI (#3095)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot committed Apr 27, 2023
1 parent 4a8ed8d commit 68609e8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require (
github.com/moby/buildkit v0.11.6
github.com/opencontainers/go-digest v1.0.0
github.com/pkg/errors v0.9.1
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.16.0.20230424152630-05355b6e32c3
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.16.0.20230425114903-9de7ce5b674f
github.com/spf13/cobra v1.7.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6L
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.16.0.20230424152630-05355b6e32c3 h1:Qc8zmH5LqWj3veWJrX1tXrQU7O2QJCdAJ9oPPJfZM2s=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.16.0.20230424152630-05355b6e32c3/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.16.0.20230425114903-9de7ce5b674f h1:h/skrTv7wKdxr88CjkD2cdVLaWqarBwXRQTE1XCraKg=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.16.0.20230425114903-9de7ce5b674f/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg=
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
Expand Down
10 changes: 10 additions & 0 deletions internal/namespaces/ipfs/v1alpha1/ipfs_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func GetGeneratedCommands() *core.Commands {
ipfsRoot(),
ipfsIpfs(),
ipfsVolume(),
ipfsToken(),
ipfsVolumeCreate(),
ipfsVolumeGet(),
ipfsVolumeList(),
Expand Down Expand Up @@ -60,6 +61,15 @@ func ipfsVolume() *core.Command {
}
}

func ipfsToken() *core.Command {
return &core.Command{
Short: `manage token in ipfs cli`,
Long: `manage token in ipfs cli.`,
Namespace: "ipfs",
Resource: "token",
}
}

func ipfsVolumeCreate() *core.Command {
return &core.Command{
Short: `Create volume in S3 bucket`,
Expand Down

0 comments on commit 68609e8

Please sign in to comment.