mock

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPI

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

MockAPI is a mock of API interface.

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

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

func (*MockAPI) GetCredentials

func (m *MockAPI) GetCredentials() *google.Credentials

GetCredentials mocks base method.

func (*MockAPI) GetDNSZone

func (m *MockAPI) GetDNSZone(ctx context.Context, project, baseDomain string, isPublic bool) (*dns.ManagedZone, error)

GetDNSZone mocks base method.

func (*MockAPI) GetDNSZoneByName

func (m *MockAPI) GetDNSZoneByName(ctx context.Context, project, zoneName string) (*dns.ManagedZone, error)

GetDNSZoneByName mocks base method.

func (*MockAPI) GetEnabledServices

func (m *MockAPI) GetEnabledServices(ctx context.Context, project string) ([]string, error)

GetEnabledServices mocks base method.

func (*MockAPI) GetImage added in v0.9.153

func (m *MockAPI) GetImage(ctx context.Context, name, project string) (*compute.Image, error)

GetImage mocks base method.

func (*MockAPI) GetMachineType

func (m *MockAPI) GetMachineType(ctx context.Context, project, zone, machineType string) (*compute.MachineType, error)

GetMachineType mocks base method.

func (*MockAPI) GetMachineTypeWithZones added in v0.9.153

func (m *MockAPI) GetMachineTypeWithZones(ctx context.Context, project, region, machineType string) (*compute.MachineType, sets.Set[string], error)

GetMachineTypeWithZones mocks base method.

func (*MockAPI) GetNamespacedTagValue added in v0.90.0

func (m *MockAPI) GetNamespacedTagValue(ctx context.Context, tagNamespacedName string) (*cloudresourcemanager.TagValue, error)

GetNamespacedTagValue mocks base method.

func (*MockAPI) GetNetwork

func (m *MockAPI) GetNetwork(ctx context.Context, network, project string) (*compute.Network, error)

GetNetwork mocks base method.

func (*MockAPI) GetProjectByID added in v0.9.153

func (m *MockAPI) GetProjectByID(ctx context.Context, project string) (*cloudresourcemanager.Project, error)

GetProjectByID mocks base method.

func (*MockAPI) GetProjectPermissions

func (m *MockAPI) GetProjectPermissions(ctx context.Context, project string, permissions []string) (sets.Set[string], error)

GetProjectPermissions mocks base method.

func (*MockAPI) GetProjectTags added in v0.90.0

func (m *MockAPI) GetProjectTags(ctx context.Context, projectID string) (sets.Set[string], error)

GetProjectTags mocks base method.

func (*MockAPI) GetProjects

func (m *MockAPI) GetProjects(ctx context.Context) (map[string]string, error)

GetProjects mocks base method.

func (*MockAPI) GetPublicDomains

func (m *MockAPI) GetPublicDomains(ctx context.Context, project string) ([]string, error)

GetPublicDomains mocks base method.

func (*MockAPI) GetRecordSets

func (m *MockAPI) GetRecordSets(ctx context.Context, project, zone string) ([]*dns.ResourceRecordSet, error)

GetRecordSets mocks base method.

func (*MockAPI) GetRegions

func (m *MockAPI) GetRegions(ctx context.Context, project string) ([]string, error)

GetRegions mocks base method.

func (*MockAPI) GetServiceAccount added in v0.9.153

func (m *MockAPI) GetServiceAccount(ctx context.Context, project, serviceAccount string) (string, error)

GetServiceAccount mocks base method.

func (*MockAPI) GetSubnetworks

func (m *MockAPI) GetSubnetworks(ctx context.Context, network, project, region string) ([]*compute.Subnetwork, error)

GetSubnetworks mocks base method.

func (*MockAPI) GetZones

func (m *MockAPI) GetZones(ctx context.Context, project, filter string) ([]*compute.Zone, error)

GetZones mocks base method.

func (*MockAPI) ValidateServiceAccountHasPermissions

func (m *MockAPI) ValidateServiceAccountHasPermissions(ctx context.Context, project string, permissions []string) (bool, error)

ValidateServiceAccountHasPermissions mocks base method.

type MockAPIMockRecorder

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

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) GetCredentials

func (mr *MockAPIMockRecorder) GetCredentials() *gomock.Call

GetCredentials indicates an expected call of GetCredentials.

func (*MockAPIMockRecorder) GetDNSZone

func (mr *MockAPIMockRecorder) GetDNSZone(ctx, project, baseDomain, isPublic interface{}) *gomock.Call

GetDNSZone indicates an expected call of GetDNSZone.

