Documentation ¶
Index ¶
- type Get3WCli
- func (cli *Get3WCli) CheckTtyInput(attachStdin, ttyMode bool) error
- func (cli *Get3WCli) CmdBuild(args ...string) error
- func (cli *Get3WCli) CmdGet(args ...string) error
- func (cli *Get3WCli) CmdLogin(args ...string) error
- func (cli *Get3WCli) CmdLogout(args ...string) error
- func (cli *Get3WCli) CmdPush(args ...string) error
- func (cli *Get3WCli) CmdRun(args ...string) error
- func (cli *Get3WCli) CmdStatus(args ...string) error
- func (cli *Get3WCli) CmdVersion(args ...string) error
- func (cli *Get3WCli) CmdWatch(args ...string) error
- func (cli *Get3WCli) HTTPClient() *http.Client
- func (cli *Get3WCli) Initialize() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Get3WCli ¶
type Get3WCli struct {
// contains filtered or unexported fields
}
Get3WCli represents the docker command line client. Instances of the client can be returned from NewGet3WCli.
func NewGet3WCli ¶
func NewGet3WCli(in io.ReadCloser, out, err io.Writer, clientFlags *cli.ClientFlags) *Get3WCli
NewGet3WCli returns a Get3WCli instance with IO output and error streams set by in, out and err. The key file, protocol (i.e. unix) and address are passed in as strings, along with the tls.Config. If the tls.Config is set the client scheme will be set to https. The client will be given a 32-second timeout (see https://github.com/docker/docker/pull/8035).
func (*Get3WCli) CheckTtyInput ¶
CheckTtyInput checks if we are trying to attach to a container tty from a non-tty client input stream, and if so, returns an error.
func (*Get3WCli) CmdBuild ¶
CmdBuild builds a new image from the source code at a given path.
If '-' is provided instead of a path or URL, Docker will build an image from either a Dockerfile or tar archive read from STDIN.
Usage: get3w build [OPTIONS] PATH | URL | -
func (*Get3WCli) CmdGet ¶
CmdGet get an app repository from the remote address.
Usage: get3w get [OPTIONS] REMOTEURL DIR
func (*Get3WCli) CmdLogin ¶
CmdLogin logs in or registers a user to a Docker registry service.
If no server is specified, the user will be logged into or registered to the registry's index server.
Usage: get3w login SERVER
func (*Get3WCli) CmdLogout ¶
CmdLogout logs a user out from a Docker registry.
If no server is specified, the user will be logged out from the registry's index server.
Usage: get3w logout [SERVER]
func (*Get3WCli) CmdPush ¶
CmdPush pushs an app or a repository to the registry.
Usage: get3w push [OPTIONS] URL DIR
func (*Get3WCli) CmdRun ¶
CmdRun builds a new image from the source code at a given path.
If '-' is provided instead of a path or URL, Docker will build an image from either a Dockerfile or tar archive read from STDIN.
Usage: get3w run [OPTIONS] PATH | URL | -
func (*Get3WCli) CmdWatch ¶
CmdWatch builds a new image from the source code at a given path.
If '-' is provided instead of a path or URL, Docker will build an image from either a Dockerfile or tar archive read from STDIN.
Usage: get3w run [OPTIONS] PATH | URL | -
func (*Get3WCli) HTTPClient ¶
HTTPClient creates a new HTTP client with the cli's client transport instance.
func (*Get3WCli) Initialize ¶
Initialize calls the init function that will setup the configuration for the client such as the TLS, tcp and other parameters used to run the client.