Documentation
¶
Index ¶
- func ExactArgs(number int) cobra.PositionalArgs
- func NoArgs(cmd *cobra.Command, args []string) error
- func RequiresMaxArgs(max int) cobra.PositionalArgs
- func RequiresMinArgs(min int) cobra.PositionalArgs
- func RequiresRangeArgs(min int, max int) cobra.PositionalArgs
- type Cli
- type DockerCli
- type Streams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExactArgs ¶
func ExactArgs(number int) cobra.PositionalArgs
ExactArgs returns an error if there is not the exact number of args
func RequiresMaxArgs ¶
func RequiresMaxArgs(max int) cobra.PositionalArgs
RequiresMaxArgs returns an error if there is not at most max args
func RequiresMinArgs ¶
func RequiresMinArgs(min int) cobra.PositionalArgs
RequiresMinArgs returns an error if there is not at least min args
func RequiresRangeArgs ¶
func RequiresRangeArgs(min int, max int) cobra.PositionalArgs
RequiresRangeArgs returns an error if there is not at least min args and at most max args
Types ¶
type DockerCli ¶
type DockerCli struct {
// contains filtered or unexported fields
}
DockerCli is an instance the docker command line client. Instances of the client can be returned from NewDockerCli.
func NewDockerCli ¶
func NewDockerCli() *DockerCli
NewDockerCli returns a DockerCli instance with all operators applied on it. It applies by default the standard streams, and the content trust from environment.