func (*MockAPIMockRecorder) GetDNSZoneByName

func (mr *MockAPIMockRecorder) GetDNSZoneByName(ctx, project, zoneName interface{}) *gomock.Call

GetDNSZoneByName indicates an expected call of GetDNSZoneByName.

func (*MockAPIMockRecorder) GetEnabledServices

func (mr *MockAPIMockRecorder) GetEnabledServices(ctx, project interface{}) *gomock.Call

GetEnabledServices indicates an expected call of GetEnabledServices.

func (*MockAPIMockRecorder) GetImage added in v0.9.153

func (mr *MockAPIMockRecorder) GetImage(ctx, name, project interface{}) *gomock.Call

GetImage indicates an expected call of GetImage.

func (*MockAPIMockRecorder) GetMachineType

func (mr *MockAPIMockRecorder) GetMachineType(ctx, project, zone, machineType interface{}) *gomock.Call

GetMachineType indicates an expected call of GetMachineType.

func (*MockAPIMockRecorder) GetMachineTypeWithZones added in v0.9.153

func (mr *MockAPIMockRecorder) GetMachineTypeWithZones(ctx, project, region, machineType interface{}) *gomock.Call

GetMachineTypeWithZones indicates an expected call of GetMachineTypeWithZones.

func (*MockAPIMockRecorder) GetNamespacedTagValue added in v0.90.0

func (mr *MockAPIMockRecorder) GetNamespacedTagValue(ctx, tagNamespacedName interface{}) *gomock.Call

GetNamespacedTagValue indicates an expected call of GetNamespacedTagValue.

func (*MockAPIMockRecorder) GetNetwork

func (mr *MockAPIMockRecorder) GetNetwork(ctx, network, project interface{}) *gomock.Call

GetNetwork indicates an expected call of GetNetwork.

func (*MockAPIMockRecorder) GetProjectByID added in v0.9.153

func (mr *MockAPIMockRecorder) GetProjectByID(ctx, project interface{}) *gomock.Call

GetProjectByID indicates an expected call of GetProjectByID.

func (*MockAPIMockRecorder) GetProjectPermissions

func (mr *MockAPIMockRecorder) GetProjectPermissions(ctx, project, permissions interface{}) *gomock.Call

GetProjectPermissions indicates an expected call of GetProjectPermissions.

func (*MockAPIMockRecorder) GetProjectTags added in v0.90.0

func (mr *MockAPIMockRecorder) GetProjectTags(ctx, projectID interface{}) *gomock.Call

GetProjectTags indicates an expected call of GetProjectTags.

func (*MockAPIMockRecorder) GetProjects

func (mr *MockAPIMockRecorder) GetProjects(ctx interface{}) *gomock.Call

GetProjects indicates an expected call of GetProjects.

func (*MockAPIMockRecorder) GetPublicDomains

func (mr *MockAPIMockRecorder) GetPublicDomains(ctx, project interface{}) *gomock.Call

GetPublicDomains indicates an expected call of GetPublicDomains.

func (*MockAPIMockRecorder) GetRecordSets

func (mr *MockAPIMockRecorder) GetRecordSets(ctx, project, zone interface{}) *gomock.Call

GetRecordSets indicates an expected call of GetRecordSets.

func (*MockAPIMockRecorder) GetRegions

func (mr *MockAPIMockRecorder) GetRegions(ctx, project interface{}) *gomock.Call

GetRegions indicates an expected call of GetRegions.

func (*MockAPIMockRecorder) GetServiceAccount added in v0.9.153

func (mr *MockAPIMockRecorder) GetServiceAccount(ctx, project, serviceAccount interface{}) *gomock.Call

GetServiceAccount indicates an expected call of GetServiceAccount.

func (*MockAPIMockRecorder) GetSubnetworks

func (mr *MockAPIMockRecorder) GetSubnetworks(ctx, network, project, region interface{}) *gomock.Call

GetSubnetworks indicates an expected call of GetSubnetworks.

func (*MockAPIMockRecorder) GetZones

func (mr *MockAPIMockRecorder) GetZones(ctx, project, filter interface{}) *gomock.Call

GetZones indicates an expected call of GetZones.

func (*MockAPIMockRecorder) ValidateServiceAccountHasPermissions

func (mr *MockAPIMockRecorder) ValidateServiceAccountHasPermissions(ctx, project, permissions interface{}) *gomock.Call

ValidateServiceAccountHasPermissions indicates an expected call of ValidateServiceAccountHasPermissions.

Jump to

Keyboard shortcuts

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