Documentation
¶
Index ¶
- func Execute()
- func RequiresMinArgs(min int) cobra.PositionalArgs
- type Cli
- type DebugCli
- func (cli *DebugCli) Apply(ops ...DebugCliOption) error
- func (cli *DebugCli) Client() client.APIClient
- func (cli *DebugCli) Close() error
- func (cli *DebugCli) Config() *config.Config
- func (cli *DebugCli) ContainerClean(ctx context.Context, id string) error
- func (cli *DebugCli) CreateContainer(attachContainer string, options execOptions) (string, error)
- func (cli *DebugCli) Err() io.Writer
- func (cli *DebugCli) ExecCreate(options execOptions, containerStr string) (types.IDResponse, error)
- func (cli *DebugCli) ExecStart(options execOptions, execID string) error
- func (cli *DebugCli) FindContainer(name string) (string, error)
- func (cli *DebugCli) FindImage(image string) ([]dockerImage.Summary, error)
- func (cli *DebugCli) In() *stream.InStream
- func (cli *DebugCli) Out() *stream.OutStream
- func (cli *DebugCli) Ping() (types.Ping, error)
- func (cli *DebugCli) PullImage(image string) error
- func (cli *DebugCli) SetIn(in *stream.InStream)
- func (cli *DebugCli) WatchContainer(ctx context.Context, containerID string) error
- type DebugCliOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequiresMinArgs ¶
func RequiresMinArgs(min int) cobra.PositionalArgs
RequiresMinArgs returns an error if there is not at least min args
Types ¶
type Cli ¶
type Cli interface { Client() client.APIClient Out() *stream.OutStream Err() io.Writer In() *stream.InStream SetIn(in *stream.InStream) PullImage(image string) error FindImage(image string) error Config() *config.Config }
Cli interface
type DebugCli ¶
type DebugCli struct {
// contains filtered or unexported fields
}
DebugCli cli struct
func NewDebugCli ¶
func NewDebugCli(ctx context.Context, ops ...DebugCliOption) (*DebugCli, error)
NewDebugCli new DebugCli
func (*DebugCli) Apply ¶
func (cli *DebugCli) Apply(ops ...DebugCliOption) error
Apply all the operation on the cli
func (*DebugCli) ContainerClean ¶
ContainerClean stop and remove container
func (*DebugCli) CreateContainer ¶
CreateContainer create new container and attach target container resource
func (*DebugCli) ExecCreate ¶
func (cli *DebugCli) ExecCreate(options execOptions, containerStr string) (types.IDResponse, error)
ExecCreate exec create
func (*DebugCli) FindContainer ¶
FindContainer find container
func (*DebugCli) FindImage ¶
func (cli *DebugCli) FindImage(image string) ([]dockerImage.Summary, error)
FindImage find image
type DebugCliOption ¶
DebugCliOption cli option
func WithClientConfig ¶
func WithClientConfig(dockerConfig *config.DockerConfig) DebugCliOption
WithClientConfig set docker config
Click to show internal directories.
Click to hide internal directories.