cpi

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachDiskMethod

type AttachDiskMethod struct {
	// contains filtered or unexported fields
}

func NewAttachDiskMethod

func NewAttachDiskMethod(vmFinder bvm.Finder, diskFinder bdisk.Finder) AttachDiskMethod

func (AttachDiskMethod) AttachDisk

func (a AttachDiskMethod) AttachDisk(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) error

type CreateDiskMethod

type CreateDiskMethod struct {
	// contains filtered or unexported fields
}

func NewCreateDiskMethod

func NewCreateDiskMethod(diskCreator bdisk.Creator) CreateDiskMethod

func (CreateDiskMethod) CreateDisk

func (a CreateDiskMethod) CreateDisk(
	size int, _ apiv1.DiskCloudProps, vmCID *apiv1.VMCID) (apiv1.DiskCID, error)

type CreateStemcellMethod

type CreateStemcellMethod struct {
	// contains filtered or unexported fields
}

func NewCreateStemcellMethod

func NewCreateStemcellMethod(stemcellImporter bstem.Importer) CreateStemcellMethod

func (CreateStemcellMethod) CreateStemcell

func (a CreateStemcellMethod) CreateStemcell(
	imagePath string, _ apiv1.StemcellCloudProps) (apiv1.StemcellCID, error)

type CreateVMMethod

type CreateVMMethod struct {
	// contains filtered or unexported fields
}

func NewCreateVMMethod

func NewCreateVMMethod(stemcellFinder bstem.Finder, vmCreator bvm.Creator) CreateVMMethod

func (CreateVMMethod) CreateVM

func (a CreateVMMethod) CreateVM(
	agentID apiv1.AgentID, stemcellCID apiv1.StemcellCID, cloudProps apiv1.VMCloudProps,
	networks apiv1.Networks, diskCIDs []apiv1.DiskCID, env apiv1.VMEnv) (apiv1.VMCID, error)

type DeleteDiskMethod

type DeleteDiskMethod struct {
	// contains filtered or unexported fields
}

func NewDeleteDiskMethod

func NewDeleteDiskMethod(diskFinder bdisk.Finder) DeleteDiskMethod

func (DeleteDiskMethod) DeleteDisk

func (a DeleteDiskMethod) DeleteDisk(diskCID apiv1.DiskCID) error

type DeleteStemcellMethod

type DeleteStemcellMethod struct {
	// contains filtered or unexported fields
}

func NewDeleteStemcellMethod

func NewDeleteStemcellMethod(stemcellFinder bstem.Finder) DeleteStemcellMethod

func (DeleteStemcellMethod) DeleteStemcell

func (a DeleteStemcellMethod) DeleteStemcell(cid apiv1.StemcellCID) error

type DeleteVMMethod

type DeleteVMMethod struct {
	// contains filtered or unexported fields
}

func NewDeleteVMMethod

func NewDeleteVMMethod(vmFinder bvm.Finder) DeleteVMMethod

func (DeleteVMMethod) DeleteVM

func (a DeleteVMMethod) DeleteVM(cid apiv1.VMCID) error

type DetachDiskMethod

type DetachDiskMethod struct {
	// contains filtered or unexported fields
}

func NewDetachDiskMethod

func NewDetachDiskMethod(vmFinder bvm.Finder, diskFinder bdisk.Finder) DetachDiskMethod

func (DetachDiskMethod) DetachDisk

func (a DetachDiskMethod) DetachDisk(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) error

type DockerOpts

type DockerOpts struct {
	Host       string
	APIVersion string `json:"api_version"`
	TLS        DockerOptsTLS
}

func (DockerOpts) RequiresTLS added in v0.0.3

func (o DockerOpts) RequiresTLS() bool

func (DockerOpts) Validate

func (o DockerOpts) Validate() error

type DockerOptsTLS added in v0.0.5

type DockerOptsTLS struct {
	CA          string
	Certificate string
	PrivateKey  string `json:"private_key"`
}

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(
	fs boshsys.FileSystem,
	uuidGen boshuuid.Generator,
	opts FactoryOpts,
	logger boshlog.Logger,
) Factory

func (Factory) New

func (f Factory) New(ctx apiv1.CallContext) (apiv1.CPI, error)

type FactoryOpts

type FactoryOpts struct {
	Docker DockerOpts
	Agent  apiv1.AgentOptions
}

func (FactoryOpts) Validate

func (o FactoryOpts) Validate() error

type GetDisksMethod

type GetDisksMethod struct {
	// contains filtered or unexported fields
}

func NewGetDisksMethod

func NewGetDisksMethod(vmFinder bvm.Finder) GetDisksMethod

func (GetDisksMethod) GetDisks

func (a GetDisksMethod) GetDisks(cid apiv1.VMCID) ([]apiv1.DiskCID, error)

type HasDiskMethod

type HasDiskMethod struct {
	// contains filtered or unexported fields
}

func NewHasDiskMethod

func NewHasDiskMethod(diskFinder bdisk.Finder) HasDiskMethod

func (HasDiskMethod) HasDisk

func (a HasDiskMethod) HasDisk(cid apiv1.DiskCID) (bool, error)

type HasVMMethod

type HasVMMethod struct {
	// contains filtered or unexported fields
}

func NewHasVMMethod

func NewHasVMMethod(vmFinder bvm.Finder) HasVMMethod

func (HasVMMethod) HasVM

func (a HasVMMethod) HasVM(vmCID apiv1.VMCID) (bool, error)

type InfoMethod

type InfoMethod struct{}

func NewInfoMethod

func NewInfoMethod() InfoMethod

func (InfoMethod) Info

func (a InfoMethod) Info() (apiv1.Info, error)

type RebootVMMethod

type RebootVMMethod struct{}

func NewRebootVMMethod

func NewRebootVMMethod() RebootVMMethod

func (RebootVMMethod) RebootVM

func (a RebootVMMethod) RebootVM(vmCID apiv1.VMCID) error

type SetVMMetadataMethod

type SetVMMetadataMethod struct{}

func NewSetVMMetadataMethod

func NewSetVMMetadataMethod() SetVMMetadataMethod

func (SetVMMetadataMethod) SetVMMetadata

func (a SetVMMetadataMethod) SetVMMetadata(vmCID apiv1.VMCID, meta apiv1.VMMeta) error

Jump to

Keyboard shortcuts

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