Documentation ¶
Index ¶
- Constants
- func MergeConfWithEnv(conf *config.Openstack)
- func OpenstackStateFile() string
- type OpenstackProvider
- func (p *OpenstackProvider) AttachVolume(id, instanceId, mntPoint string) error
- func (p *OpenstackProvider) CreateVolume(params types.CreateVolumeParams) (_ *types.Volume, err error)
- func (p *OpenstackProvider) DeleteImage(id string, force bool) error
- func (p *OpenstackProvider) DeleteInstance(id string, force bool) error
- func (p *OpenstackProvider) DeleteVolume(id string, force bool) error
- func (p *OpenstackProvider) DetachVolume(id string) error
- func (p *OpenstackProvider) GetConfig() providers.ProviderConfig
- func (p *OpenstackProvider) GetImage(nameOrIdPrefix string) (*types.Image, error)
- func (p *OpenstackProvider) GetInstance(nameOrIdPrefix string) (*types.Instance, error)
- func (p *OpenstackProvider) GetInstanceLogs(id string) (string, error)
- func (p *OpenstackProvider) GetVolume(nameOrIdPrefix string) (*types.Volume, error)
- func (p *OpenstackProvider) ListImages() ([]*types.Image, error)
- func (p *OpenstackProvider) ListInstances() ([]*types.Instance, error)
- func (p *OpenstackProvider) ListVolumes() ([]*types.Volume, error)
- func (p *OpenstackProvider) PullImage(params types.PullImagePararms) error
- func (p *OpenstackProvider) PushImage(params types.PushImagePararms) error
- func (p *OpenstackProvider) RemoteDeleteImage(params types.RemoteDeleteImagePararms) error
- func (p *OpenstackProvider) RunInstance(params types.RunInstanceParams) (_ *types.Instance, err error)
- func (p *OpenstackProvider) Stage(params types.StageImageParams) (_ *types.Image, err error)
- func (p *OpenstackProvider) StartInstance(id string) error
- func (p *OpenstackProvider) StopInstance(id string) error
- func (p *OpenstackProvider) WithState(state state.State) *OpenstackProvider
Constants ¶
View Source
const DEFAULT_INSTANCE_DISKMB int = 10 * 1024 // 10 GB
Variables ¶
This section is empty.
Functions ¶
func MergeConfWithEnv ¶
MergeConfWithEnv overrides configuration with environment values (inplace).
func OpenstackStateFile ¶
func OpenstackStateFile() string
Types ¶
type OpenstackProvider ¶
type OpenstackProvider struct {
// contains filtered or unexported fields
}
func NewOpenstackProvider ¶
func NewOpenstackProvider(config config.Openstack) (*OpenstackProvider, error)
func (*OpenstackProvider) AttachVolume ¶
func (p *OpenstackProvider) AttachVolume(id, instanceId, mntPoint string) error
func (*OpenstackProvider) CreateVolume ¶
func (p *OpenstackProvider) CreateVolume(params types.CreateVolumeParams) (_ *types.Volume, err error)
func (*OpenstackProvider) DeleteImage ¶
func (p *OpenstackProvider) DeleteImage(id string, force bool) error
func (*OpenstackProvider) DeleteInstance ¶
func (p *OpenstackProvider) DeleteInstance(id string, force bool) error
func (*OpenstackProvider) DeleteVolume ¶
func (p *OpenstackProvider) DeleteVolume(id string, force bool) error
func (*OpenstackProvider) DetachVolume ¶
func (p *OpenstackProvider) DetachVolume(id string) error
func (*OpenstackProvider) GetConfig ¶
func (p *OpenstackProvider) GetConfig() providers.ProviderConfig
func (*OpenstackProvider) GetImage ¶
func (p *OpenstackProvider) GetImage(nameOrIdPrefix string) (*types.Image, error)
func (*OpenstackProvider) GetInstance ¶
func (p *OpenstackProvider) GetInstance(nameOrIdPrefix string) (*types.Instance, error)
func (*OpenstackProvider) GetInstanceLogs ¶
func (p *OpenstackProvider) GetInstanceLogs(id string) (string, error)
func (*OpenstackProvider) GetVolume ¶
func (p *OpenstackProvider) GetVolume(nameOrIdPrefix string) (*types.Volume, error)
func (*OpenstackProvider) ListImages ¶
func (p *OpenstackProvider) ListImages() ([]*types.Image, error)
func (*OpenstackProvider) ListInstances ¶
func (p *OpenstackProvider) ListInstances() ([]*types.Instance, error)
func (*OpenstackProvider) ListVolumes ¶
func (p *OpenstackProvider) ListVolumes() ([]*types.Volume, error)
func (*OpenstackProvider) PullImage ¶
func (p *OpenstackProvider) PullImage(params types.PullImagePararms) error
func (*OpenstackProvider) PushImage ¶
func (p *OpenstackProvider) PushImage(params types.PushImagePararms) error
func (*OpenstackProvider) RemoteDeleteImage ¶
func (p *OpenstackProvider) RemoteDeleteImage(params types.RemoteDeleteImagePararms) error
func (*OpenstackProvider) RunInstance ¶
func (p *OpenstackProvider) RunInstance(params types.RunInstanceParams) (_ *types.Instance, err error)
func (*OpenstackProvider) Stage ¶
func (p *OpenstackProvider) Stage(params types.StageImageParams) (_ *types.Image, err error)
func (*OpenstackProvider) StartInstance ¶
func (p *OpenstackProvider) StartInstance(id string) error
func (*OpenstackProvider) StopInstance ¶
func (p *OpenstackProvider) StopInstance(id string) error
func (*OpenstackProvider) WithState ¶
func (p *OpenstackProvider) WithState(state state.State) *OpenstackProvider
Source Files ¶
- attach_volume.go
- create_volume.go
- delete_image.go
- delete_instance.go
- delete_volume.go
- detach_volume.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
- openstack_auth.go
- openstack_provider.go
- pull_image.go
- push_image.go
- remote_delete_image.go
- run_instance.go
- stage.go
- start_instance.go
- stop_instance.go
Click to show internal directories.
Click to hide internal directories.