client

package
v1.42.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package client is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockComputeClient added in v1.19.0

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

MockComputeClient is a mock of ComputeClient interface.

func NewMockComputeClient added in v1.19.0

func NewMockComputeClient(ctrl *gomock.Controller) *MockComputeClient

NewMockComputeClient creates a new mock instance.

func (*MockComputeClient) DeleteDisk added in v1.39.0

func (m *MockComputeClient) DeleteDisk(ctx context.Context, zone, diskName string) error

DeleteDisk mocks base method.

func (*MockComputeClient) DeleteFirewallRule added in v1.30.0

func (m *MockComputeClient) DeleteFirewallRule(ctx context.Context, firewall string) error

DeleteFirewallRule mocks base method.

func (*MockComputeClient) DeleteInstance added in v1.39.0

func (m *MockComputeClient) DeleteInstance(ctx context.Context, zone, instanceName string) error

DeleteInstance mocks base method.

func (*MockComputeClient) DeleteNetwork added in v1.30.0

func (m *MockComputeClient) DeleteNetwork(ctx context.Context, id string) error

DeleteNetwork mocks base method.

func (*MockComputeClient) DeleteRoute added in v1.30.0

func (m *MockComputeClient) DeleteRoute(ctx context.Context, id string) error

DeleteRoute mocks base method.

func (*MockComputeClient) DeleteRouter added in v1.30.0

func (m *MockComputeClient) DeleteRouter(ctx context.Context, region, id string) error

DeleteRouter mocks base method.

func (*MockComputeClient) DeleteSubnet added in v1.30.0

func (m *MockComputeClient) DeleteSubnet(ctx context.Context, region, id string) error

DeleteSubnet mocks base method.

func (*MockComputeClient) EXPECT added in v1.19.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockComputeClient) ExpandSubnet added in v1.30.0

func (m *MockComputeClient) ExpandSubnet(ctx context.Context, region, id, cidr string) (*compute.Subnetwork, error)

ExpandSubnet mocks base method.

func (*MockComputeClient) GetAddress added in v1.30.0

func (m *MockComputeClient) GetAddress(ctx context.Context, region, name string) (*compute.Address, error)

GetAddress mocks base method.

func (*MockComputeClient) GetDisk added in v1.39.0

func (m *MockComputeClient) GetDisk(ctx context.Context, zone, instanceName string) (*compute.Disk, error)

GetDisk mocks base method.

func (*MockComputeClient) GetExternalAddresses added in v1.19.0

func (m *MockComputeClient) GetExternalAddresses(ctx context.Context, region string) (map[string][]string, error)

GetExternalAddresses mocks base method.

func (*MockComputeClient) GetFirewallRule added in v1.30.0

func (m *MockComputeClient) GetFirewallRule(ctx context.Context, firewall string) (*compute.Firewall, error)

GetFirewallRule mocks base method.

func (*MockComputeClient) GetInstance added in v1.39.0

func (m *MockComputeClient) GetInstance(ctx context.Context, zone, instanceName string) (*compute.Instance, error)

GetInstance mocks base method.

func (*MockComputeClient) GetNetwork added in v1.30.0

func (m *MockComputeClient) GetNetwork(ctx context.Context, id string) (*compute.Network, error)

GetNetwork mocks base method.

func (*MockComputeClient) GetRegion added in v1.39.0

func (m *MockComputeClient) GetRegion(ctx context.Context, region string) (*compute.Region, error)

GetRegion mocks base method.

func (*MockComputeClient) GetRouter added in v1.30.0

func (m *MockComputeClient) GetRouter(ctx context.Context, region, id string) (*compute.Router, error)

GetRouter mocks base method.

func (*MockComputeClient) GetSubnet added in v1.26.0

func (m *MockComputeClient) GetSubnet(ctx context.Context, region, id string) (*compute.Subnetwork, error)

GetSubnet mocks base method.

func (*MockComputeClient) InsertDisk added in v1.39.0

func (m *MockComputeClient) InsertDisk(ctx context.Context, zone string, disk *compute.Disk) (*compute.Disk, error)

InsertDisk mocks base method.

func (*MockComputeClient) InsertFirewallRule added in v1.30.0

func (m *MockComputeClient) InsertFirewallRule(ctx context.Context, firewall *compute.Firewall) (*compute.Firewall, error)

InsertFirewallRule mocks base method.

