Documentation ¶
Index ¶
- func GcloudStateFile() string
- type GcloudProvider
- func (p *GcloudProvider) AttachVolume(id, instanceId, mntPoint string) error
- func (p *GcloudProvider) CreateEmptyVolume(name string, size int) (*types.Volume, error)
- func (p *GcloudProvider) CreateVolume(params types.CreateVolumeParams) (*types.Volume, error)
- func (p *GcloudProvider) DeleteImage(id string, force bool) error
- func (p *GcloudProvider) DeleteInstance(id string, force bool) error
- func (p *GcloudProvider) DeleteVolume(id string, force bool) error
- func (p *GcloudProvider) DetachVolume(id string) error
- func (p *GcloudProvider) GetConfig() providers.ProviderConfig
- func (p *GcloudProvider) GetImage(nameOrIdPrefix string) (*types.Image, error)
- func (p *GcloudProvider) GetInstance(nameOrIdPrefix string) (*types.Instance, error)
- func (p *GcloudProvider) GetInstanceLogs(id string) (string, error)
- func (p *GcloudProvider) GetVolume(nameOrIdPrefix string) (*types.Volume, error)
- func (p *GcloudProvider) ListImages() ([]*types.Image, error)
- func (p *GcloudProvider) ListInstances() ([]*types.Instance, error)
- func (p *GcloudProvider) ListVolumes() ([]*types.Volume, error)
- func (p *GcloudProvider) PullImage(params types.PullImagePararms) error
- func (p *GcloudProvider) PushImage(params types.PushImagePararms) error
- func (p *GcloudProvider) RemoteDeleteImage(params types.RemoteDeleteImagePararms) error
- func (p *GcloudProvider) RunInstance(params types.RunInstanceParams) (_ *types.Instance, err error)
- func (p *GcloudProvider) Stage(params types.StageImageParams) (_ *types.Image, err error)
- func (p *GcloudProvider) StartInstance(id string) error
- func (p *GcloudProvider) StopInstance(id string) error
- func (p *GcloudProvider) WithState(state state.State) *GcloudProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GcloudStateFile ¶
func GcloudStateFile() string
Types ¶
type GcloudProvider ¶
type GcloudProvider struct {
// contains filtered or unexported fields
}
func NewGcloudProvier ¶
func NewGcloudProvier(config config.Gcloud) (*GcloudProvider, error)
func (*GcloudProvider) AttachVolume ¶
func (p *GcloudProvider) AttachVolume(id, instanceId, mntPoint string) error
func (*GcloudProvider) CreateEmptyVolume ¶
func (*GcloudProvider) CreateVolume ¶
func (p *GcloudProvider) CreateVolume(params types.CreateVolumeParams) (*types.Volume, error)
func (*GcloudProvider) DeleteImage ¶
func (p *GcloudProvider) DeleteImage(id string, force bool) error
func (*GcloudProvider) DeleteInstance ¶
func (p *GcloudProvider) DeleteInstance(id string, force bool) error
func (*GcloudProvider) DeleteVolume ¶
func (p *GcloudProvider) DeleteVolume(id string, force bool) error
func (*GcloudProvider) DetachVolume ¶
func (p *GcloudProvider) DetachVolume(id string) error
func (*GcloudProvider) GetConfig ¶
func (p *GcloudProvider) GetConfig() providers.ProviderConfig
func (*GcloudProvider) GetImage ¶
func (p *GcloudProvider) GetImage(nameOrIdPrefix string) (*types.Image, error)
func (*GcloudProvider) GetInstance ¶
func (p *GcloudProvider) GetInstance(nameOrIdPrefix string) (*types.Instance, error)
func (*GcloudProvider) GetInstanceLogs ¶
func (p *GcloudProvider) GetInstanceLogs(id string) (string, error)
func (*GcloudProvider) GetVolume ¶
func (p *GcloudProvider) GetVolume(nameOrIdPrefix string) (*types.Volume, error)
func (*GcloudProvider) ListImages ¶
func (p *GcloudProvider) ListImages() ([]*types.Image, error)
func (*GcloudProvider) ListInstances ¶
func (p *GcloudProvider) ListInstances() ([]*types.Instance, error)
func (*GcloudProvider) ListVolumes ¶
func (p *GcloudProvider) ListVolumes() ([]*types.Volume, error)
func (*GcloudProvider) PullImage ¶
func (p *GcloudProvider) PullImage(params types.PullImagePararms) error
func (*GcloudProvider) PushImage ¶
func (p *GcloudProvider) PushImage(params types.PushImagePararms) error
func (*GcloudProvider) RemoteDeleteImage ¶
func (p *GcloudProvider) RemoteDeleteImage(params types.RemoteDeleteImagePararms) error
func (*GcloudProvider) RunInstance ¶
func (p *GcloudProvider) RunInstance(params types.RunInstanceParams) (_ *types.Instance, err error)
func (*GcloudProvider) Stage ¶
func (p *GcloudProvider) Stage(params types.StageImageParams) (_ *types.Image, err error)
func (*GcloudProvider) StartInstance ¶
func (p *GcloudProvider) StartInstance(id string) error
func (*GcloudProvider) StopInstance ¶
func (p *GcloudProvider) StopInstance(id string) error
func (*GcloudProvider) WithState ¶
func (p *GcloudProvider) WithState(state state.State) *GcloudProvider
Source Files ¶
- attach_volume.go
- create_volume.go
- delete_image.go
- delete_instance.go
- delete_volume.go
- detach_volume.go
- gcloud_provider.go
- get_config.go
- get_image.go
- get_instance.go
- get_instance_logs.go
- get_volume.go
- list_images.go
- list_instances.go
- list_volumes.go
- pull_image.go
- push_image.go
- remote_delete_image.go
- run_instance.go
- stage.go
- start_instance.go
- stop_instance.go
- wait_operation.go
Click to show internal directories.
Click to hide internal directories.