Documentation ¶
Index ¶
- Constants
- func PhotonStateFile() string
- type PhotonProvider
- func (p *PhotonProvider) AttachVolume(id, instanceId, mntPoint string) error
- func (p *PhotonProvider) CreateVolume(params types.CreateVolumeParams) (_ *types.Volume, err error)
- func (p *PhotonProvider) DeleteImage(id string, force bool) error
- func (p *PhotonProvider) DeleteInstance(id string, force bool) error
- func (p *PhotonProvider) DeleteVolume(id string, force bool) error
- func (p *PhotonProvider) DeployInstanceListener(config config.Photon) error
- func (p *PhotonProvider) DetachVolume(id string) error
- func (p *PhotonProvider) GetConfig() providers.ProviderConfig
- func (p *PhotonProvider) GetImage(nameOrIdPrefix string) (*types.Image, error)
- func (p *PhotonProvider) GetInstance(nameOrIdPrefix string) (*types.Instance, error)
- func (p *PhotonProvider) GetInstanceLogs(id string) (string, error)
- func (p *PhotonProvider) GetVolume(nameOrIdPrefix string) (*types.Volume, error)
- func (p *PhotonProvider) ListImages() ([]*types.Image, error)
- func (p *PhotonProvider) ListInstances() ([]*types.Instance, error)
- func (p *PhotonProvider) ListVolumes() ([]*types.Volume, error)
- func (p *PhotonProvider) PullImage(params types.PullImagePararms) error
- func (p *PhotonProvider) PushImage(params types.PushImagePararms) error
- func (p *PhotonProvider) RemoteDeleteImage(params types.RemoteDeleteImagePararms) error
- func (p *PhotonProvider) RunInstance(params types.RunInstanceParams) (_ *types.Instance, err error)
- func (p *PhotonProvider) Stage(params types.StageImageParams) (_ *types.Image, err error)
- func (p *PhotonProvider) StartInstance(id string) error
- func (p *PhotonProvider) StopInstance(id string) error
- func (p *PhotonProvider) WithState(state state.State) *PhotonProvider
Constants ¶
View Source
const PhotonUnikInstanceListener = "PhotonUnikInstanceListener"
Variables ¶
This section is empty.
Functions ¶
func PhotonStateFile ¶
func PhotonStateFile() string
Types ¶
type PhotonProvider ¶
type PhotonProvider struct {
// contains filtered or unexported fields
}
func NewPhotonProvider ¶
func NewPhotonProvider(config config.Photon) (*PhotonProvider, error)
func (*PhotonProvider) AttachVolume ¶
func (p *PhotonProvider) AttachVolume(id, instanceId, mntPoint string) error
func (*PhotonProvider) CreateVolume ¶
func (p *PhotonProvider) CreateVolume(params types.CreateVolumeParams) (_ *types.Volume, err error)
func (*PhotonProvider) DeleteImage ¶
func (p *PhotonProvider) DeleteImage(id string, force bool) error
func (*PhotonProvider) DeleteInstance ¶
func (p *PhotonProvider) DeleteInstance(id string, force bool) error
func (*PhotonProvider) DeleteVolume ¶
func (p *PhotonProvider) DeleteVolume(id string, force bool) error
func (*PhotonProvider) DeployInstanceListener ¶
func (p *PhotonProvider) DeployInstanceListener(config config.Photon) error
func (*PhotonProvider) DetachVolume ¶
func (p *PhotonProvider) DetachVolume(id string) error
func (*PhotonProvider) GetConfig ¶
func (p *PhotonProvider) GetConfig() providers.ProviderConfig
func (*PhotonProvider) GetImage ¶
func (p *PhotonProvider) GetImage(nameOrIdPrefix string) (*types.Image, error)
func (*PhotonProvider) GetInstance ¶
func (p *PhotonProvider) GetInstance(nameOrIdPrefix string) (*types.Instance, error)
func (*PhotonProvider) GetInstanceLogs ¶
func (p *PhotonProvider) GetInstanceLogs(id string) (string, error)
func (*PhotonProvider) GetVolume ¶
func (p *PhotonProvider) GetVolume(nameOrIdPrefix string) (*types.Volume, error)
func (*PhotonProvider) ListImages ¶
func (p *PhotonProvider) ListImages() ([]*types.Image, error)
func (*PhotonProvider) ListInstances ¶
func (p *PhotonProvider) ListInstances() ([]*types.Instance, error)
func (*PhotonProvider) ListVolumes ¶
func (p *PhotonProvider) ListVolumes() ([]*types.Volume, error)
func (*PhotonProvider) PullImage ¶
func (p *PhotonProvider) PullImage(params types.PullImagePararms) error
func (*PhotonProvider) PushImage ¶
func (p *PhotonProvider) PushImage(params types.PushImagePararms) error
func (*PhotonProvider) RemoteDeleteImage ¶
func (p *PhotonProvider) RemoteDeleteImage(params types.RemoteDeleteImagePararms) error
func (*PhotonProvider) RunInstance ¶
func (p *PhotonProvider) RunInstance(params types.RunInstanceParams) (_ *types.Instance, err error)
func (*PhotonProvider) Stage ¶
func (p *PhotonProvider) Stage(params types.StageImageParams) (_ *types.Image, err error)
func (*PhotonProvider) StartInstance ¶
func (p *PhotonProvider) StartInstance(id string) error
func (*PhotonProvider) StopInstance ¶
func (p *PhotonProvider) StopInstance(id string) error
func (*PhotonProvider) WithState ¶
func (p *PhotonProvider) WithState(state state.State) *PhotonProvider
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
- photon_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.