fakes

package
v29.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeInstanceService

type FakeInstanceService struct {
	AddAccessConfigCalled bool
	AddAccessConfigErr    error

	AttachDiskCalled     bool
	AttachDiskErr        error
	AttachDiskDeviceName string
	AttachDiskDevicePath string

	AttachedDisksCalled bool
	AttachedDisksErr    error
	AttachedDisksList   instance.AttachedDisks

	CleanUpCalled bool

	CreateCalled           bool
	CreateErr              error
	CreateID               string
	CreateVMProps          *instance.Properties
	CreateNetworks         instance.Networks
	CreateRegistryEndpoint string

	DeleteCalled bool
	DeleteErr    error

	DeleteAccessConfigCalled bool
	DeleteAccessConfigErr    error

	DetachDiskCalled bool
	DetachDiskErr    error

	DiskDetailCalled bool

	FindCalled   bool
	FindFound    bool
	FindInstance *compute.Instance
	FindErr      error

	RebootCalled bool
	RebootErr    error

	SetMetadataCalled     bool
	SetMetadataErr        error
	SetMetadataVMMetadata instance.Metadata

	SetTagsCalled bool
	SetTagsErr    error

	UpdateNetworkConfigurationCalled bool
	UpdateNetworkConfigurationErr    error
}

func (*FakeInstanceService) AddAccessConfig

func (i *FakeInstanceService) AddAccessConfig(id string, zone string, networkInterface string, accessConfig *compute.AccessConfig) error

func (*FakeInstanceService) AttachDisk

func (i *FakeInstanceService) AttachDisk(id string, diskLink string) (*instance.DiskAttachmentDetail, error)

func (*FakeInstanceService) AttachedDisks

func (i *FakeInstanceService) AttachedDisks(id string) (instance.AttachedDisks, error)

func (*FakeInstanceService) CleanUp

func (i *FakeInstanceService) CleanUp(id string)

func (*FakeInstanceService) Create

func (i *FakeInstanceService) Create(vmProps *instance.Properties, networks instance.Networks, registryEndpoint string) (string, error)

func (*FakeInstanceService) Delete

func (i *FakeInstanceService) Delete(id string) error

func (*FakeInstanceService) DeleteAccessConfig

func (i *FakeInstanceService) DeleteAccessConfig(id string, zone string, networkInterface string, accessConfig string) error

func (*FakeInstanceService) DetachDisk

func (i *FakeInstanceService) DetachDisk(id string, diskID string) error

func (*FakeInstanceService) DiskDetail

func (i *FakeInstanceService) DiskDetail(vmID string, diskLink string) (*instance.DiskAttachmentDetail, error)

func (*FakeInstanceService) Find

func (i *FakeInstanceService) Find(id string, zone string) (*compute.Instance, bool, error)

func (*FakeInstanceService) Reboot

func (i *FakeInstanceService) Reboot(id string) error

func (*FakeInstanceService) SetMetadata

func (i *FakeInstanceService) SetMetadata(id string, vmMetadata instance.Metadata) error

func (*FakeInstanceService) SetTags

func (i *FakeInstanceService) SetTags(id string, zone string, instanceTags *compute.Tags) error

func (*FakeInstanceService) UpdateNetworkConfiguration

func (i *FakeInstanceService) UpdateNetworkConfiguration(id string, networks instance.Networks) error

Jump to

Keyboard shortcuts

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