Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockAPI
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) GetCredentials() *google.Credentials
- func (m *MockAPI) GetDNSZone(ctx context.Context, project, baseDomain string, isPublic bool) (*dns.ManagedZone, error)
- func (m *MockAPI) GetDNSZoneByName(ctx context.Context, project, zoneName string) (*dns.ManagedZone, error)
- func (m *MockAPI) GetEnabledServices(ctx context.Context, project string) ([]string, error)
- func (m *MockAPI) GetImage(ctx context.Context, name, project string) (*compute.Image, error)
- func (m *MockAPI) GetMachineType(ctx context.Context, project, zone, machineType string) (*compute.MachineType, error)
- func (m *MockAPI) GetMachineTypeWithZones(ctx context.Context, project, region, machineType string) (*compute.MachineType, sets.Set[string], error)
- func (m *MockAPI) GetNamespacedTagValue(ctx context.Context, tagNamespacedName string) (*cloudresourcemanager.TagValue, error)
- func (m *MockAPI) GetNetwork(ctx context.Context, network, project string) (*compute.Network, error)
- func (m *MockAPI) GetProjectByID(ctx context.Context, project string) (*cloudresourcemanager.Project, error)
- func (m *MockAPI) GetProjectPermissions(ctx context.Context, project string, permissions []string) (sets.Set[string], error)
- func (m *MockAPI) GetProjectTags(ctx context.Context, projectID string) (sets.Set[string], error)
- func (m *MockAPI) GetProjects(ctx context.Context) (map[string]string, error)
- func (m *MockAPI) GetPublicDomains(ctx context.Context, project string) ([]string, error)
- func (m *MockAPI) GetRecordSets(ctx context.Context, project, zone string) ([]*dns.ResourceRecordSet, error)
- func (m *MockAPI) GetRegions(ctx context.Context, project string) ([]string, error)
- func (m *MockAPI) GetServiceAccount(ctx context.Context, project, serviceAccount string) (string, error)
- func (m *MockAPI) GetSubnetworks(ctx context.Context, network, project, region string) ([]*compute.Subnetwork, error)
- func (m *MockAPI) GetZones(ctx context.Context, project, filter string) ([]*compute.Zone, error)
- func (m *MockAPI) ValidateServiceAccountHasPermissions(ctx context.Context, project string, permissions []string) (bool, error)
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) GetCredentials() *gomock.Call
- func (mr *MockAPIMockRecorder) GetDNSZone(ctx, project, baseDomain, isPublic interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetDNSZoneByName(ctx, project, zoneName interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetEnabledServices(ctx, project interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetImage(ctx, name, project interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetMachineType(ctx, project, zone, machineType interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetMachineTypeWithZones(ctx, project, region, machineType interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetNamespacedTagValue(ctx, tagNamespacedName interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetNetwork(ctx, network, project interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetProjectByID(ctx, project interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetProjectPermissions(ctx, project, permissions interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetProjectTags(ctx, projectID interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetProjects(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetPublicDomains(ctx, project interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetRecordSets(ctx, project, zone interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetRegions(ctx, project interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetServiceAccount(ctx, project, serviceAccount interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetSubnetworks(ctx, network, project, region interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetZones(ctx, project, filter interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) ValidateServiceAccountHasPermissions(ctx, project, permissions interface{}) *gomock.Call
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 ¶
GetEnabledServices 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
GetProjectTags mocks base method.
func (*MockAPI) GetProjects ¶
GetProjects mocks base method.
func (*MockAPI) GetPublicDomains ¶
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 ¶
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.
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.