Documentation ¶
Index ¶
- Constants
- Variables
- func VsphereStateFile() string
- type VsphereProvider
- func (p *VsphereProvider) AttachVolume(id, instanceId, mntPoint string) error
- func (p *VsphereProvider) CreateVolume(params types.CreateVolumeParams) (_ *types.Volume, err error)
- func (p *VsphereProvider) DeleteImage(id string, force bool) error
- func (p *VsphereProvider) DeleteInstance(id string, force bool) error
- func (p *VsphereProvider) DeleteVolume(id string, force bool) error
- func (p *VsphereProvider) DetachVolume(id string) error
- func (p *VsphereProvider) GetConfig() providers.ProviderConfig
- func (p *VsphereProvider) GetImage(nameOrIdPrefix string) (*types.Image, error)
- func (p *VsphereProvider) GetInstance(nameOrIdPrefix string) (*types.Instance, error)
- func (p *VsphereProvider) GetInstanceLogs(id string) (string, error)
- func (p *VsphereProvider) GetVolume(nameOrIdPrefix string) (*types.Volume, error)
- func (p *VsphereProvider) ListImages() ([]*types.Image, error)
- func (p *VsphereProvider) ListInstances() ([]*types.Instance, error)
- func (p *VsphereProvider) ListVolumes() ([]*types.Volume, error)
- func (p *VsphereProvider) PullImage(params types.PullImagePararms) error
- func (p *VsphereProvider) PushImage(params types.PushImagePararms) error
- func (p *VsphereProvider) RemoteDeleteImage(params types.RemoteDeleteImagePararms) error
- func (p *VsphereProvider) RunInstance(params types.RunInstanceParams) (_ *types.Instance, err error)
- func (p *VsphereProvider) Stage(params types.StageImageParams) (_ *types.Image, err error)
- func (p *VsphereProvider) StartInstance(id string) error
- func (p *VsphereProvider) StopInstance(id string) error
- func (p *VsphereProvider) WithState(state state.State) *VsphereProvider
Constants ¶
View Source
const VsphereUnikInstanceListener = "VsphereUnikInstanceListener"
Variables ¶
View Source
var VsphereImagesDirectory = "unik/vsphere/images/"
View Source
var VsphereVolumesDirectory = "unik/vsphere/volumes/"
Functions ¶
func VsphereStateFile ¶
func VsphereStateFile() string
Types ¶
type VsphereProvider ¶
type VsphereProvider struct {
// contains filtered or unexported fields
}
func NewVsphereProvier ¶
func NewVsphereProvier(config config.Vsphere) (*VsphereProvider, error)
func (*VsphereProvider) AttachVolume ¶
func (p *VsphereProvider) AttachVolume(id, instanceId, mntPoint string) error
func (*VsphereProvider) CreateVolume ¶
func (p *VsphereProvider) CreateVolume(params types.CreateVolumeParams) (_ *types.Volume, err error)
func (*VsphereProvider) DeleteImage ¶
func (p *VsphereProvider) DeleteImage(id string, force bool) error
func (*VsphereProvider) DeleteInstance ¶
func (p *VsphereProvider) DeleteInstance(id string, force bool) error
func (*VsphereProvider) DeleteVolume ¶
func (p *VsphereProvider) DeleteVolume(id string, force bool) error
func (*VsphereProvider) DetachVolume ¶
func (p *VsphereProvider) DetachVolume(id string) error
func (*VsphereProvider) GetConfig ¶
func (p *VsphereProvider) GetConfig() providers.ProviderConfig
func (*VsphereProvider) GetImage ¶
func (p *VsphereProvider) GetImage(nameOrIdPrefix string) (*types.Image, error)
func (*VsphereProvider) GetInstance ¶
func (p *VsphereProvider) GetInstance(nameOrIdPrefix string) (*types.Instance, error)
func (*VsphereProvider) GetInstanceLogs ¶
func (p *VsphereProvider) GetInstanceLogs(id string) (string, error)
func (*VsphereProvider) GetVolume ¶
func (p *VsphereProvider) GetVolume(nameOrIdPrefix string) (*types.Volume, error)
func (*VsphereProvider) ListImages ¶
func (p *VsphereProvider) ListImages() ([]*types.Image, error)
func (*VsphereProvider) ListInstances ¶
func (p *VsphereProvider) ListInstances() ([]*types.Instance, error)
func (*VsphereProvider) ListVolumes ¶
func (p *VsphereProvider) ListVolumes() ([]*types.Volume, error)
func (*VsphereProvider) PullImage ¶
func (p *VsphereProvider) PullImage(params types.PullImagePararms) error
func (*VsphereProvider) PushImage ¶
func (p *VsphereProvider) PushImage(params types.PushImagePararms) error
func (*VsphereProvider) RemoteDeleteImage ¶
func (p *VsphereProvider) RemoteDeleteImage(params types.RemoteDeleteImagePararms) error
func (*VsphereProvider) RunInstance ¶
func (p *VsphereProvider) RunInstance(params types.RunInstanceParams) (_ *types.Instance, err error)
func (*VsphereProvider) Stage ¶
func (p *VsphereProvider) Stage(params types.StageImageParams) (_ *types.Image, err error)
func (*VsphereProvider) StartInstance ¶
func (p *VsphereProvider) StartInstance(id string) error
func (*VsphereProvider) StopInstance ¶
func (p *VsphereProvider) StopInstance(id string) error
func (*VsphereProvider) WithState ¶
func (p *VsphereProvider) WithState(state state.State) *VsphereProvider
Source Files ¶
- attach_volume.go
- create_volume.go
- delete_image.go
- delete_instance.go
- delete_volume.go
- deploy_instance_listener.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
- pull_image.go
- push_image.go
- remote_delete_image.go
- run_instance.go
- stage.go
- start_instance.go
- stop_instance.go
- sync_state.go
- vsphere_provider.go
Click to show internal directories.
Click to hide internal directories.