func (*MockComputeClient) InsertInstance added in v1.39.0

func (m *MockComputeClient) InsertInstance(ctx context.Context, zone string, instance *compute.Instance) (*compute.Instance, error)

InsertInstance mocks base method.

func (*MockComputeClient) InsertNetwork added in v1.30.0

func (m *MockComputeClient) InsertNetwork(ctx context.Context, nw *compute.Network) (*compute.Network, error)

InsertNetwork mocks base method.

func (*MockComputeClient) InsertRouter added in v1.30.0

func (m *MockComputeClient) InsertRouter(ctx context.Context, region string, router *compute.Router) (*compute.Router, error)

InsertRouter mocks base method.

func (*MockComputeClient) InsertSubnet added in v1.30.0

func (m *MockComputeClient) InsertSubnet(ctx context.Context, region string, subnet *compute.Subnetwork) (*compute.Subnetwork, error)

InsertSubnet mocks base method.

func (*MockComputeClient) ListFirewallRules added in v1.30.0

func (m *MockComputeClient) ListFirewallRules(ctx context.Context, opts client.FirewallListOpts) ([]*compute.Firewall, error)

ListFirewallRules mocks base method.

func (*MockComputeClient) ListImages added in v1.39.0

func (m *MockComputeClient) ListImages(ctx context.Context, imageName, orderBy, fields string) (*compute.ImageList, error)

ListImages mocks base method.

func (*MockComputeClient) ListRoutes added in v1.30.0

func (m *MockComputeClient) ListRoutes(ctx context.Context, opts client.RouteListOpts) ([]*compute.Route, error)

ListRoutes mocks base method.

func (*MockComputeClient) PatchFirewallRule added in v1.30.0

func (m *MockComputeClient) PatchFirewallRule(ctx context.Context, name string, firewall *compute.Firewall) (*compute.Firewall, error)

PatchFirewallRule mocks base method.

func (*MockComputeClient) PatchNetwork added in v1.30.0

func (m *MockComputeClient) PatchNetwork(ctx context.Context, id string, nw *compute.Network) (*compute.Network, error)

PatchNetwork mocks base method.

func (*MockComputeClient) PatchRouter added in v1.30.0

func (m *MockComputeClient) PatchRouter(ctx context.Context, region, id string, router *compute.Router) (*compute.Router, error)

PatchRouter mocks base method.

func (*MockComputeClient) PatchSubnet added in v1.30.0

func (m *MockComputeClient) PatchSubnet(ctx context.Context, region, id string, subnet *compute.Subnetwork) (*compute.Subnetwork, error)

PatchSubnet mocks base method.

type MockComputeClientMockRecorder added in v1.19.0

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

MockComputeClientMockRecorder is the mock recorder for MockComputeClient.

func (*MockComputeClientMockRecorder) DeleteDisk added in v1.39.0

func (mr *MockComputeClientMockRecorder) DeleteDisk(ctx, zone, diskName any) *gomock.Call

DeleteDisk indicates an expected call of DeleteDisk.

func (*MockComputeClientMockRecorder) DeleteFirewallRule added in v1.30.0

func (mr *MockComputeClientMockRecorder) DeleteFirewallRule(ctx, firewall any) *gomock.Call

DeleteFirewallRule indicates an expected call of DeleteFirewallRule.

func (*MockComputeClientMockRecorder) DeleteInstance added in v1.39.0

func (mr *MockComputeClientMockRecorder) DeleteInstance(ctx, zone, instanceName any) *gomock.Call

DeleteInstance indicates an expected call of DeleteInstance.

func (*MockComputeClientMockRecorder) DeleteNetwork added in v1.30.0

func (mr *MockComputeClientMockRecorder) DeleteNetwork(ctx, id any) *gomock.Call

DeleteNetwork indicates an expected call of DeleteNetwork.

func (*MockComputeClientMockRecorder) DeleteRoute added in v1.30.0

func (mr *MockComputeClientMockRecorder) DeleteRoute(ctx, id any) *gomock.Call

DeleteRoute indicates an expected call of DeleteRoute.

func (*MockComputeClientMockRecorder) DeleteRouter added in v1.30.0

func (mr *MockComputeClientMockRecorder) DeleteRouter(ctx, region, id any) *gomock.Call

DeleteRouter indicates an expected call of DeleteRouter.

