resources

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerImageHandler

type DockerImageHandler struct {
	Region  idrv.RegionInfo
	Context context.Context
	Client  *client.Client
}

func (*DockerImageHandler) CreateImage

func (imageHandler *DockerImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)

(1) pull from dockerhub (2) get repo digests id from pulling return (3) get all image summary from local repos (4) get image ID and OS Info from inspection

func (*DockerImageHandler) DeleteImage

func (imageHandler *DockerImageHandler) DeleteImage(imageIID irs.IID) (bool, error)

func (*DockerImageHandler) GetImage

func (imageHandler *DockerImageHandler) GetImage(imageIID irs.IID) (irs.ImageInfo, error)

func (*DockerImageHandler) ListImage

func (imageHandler *DockerImageHandler) ListImage() ([]*irs.ImageInfo, error)

type DockerVMHandler added in v0.1.9

type DockerVMHandler struct {
	Region  idrv.RegionInfo
	Context context.Context
	Client  *client.Client
}

func (*DockerVMHandler) GetVM added in v0.1.9

func (vmHandler *DockerVMHandler) GetVM(vmIID irs.IID) (irs.VMInfo, error)

func (*DockerVMHandler) GetVMStatus added in v0.1.9

func (vmHandler *DockerVMHandler) GetVMStatus(vmIID irs.IID) (irs.VMStatus, error)

func (*DockerVMHandler) ListVM added in v0.1.9

func (vmHandler *DockerVMHandler) ListVM() ([]*irs.VMInfo, error)

func (*DockerVMHandler) ListVMStatus added in v0.1.9

func (vmHandler *DockerVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)

func (*DockerVMHandler) RebootVM added in v0.1.9

func (vmHandler *DockerVMHandler) RebootVM(vmIID irs.IID) (irs.VMStatus, error)

func (*DockerVMHandler) ResumeVM added in v0.1.9

func (vmHandler *DockerVMHandler) ResumeVM(vmIID irs.IID) (irs.VMStatus, error)

func (*DockerVMHandler) StartVM added in v0.1.9

func (vmHandler *DockerVMHandler) StartVM(vmReqInfo irs.VMReqInfo) (irs.VMInfo, error)

func (*DockerVMHandler) SuspendVM added in v0.1.9

func (vmHandler *DockerVMHandler) SuspendVM(vmIID irs.IID) (irs.VMStatus, error)

func (*DockerVMHandler) TerminateVM added in v0.1.9

func (vmHandler *DockerVMHandler) TerminateVM(vmIID irs.IID) (irs.VMStatus, error)

(1) docker stop (2) docker rm

Jump to

Keyboard shortcuts

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