photon

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: 19 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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