func (*MockComputeClientMockRecorder) DeleteSubnet added in v1.30.0

func (mr *MockComputeClientMockRecorder) DeleteSubnet(ctx, region, id any) *gomock.Call

DeleteSubnet indicates an expected call of DeleteSubnet.

func (*MockComputeClientMockRecorder) ExpandSubnet added in v1.30.0

func (mr *MockComputeClientMockRecorder) ExpandSubnet(ctx, region, id, cidr any) *gomock.Call

ExpandSubnet indicates an expected call of ExpandSubnet.

func (*MockComputeClientMockRecorder) GetAddress added in v1.30.0

func (mr *MockComputeClientMockRecorder) GetAddress(ctx, region, name any) *gomock.Call

GetAddress indicates an expected call of GetAddress.

func (*MockComputeClientMockRecorder) GetDisk added in v1.39.0

func (mr *MockComputeClientMockRecorder) GetDisk(ctx, zone, instanceName any) *gomock.Call

GetDisk indicates an expected call of GetDisk.

func (*MockComputeClientMockRecorder) GetExternalAddresses added in v1.19.0

func (mr *MockComputeClientMockRecorder) GetExternalAddresses(ctx, region any) *gomock.Call

GetExternalAddresses indicates an expected call of GetExternalAddresses.

func (*MockComputeClientMockRecorder) GetFirewallRule added in v1.30.0

func (mr *MockComputeClientMockRecorder) GetFirewallRule(ctx, firewall any) *gomock.Call

GetFirewallRule indicates an expected call of GetFirewallRule.

func (*MockComputeClientMockRecorder) GetInstance added in v1.39.0

func (mr *MockComputeClientMockRecorder) GetInstance(ctx, zone, instanceName any) *gomock.Call

GetInstance indicates an expected call of GetInstance.

func (*MockComputeClientMockRecorder) GetNetwork added in v1.30.0

func (mr *MockComputeClientMockRecorder) GetNetwork(ctx, id any) *gomock.Call

GetNetwork indicates an expected call of GetNetwork.

func (*MockComputeClientMockRecorder) GetRegion added in v1.39.0

func (mr *MockComputeClientMockRecorder) GetRegion(ctx, region any) *gomock.Call

GetRegion indicates an expected call of GetRegion.

func (*MockComputeClientMockRecorder) GetRouter added in v1.30.0

func (mr *MockComputeClientMockRecorder) GetRouter(ctx, region, id any) *gomock.Call

GetRouter indicates an expected call of GetRouter.

func (*MockComputeClientMockRecorder) GetSubnet added in v1.26.0

func (mr *MockComputeClientMockRecorder) GetSubnet(ctx, region, id any) *gomock.Call

GetSubnet indicates an expected call of GetSubnet.

func (*MockComputeClientMockRecorder) InsertDisk added in v1.39.0

func (mr *MockComputeClientMockRecorder) InsertDisk(ctx, zone, disk any) *gomock.Call

InsertDisk indicates an expected call of InsertDisk.

func (*MockComputeClientMockRecorder) InsertFirewallRule added in v1.30.0

func (mr *MockComputeClientMockRecorder) InsertFirewallRule(ctx, firewall any) *gomock.Call

InsertFirewallRule indicates an expected call of InsertFirewallRule.

func (*MockComputeClientMockRecorder) InsertInstance added in v1.39.0

func (mr *MockComputeClientMockRecorder) InsertInstance(ctx, zone, instance any) *gomock.Call

InsertInstance indicates an expected call of InsertInstance.

func (*MockComputeClientMockRecorder) InsertNetwork added in v1.30.0

func (mr *MockComputeClientMockRecorder) InsertNetwork(ctx, nw any) *gomock.Call

InsertNetwork indicates an expected call of InsertNetwork.

func (*MockComputeClientMockRecorder) InsertRouter added in v1.30.0

func (mr *MockComputeClientMockRecorder) InsertRouter(ctx, region, router any) *gomock.Call

InsertRouter indicates an expected call of InsertRouter.

func (*MockComputeClientMockRecorder) InsertSubnet added in v1.30.0

func (mr *MockComputeClientMockRecorder) InsertSubnet(ctx, region, subnet any) *gomock.Call

InsertSubnet indicates an expected call of InsertSubnet.

func (*MockComputeClientMockRecorder) ListFirewallRules added in v1.30.0

