client

package
v0.0.0-...-536613a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2016 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

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

func (cli *Get3WCli) CheckTtyInput(attachStdin, ttyMode bool) error

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

func (cli *Get3WCli) CmdBuild(args ...string) error

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

func (cli *Get3WCli) CmdGet(args ...string) error

CmdGet get an app repository from the remote address.

Usage: get3w get [OPTIONS] REMOTEURL DIR

func (*Get3WCli) CmdLogin

func (cli *Get3WCli) CmdLogin(args ...string) error

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

func (cli *Get3WCli) CmdLogout(args ...string) error

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

func (cli *Get3WCli) CmdPush(args ...string) error

CmdPush pushs an app or a repository to the registry.

Usage: get3w push [OPTIONS] URL DIR

func (*Get3WCli) CmdRun

func (cli *Get3WCli) CmdRun(args ...string) error

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) CmdStatus

func (cli *Get3WCli) CmdStatus(args ...string) error

CmdStatus show the working app status.

Usage: get3w status

func (*Get3WCli) CmdVersion

func (cli *Get3WCli) CmdVersion(args ...string) error

CmdVersion show the Get3W version information.

Usage: get3w version

func (*Get3WCli) CmdWatch

func (cli *Get3WCli) CmdWatch(args ...string) error

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

func (cli *Get3WCli) HTTPClient() *http.Client

HTTPClient creates a new HTTP client with the cli's client transport instance.

func (*Get3WCli) Initialize

func (cli *Get3WCli) Initialize() error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL