Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper struct { }
Helper contains all the valid config options for connecting to Docker from a command line.
func NewHelper ¶
func NewHelper() *Helper
NewHelper creates a Flags object with the default values set. Use this to use consistent Docker client loading behavior from different contexts.
func (*Helper) GetClient ¶
GetClient returns a valid Docker client, the address of the client, or an error if the client couldn't be created.
func (*Helper) GetClientOrExit ¶
GetClientOrExit returns a valid Docker client and the address of the client, or prints an error and exits.
func (*Helper) GetKubeClient ¶ added in v1.3.0
func (_ *Helper) GetKubeClient() (*KubeDocker, string, error)
GetKubeClient returns the Kubernetes Docker client.
func (*Helper) InstallFlags ¶
InstallFlags installs the Docker flag helper into a FlagSet with the default options and default values from the Helper object.
type KubeDocker ¶ added in v1.3.0
type KubeDocker struct {
dockertools.DockerInterface
}
KubeDocker provides a wrapper to Kubernetes Docker interface This wrapper is compatible with OpenShift Docker interface.
func (*KubeDocker) Ping ¶ added in v1.3.0
func (c *KubeDocker) Ping() error
Ping implements the DockerInterface Ping method.