func (mr *MockComputeClientMockRecorder) ListFirewallRules(ctx, opts any) *gomock.Call

ListFirewallRules indicates an expected call of ListFirewallRules.

func (*MockComputeClientMockRecorder) ListImages added in v1.39.0

func (mr *MockComputeClientMockRecorder) ListImages(ctx, imageName, orderBy, fields any) *gomock.Call

ListImages indicates an expected call of ListImages.

func (*MockComputeClientMockRecorder) ListRoutes added in v1.30.0

func (mr *MockComputeClientMockRecorder) ListRoutes(ctx, opts any) *gomock.Call

ListRoutes indicates an expected call of ListRoutes.

func (*MockComputeClientMockRecorder) PatchFirewallRule added in v1.30.0

func (mr *MockComputeClientMockRecorder) PatchFirewallRule(ctx, name, firewall any) *gomock.Call

PatchFirewallRule indicates an expected call of PatchFirewallRule.

func (*MockComputeClientMockRecorder) PatchNetwork added in v1.30.0

func (mr *MockComputeClientMockRecorder) PatchNetwork(ctx, id, nw any) *gomock.Call

PatchNetwork indicates an expected call of PatchNetwork.

func (*MockComputeClientMockRecorder) PatchRouter added in v1.30.0

func (mr *MockComputeClientMockRecorder) PatchRouter(ctx, region, id, router any) *gomock.Call

PatchRouter indicates an expected call of PatchRouter.

func (*MockComputeClientMockRecorder) PatchSubnet added in v1.30.0

func (mr *MockComputeClientMockRecorder) PatchSubnet(ctx, region, id, subnet any) *gomock.Call

PatchSubnet indicates an expected call of PatchSubnet.

type MockDNSClient

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

MockDNSClient is a mock of DNSClient interface.

func NewMockDNSClient

func NewMockDNSClient(ctrl *gomock.Controller) *MockDNSClient

NewMockDNSClient creates a new mock instance.

func (*MockDNSClient) CreateOrUpdateRecordSet

func (m *MockDNSClient) CreateOrUpdateRecordSet(ctx context.Context, managedZone, name, recordType string, rrdatas []string, ttl int64) error

CreateOrUpdateRecordSet mocks base method.

func (*MockDNSClient) DeleteRecordSet

func (m *MockDNSClient) DeleteRecordSet(ctx context.Context, managedZone, name, recordType string) error

DeleteRecordSet mocks base method.

func (*MockDNSClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDNSClient) GetManagedZones

func (m *MockDNSClient) GetManagedZones(ctx context.Context) (map[string]string, error)

GetManagedZones mocks base method.

type MockDNSClientMockRecorder

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

MockDNSClientMockRecorder is the mock recorder for MockDNSClient.

func (*MockDNSClientMockRecorder) CreateOrUpdateRecordSet

func (mr *MockDNSClientMockRecorder) CreateOrUpdateRecordSet(ctx, managedZone, name, recordType, rrdatas, ttl any) *gomock.Call

CreateOrUpdateRecordSet indicates an expected call of CreateOrUpdateRecordSet.

func (*MockDNSClientMockRecorder) DeleteRecordSet

func (mr *MockDNSClientMockRecorder) DeleteRecordSet(ctx, managedZone, name, recordType any) *gomock.Call

DeleteRecordSet indicates an expected call of DeleteRecordSet.

func (*MockDNSClientMockRecorder) GetManagedZones

func (mr *MockDNSClientMockRecorder) GetManagedZones(ctx any) *gomock.Call

GetManagedZones indicates an expected call of GetManagedZones.

type MockFactory

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

MockFactory is a mock of Factory interface.

func NewMockFactory

func NewMockFactory(ctrl *gomock.Controller) *MockFactory

NewMockFactory creates a new mock instance.

func (*MockFactory) Compute added in v1.30.0

Compute mocks base method.

func (*MockFactory) DNS added in v1.30.0

DNS mocks base method.

func (*MockFactory) EXPECT

func (m *MockFactory) EXPECT() *MockFactoryMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFactory) IAM added in v1.30.0

IAM mocks base method.

func (*MockFactory) Storage added in v1.30.0

Storage mocks base method.

type MockFactoryMockRecorder

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

MockFactoryMockRecorder is the mock recorder for MockFactory.

func (*MockFactoryMockRecorder) Compute added in v1.30.0

