Documentation ¶
Index ¶
- Constants
- func GetCreateFlags() []cli.Flag
- func NewDriver(machineName string, storePath string) (drivers.Driver, error)
- type ComputeUtil
- type CreateFlags
- type Driver
- func (driver *Driver) Create() error
- func (driver *Driver) DriverName() 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 (driver *Driver) Remove() error
- func (driver *Driver) Restart() error
- func (driver *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
- func (driver *Driver) Start() error
- func (driver *Driver) Stop() 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 {
// contains filtered or unexported fields
}
ComputeUtil is used to wrap the raw GCE API code and store common parameters.
type CreateFlags ¶
CreateFlags are the command line flags used to create a driver.
type Driver ¶
type Driver struct { MachineName string Zone string MachineType string UserName string Project 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) 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) SetConfigFromFlags ¶
func (driver *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
SetConfigFromFlags initializes the driver based on the command line flags.
Click to show internal directories.
Click to hide internal directories.