Documentation ¶
Overview ¶
Package cmd provides docker-lock's cli.
Index ¶
- Variables
- func Execute(client *registry.HTTPClient) error
- func NewGenerateCmd(client *registry.HTTPClient) (*cobra.Command, error)
- func NewLockCmd() *cobra.Command
- func NewRewriteCmd() (*cobra.Command, error)
- func NewRootCmd() *cobra.Command
- func NewVerifyCmd(client *registry.HTTPClient) (*cobra.Command, error)
- func NewVersionCmd() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
var Version = "v0.0.1" //nolint: gochecknoglobals
Version is the docker-lock version. In the CD pipeline, this value is overridden to match the git tag.
Functions ¶
func Execute ¶
func Execute(client *registry.HTTPClient) error
Execute creates all of docker-lock's commands, adds appropriate commands to each other, and executes the root command.
func NewGenerateCmd ¶
func NewGenerateCmd(client *registry.HTTPClient) (*cobra.Command, error)
NewGenerateCmd creates the command 'generate' used in 'docker lock generate'.
func NewLockCmd ¶
NewLockCmd creates the command 'lock' used in 'docker lock'.
func NewRewriteCmd ¶
NewRewriteCmd creates the command 'rewrite' used in 'docker lock rewrite'.
func NewRootCmd ¶
NewRootCmd creates the root command for docker-lock.
func NewVerifyCmd ¶
func NewVerifyCmd(client *registry.HTTPClient) (*cobra.Command, error)
NewVerifyCmd creates the command 'verify' used in 'docker lock verify'.
func NewVersionCmd ¶ added in v0.0.7
NewVersionCmd creates the command 'version' used in 'docker lock version'.
Types ¶
This section is empty.