Documentation ¶
Index ¶
- Constants
- func GetCreateFlags() []cli.Flag
- func NewDriver(machineName string, storePath string, caCert string, privateKey string) (drivers.Driver, error)
- type ComputeUtil
- type CreateFlags
- type Driver
- func (driver *Driver) Create() error
- func (driver *Driver) DriverName() string
- func (d *Driver) GetDockerConfigDir() string
- func (driver *Driver) GetIP() (string, error)
- func (driver *Driver) GetSSHCommand(args ...string) (*exec.Cmd, error)
- func (driver *Driver) GetState() (state.State, error)
- func (driver *Driver) GetURL() (string, error)
- func (driver *Driver) Kill() error
- func (d *Driver) PreCreateCheck() error
- func (driver *Driver) Remove() error
- func (driver *Driver) Restart() error
- func (driver *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
- func (driver *Driver) Start() error
- func (d *Driver) StartDocker() error
- func (driver *Driver) Stop() error
- func (d *Driver) StopDocker() error
- func (driver *Driver) Upgrade() error
Constants ¶
View Source
const ( AuthURL = "https://accounts.google.com/o/oauth2/auth" TokenURL = "https://accounts.google.com/o/oauth2/token" ClientId = "22738965389-8arp8bah3uln9eoenproamovfjj1ac33.apps.googleusercontent.com" ClientSecret = "qApc3amTyr5wI74vVrRWAfC_" RedirectURI = "urn:ietf:wg:oauth:2.0:oob" )
Variables ¶
This section is empty.
Functions ¶
func GetCreateFlags ¶
RegisterCreateFlags registers the flags this driver adds to "docker hosts create"
Types ¶
type ComputeUtil ¶
type ComputeUtil struct { SwarmMaster bool SwarmHost string // contains filtered or unexported fields }
ComputeUtil is used to wrap the raw GCE API code and store common parameters.
type CreateFlags ¶
type CreateFlags struct { Zone *string MachineType *string UserName *string Project *string DiskSize *int }
CreateFlags are the command line flags used to create a driver.
type Driver ¶
type Driver struct { MachineName string Zone string MachineType string DiskSize int UserName string Project string CaCertPath string PrivateKeyPath string SwarmMaster bool SwarmHost string SwarmDiscovery string // contains filtered or unexported fields }
Driver is a struct compatible with the docker.hosts.drivers.Driver interface.
func (*Driver) DriverName ¶
DriverName returns the name of the driver.
func (*Driver) GetDockerConfigDir ¶
func (*Driver) GetSSHCommand ¶
GetSSHCommand returns a command that will run over SSH on the GCE instance.
func (*Driver) GetState ¶
GetState returns a docker.hosts.state.State value representing the current state of the host.
func (*Driver) PreCreateCheck ¶
func (*Driver) SetConfigFromFlags ¶
func (driver *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
SetConfigFromFlags initializes the driver based on the command line flags.
func (*Driver) StartDocker ¶
func (*Driver) StopDocker ¶
Click to show internal directories.
Click to hide internal directories.