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) GetMachineType(ctx context.Context, project, zone, machineType string) (*compute.MachineType, error)
- func (m *MockAPI) GetNetwork(ctx context.Context, network, project string) (*compute.Network, error)
- func (m *MockAPI) GetProjectPermissions(ctx context.Context, project string, permissions []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) 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) GetMachineType(ctx, project, zone, machineType interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetNetwork(ctx, network, project interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetProjectPermissions(ctx, project, permissions 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) 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) GetNetwork ¶
func (m *MockAPI) GetNetwork(ctx context.Context, network, project string) (*compute.Network, error)
GetNetwork 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) 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) 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) GetMachineType ¶
func (mr *MockAPIMockRecorder) GetMachineType(ctx, project, zone, machineType interface{}) *gomock.Call
GetMachineType indicates an expected call of GetMachineType.
func (*MockAPIMockRecorder) GetNetwork ¶
func (mr *MockAPIMockRecorder) GetNetwork(ctx, network, project interface{}) *gomock.Call
GetNetwork indicates an expected call of GetNetwork.
func (*MockAPIMockRecorder) GetProjectPermissions ¶
func (mr *MockAPIMockRecorder) GetProjectPermissions(ctx, project, permissions interface{}) *gomock.Call
GetProjectPermissions indicates an expected call of GetProjectPermissions.
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) 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.