func (mr *MockFactoryMockRecorder) Compute(arg0, arg1, arg2 any) *gomock.Call

Compute indicates an expected call of Compute.

func (*MockFactoryMockRecorder) DNS added in v1.30.0

func (mr *MockFactoryMockRecorder) DNS(arg0, arg1, arg2 any) *gomock.Call

DNS indicates an expected call of DNS.

func (*MockFactoryMockRecorder) IAM added in v1.30.0

func (mr *MockFactoryMockRecorder) IAM(arg0, arg1, arg2 any) *gomock.Call

IAM indicates an expected call of IAM.

func (*MockFactoryMockRecorder) Storage added in v1.30.0

func (mr *MockFactoryMockRecorder) Storage(arg0, arg1, arg2 any) *gomock.Call

Storage indicates an expected call of Storage.

type MockStorageClient added in v1.42.0

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

MockStorageClient is a mock of StorageClient interface.

func NewMockStorageClient added in v1.42.0

func NewMockStorageClient(ctrl *gomock.Controller) *MockStorageClient

NewMockStorageClient creates a new mock instance.

func (*MockStorageClient) Attrs added in v1.42.0

func (m *MockStorageClient) Attrs(ctx context.Context, bucketName string) (*storage.BucketAttrs, error)

Attrs mocks base method.

func (*MockStorageClient) CreateBucket added in v1.42.0

func (m *MockStorageClient) CreateBucket(ctx context.Context, atts *storage.BucketAttrs) error

CreateBucket mocks base method.

func (*MockStorageClient) DeleteBucketIfExists added in v1.42.0

func (m *MockStorageClient) DeleteBucketIfExists(ctx context.Context, bucketName string) error

DeleteBucketIfExists mocks base method.

func (*MockStorageClient) DeleteObjectsWithPrefix added in v1.42.0

func (m *MockStorageClient) DeleteObjectsWithPrefix(ctx context.Context, bucketName, prefix string) error

DeleteObjectsWithPrefix mocks base method.

func (*MockStorageClient) EXPECT added in v1.42.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStorageClient) LockBucket added in v1.42.0

func (m *MockStorageClient) LockBucket(ctx context.Context, bucketName string) error

LockBucket mocks base method.

func (*MockStorageClient) UpdateBucket added in v1.42.0

func (m *MockStorageClient) UpdateBucket(ctx context.Context, bucketName string, bucketAttrsToUpdate storage.BucketAttrsToUpdate) (*storage.BucketAttrs, error)

UpdateBucket mocks base method.

type MockStorageClientMockRecorder added in v1.42.0

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

MockStorageClientMockRecorder is the mock recorder for MockStorageClient.

func (*MockStorageClientMockRecorder) Attrs added in v1.42.0

func (mr *MockStorageClientMockRecorder) Attrs(ctx, bucketName any) *gomock.Call

Attrs indicates an expected call of Attrs.

func (*MockStorageClientMockRecorder) CreateBucket added in v1.42.0

func (mr *MockStorageClientMockRecorder) CreateBucket(ctx, atts any) *gomock.Call

CreateBucket indicates an expected call of CreateBucket.

func (*MockStorageClientMockRecorder) DeleteBucketIfExists added in v1.42.0

func (mr *MockStorageClientMockRecorder) DeleteBucketIfExists(ctx, bucketName any) *gomock.Call

DeleteBucketIfExists indicates an expected call of DeleteBucketIfExists.

func (*MockStorageClientMockRecorder) DeleteObjectsWithPrefix added in v1.42.0

func (mr *MockStorageClientMockRecorder) DeleteObjectsWithPrefix(ctx, bucketName, prefix any) *gomock.Call

DeleteObjectsWithPrefix indicates an expected call of DeleteObjectsWithPrefix.

func (*MockStorageClientMockRecorder) LockBucket added in v1.42.0

func (mr *MockStorageClientMockRecorder) LockBucket(ctx, bucketName any) *gomock.Call

LockBucket indicates an expected call of LockBucket.

func (*MockStorageClientMockRecorder) UpdateBucket added in v1.42.0

func (mr *MockStorageClientMockRecorder) UpdateBucket(ctx, bucketName, bucketAttrsToUpdate any) *gomock.Call

UpdateBucket indicates an expected call of UpdateBucket.

Jump to

Keyboard shortcuts

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