Documentation ¶
Index ¶
- type FakeInstanceService
- func (i *FakeInstanceService) AddAccessConfig(id string, zone string, networkInterface string, ...) error
- func (i *FakeInstanceService) AddNetworkConfiguration(id string, networks instance.Networks) error
- func (i *FakeInstanceService) AttachDisk(id string, diskLink string) (string, string, error)
- func (i *FakeInstanceService) AttachedDisks(id string) (instance.AttachedDisks, error)
- func (i *FakeInstanceService) CleanUp(id string)
- func (i *FakeInstanceService) Create(vmProps *instance.Properties, networks instance.Networks, ...) (string, error)
- func (i *FakeInstanceService) Delete(id string) error
- func (i *FakeInstanceService) DeleteAccessConfig(id string, zone string, networkInterface string, accessConfig string) error
- func (i *FakeInstanceService) DeleteNetworkConfiguration(id string) error
- func (i *FakeInstanceService) DetachDisk(id string, diskID string) error
- func (i *FakeInstanceService) Find(id string, zone string) (*compute.Instance, bool, error)
- func (i *FakeInstanceService) Reboot(id string) error
- func (i *FakeInstanceService) SetMetadata(id string, vmMetadata instance.Metadata) error
- func (i *FakeInstanceService) SetTags(id string, zone string, instanceTags *compute.Tags) error
- func (i *FakeInstanceService) UpdateNetworkConfiguration(id string, networks instance.Networks) error
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 AddNetworkConfigurationCalled bool AddNetworkConfigurationErr 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 DeleteNetworkConfigurationCalled bool DeleteNetworkConfigurationErr error DetachDiskCalled bool DetachDiskErr error 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) AddNetworkConfiguration ¶
func (i *FakeInstanceService) AddNetworkConfiguration(id string, networks instance.Networks) error
func (*FakeInstanceService) AttachDisk ¶
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 (*FakeInstanceService) DeleteNetworkConfiguration ¶
func (i *FakeInstanceService) DeleteNetworkConfiguration(id string) error
func (*FakeInstanceService) DetachDisk ¶
func (i *FakeInstanceService) DetachDisk(id string, diskID string) 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
Click to show internal directories.
Click to hide internal directories.