gcloud

package
v0.0.0-...-937b75d Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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 (p *GcloudProvider) CreateEmptyVolume(name string, size int) (*types.Volume, error)

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

Jump to

Keyboard shortcuts

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