docker

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (_ *Helper) GetClient() (client *docker.Client, endpoint string, err error)

GetClient returns a valid Docker client, the address of the client, or an error if the client couldn't be created.

func (*Helper) GetClientOrExit

func (h *Helper) GetClientOrExit() (*docker.Client, string)

GetClientOrExit returns a valid Docker client and the address of the client, or prints an error and exits.

func (*Helper) InstallFlags

func (_ *Helper) InstallFlags(flags *pflag.FlagSet)

InstallFlags installs the Docker flag helper into a FlagSet with the default options and default values from the Helper object.

Jump to

Keyboard shortcuts

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