mock

package
v0.0.0-...-166901d Latest Latest
Warning

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

Go to latest
Published: Nov 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 MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) CreateBucket

func (m *MockClient) CreateBucket(arg0 context.Context, arg1, arg2 string, arg3 *storage.BucketAttrs) error

CreateBucket mocks base method.

func (*MockClient) CreateRole

func (m *MockClient) CreateRole(arg0 context.Context, arg1 *admin.CreateRoleRequest) (*admin.Role, error)

CreateRole mocks base method.

func (*MockClient) CreateServiceAccount

func (m *MockClient) CreateServiceAccount(arg0 context.Context, arg1 *admin.CreateServiceAccountRequest) (*admin.ServiceAccount, error)

CreateServiceAccount mocks base method.

func (*MockClient) CreateServiceAccountKey

func (m *MockClient) CreateServiceAccountKey(arg0 context.Context, arg1 *admin.CreateServiceAccountKeyRequest) (*admin.ServiceAccountKey, error)

CreateServiceAccountKey mocks base method.

func (*MockClient) CreateWorkloadIdentityPool

func (m *MockClient) CreateWorkloadIdentityPool(arg0 context.Context, arg1, arg2 string, arg3 *iam0.WorkloadIdentityPool) (*iam0.Operation, error)

CreateWorkloadIdentityPool mocks base method.

func (*MockClient) CreateWorkloadIdentityProvider

func (m *MockClient) CreateWorkloadIdentityProvider(arg0 context.Context, arg1, arg2 string, arg3 *iam0.WorkloadIdentityPoolProvider) (*iam0.Operation, error)

CreateWorkloadIdentityProvider mocks base method.

func (*MockClient) DeleteBucket

func (m *MockClient) DeleteBucket(arg0 context.Context, arg1 string) error

DeleteBucket mocks base method.

func (*MockClient) DeleteObject

func (m *MockClient) DeleteObject(arg0 context.Context, arg1, arg2 string) error

DeleteObject mocks base method.

func (*MockClient) DeleteRole

func (m *MockClient) DeleteRole(arg0 context.Context, arg1 *admin.DeleteRoleRequest) (*admin.Role, error)

DeleteRole mocks base method.

func (*MockClient) DeleteServiceAccount

func (m *MockClient) DeleteServiceAccount(arg0 context.Context, arg1 *admin.DeleteServiceAccountRequest) error

DeleteServiceAccount mocks base method.

func (*MockClient) DeleteServiceAccountKey

func (m *MockClient) DeleteServiceAccountKey(arg0 context.Context, arg1 *admin.DeleteServiceAccountKeyRequest) error

DeleteServiceAccountKey mocks base method.

func (*MockClient) DeleteWorkloadIdentityPool

func (m *MockClient) DeleteWorkloadIdentityPool(arg0 context.Context, arg1 string) (*iam0.Operation, error)

DeleteWorkloadIdentityPool mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetBucketAttrs

func (m *MockClient) GetBucketAttrs(arg0 context.Context, arg1 string) (*storage.BucketAttrs, error)

GetBucketAttrs mocks base method.

func (*MockClient) GetBucketPolicy

func (m *MockClient) GetBucketPolicy(arg0 context.Context, arg1 string) (*iam.Policy3, error)

GetBucketPolicy mocks base method.

func (*MockClient) GetProject

func (m *MockClient) GetProject(ctx context.Context, projectName string) (*cloudresourcemanager.Project, error)

GetProject mocks base method.

func (*MockClient) GetProjectIamPolicy

GetProjectIamPolicy mocks base method.

func (*MockClient) GetProjectName

func (m *MockClient) GetProjectName() string

GetProjectName mocks base method.

func (*MockClient) GetRole

func (m *MockClient) GetRole(arg0 context.Context, arg1 *admin.GetRoleRequest) (*admin.Role, error)

GetRole mocks base method.

func (*MockClient) GetServiceAccount

func (m *MockClient) GetServiceAccount(arg0 context.Context, arg1 *admin.GetServiceAccountRequest) (*admin.ServiceAccount, error)

GetServiceAccount mocks base method.

func (*MockClient) GetServiceAccountIamPolicy

func (m *MockClient) GetServiceAccountIamPolicy(arg0 string) (*iam0.Policy, error)

GetServiceAccountIamPolicy mocks base method.

func (*MockClient) GetWorkloadIdentityPool

func (m *MockClient) GetWorkloadIdentityPool(arg0 context.Context, arg1 string) (*iam0.WorkloadIdentityPool, error)

GetWorkloadIdentityPool mocks base method.

func (*MockClient) GetWorkloadIdentityProvider

func (m *MockClient) GetWorkloadIdentityProvider(arg0 context.Context, arg1 string) (*iam0.WorkloadIdentityPoolProvider, error)

GetWorkloadIdentityProvider mocks base method.

func (*MockClient) ListObjects

func (m *MockClient) ListObjects(arg0 context.Context, arg1 string) ([]*storage.ObjectAttrs, error)

ListObjects mocks base method.

func (*MockClient) ListRoles

ListRoles mocks base method.

func (*MockClient) ListServiceAccountKeys

ListServiceAccountKeys mocks base method.

func (*MockClient) ListServiceAccounts

func (m *MockClient) ListServiceAccounts(arg0 context.Context, arg1 *admin.ListServiceAccountsRequest) ([]*admin.ServiceAccount, error)

ListServiceAccounts mocks base method.

func (*MockClient) ListServicesEnabled

func (m *MockClient) ListServicesEnabled() (map[string]bool, error)

ListServicesEnabled mocks base method.

func (*MockClient) PutObject

func (m *MockClient) PutObject(arg0 context.Context, arg1, arg2 string, arg3 []byte) error

PutObject mocks base method.

func (*MockClient) QueryTestablePermissions

QueryTestablePermissions mocks base method.

func (*MockClient) SetBucketPolicy

func (m *MockClient) SetBucketPolicy(arg0 context.Context, arg1 string, arg2 *iam.Policy3) error

SetBucketPolicy mocks base method.

func (*MockClient) SetProjectIamPolicy

SetProjectIamPolicy mocks base method.

func (*MockClient) SetServiceAccountIamPolicy

func (m *MockClient) SetServiceAccountIamPolicy(arg0 string, arg1 *iam0.SetIamPolicyRequest) (*iam0.Policy, error)

SetServiceAccountIamPolicy mocks base method.

func (*MockClient) TestIamPermissions

TestIamPermissions mocks base method.

func (*MockClient) UndeleteRole

func (m *MockClient) UndeleteRole(arg0 context.Context, arg1 *admin.UndeleteRoleRequest) (*admin.Role, error)

UndeleteRole mocks base method.

func (*MockClient) UndeleteWorkloadIdentityPool

func (m *MockClient) UndeleteWorkloadIdentityPool(arg0 context.Context, arg1 string, arg2 *iam0.UndeleteWorkloadIdentityPoolRequest) (*iam0.Operation, error)

UndeleteWorkloadIdentityPool mocks base method.

func (*MockClient) UpdateRole

func (m *MockClient) UpdateRole(arg0 context.Context, arg1 *admin.UpdateRoleRequest) (*admin.Role, error)

UpdateRole mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) CreateBucket

func (mr *MockClientMockRecorder) CreateBucket(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CreateBucket indicates an expected call of CreateBucket.

func (*MockClientMockRecorder) CreateRole

func (mr *MockClientMockRecorder) CreateRole(arg0, arg1 interface{}) *gomock.Call

CreateRole indicates an expected call of CreateRole.

func (*MockClientMockRecorder) CreateServiceAccount

func (mr *MockClientMockRecorder) CreateServiceAccount(arg0, arg1 interface{}) *gomock.Call

CreateServiceAccount indicates an expected call of CreateServiceAccount.

func (*MockClientMockRecorder) CreateServiceAccountKey

func (mr *MockClientMockRecorder) CreateServiceAccountKey(arg0, arg1 interface{}) *gomock.Call

CreateServiceAccountKey indicates an expected call of CreateServiceAccountKey.

func (*MockClientMockRecorder) CreateWorkloadIdentityPool

func (mr *MockClientMockRecorder) CreateWorkloadIdentityPool(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CreateWorkloadIdentityPool indicates an expected call of CreateWorkloadIdentityPool.

func (*MockClientMockRecorder) CreateWorkloadIdentityProvider

func (mr *MockClientMockRecorder) CreateWorkloadIdentityProvider(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CreateWorkloadIdentityProvider indicates an expected call of CreateWorkloadIdentityProvider.

func (*MockClientMockRecorder) DeleteBucket

func (mr *MockClientMockRecorder) DeleteBucket(arg0, arg1 interface{}) *gomock.Call

DeleteBucket indicates an expected call of DeleteBucket.

func (*MockClientMockRecorder) DeleteObject

func (mr *MockClientMockRecorder) DeleteObject(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteObject indicates an expected call of DeleteObject.

func (*MockClientMockRecorder) DeleteRole

func (mr *MockClientMockRecorder) DeleteRole(arg0, arg1 interface{}) *gomock.Call

DeleteRole indicates an expected call of DeleteRole.

func (*MockClientMockRecorder) DeleteServiceAccount

func (mr *MockClientMockRecorder) DeleteServiceAccount(arg0, arg1 interface{}) *gomock.Call

DeleteServiceAccount indicates an expected call of DeleteServiceAccount.

func (*MockClientMockRecorder) DeleteServiceAccountKey

func (mr *MockClientMockRecorder) DeleteServiceAccountKey(arg0, arg1 interface{}) *gomock.Call

DeleteServiceAccountKey indicates an expected call of DeleteServiceAccountKey.

func (*MockClientMockRecorder) DeleteWorkloadIdentityPool

func (mr *MockClientMockRecorder) DeleteWorkloadIdentityPool(arg0, arg1 interface{}) *gomock.Call

DeleteWorkloadIdentityPool indicates an expected call of DeleteWorkloadIdentityPool.

func (*MockClientMockRecorder) GetBucketAttrs

func (mr *MockClientMockRecorder) GetBucketAttrs(arg0, arg1 interface{}) *gomock.Call

GetBucketAttrs indicates an expected call of GetBucketAttrs.

func (*MockClientMockRecorder) GetBucketPolicy

func (mr *MockClientMockRecorder) GetBucketPolicy(arg0, arg1 interface{}) *gomock.Call

GetBucketPolicy indicates an expected call of GetBucketPolicy.

func (*MockClientMockRecorder) GetProject

func (mr *MockClientMockRecorder) GetProject(ctx, projectName interface{}) *gomock.Call

GetProject indicates an expected call of GetProject.

func (*MockClientMockRecorder) GetProjectIamPolicy

func (mr *MockClientMockRecorder) GetProjectIamPolicy(arg0, arg1 interface{}) *gomock.Call

GetProjectIamPolicy indicates an expected call of GetProjectIamPolicy.

func (*MockClientMockRecorder) GetProjectName

func (mr *MockClientMockRecorder) GetProjectName() *gomock.Call

GetProjectName indicates an expected call of GetProjectName.

func (*MockClientMockRecorder) GetRole

func (mr *MockClientMockRecorder) GetRole(arg0, arg1 interface{}) *gomock.Call

GetRole indicates an expected call of GetRole.

func (*MockClientMockRecorder) GetServiceAccount

func (mr *MockClientMockRecorder) GetServiceAccount(arg0, arg1 interface{}) *gomock.Call

GetServiceAccount indicates an expected call of GetServiceAccount.

func (*MockClientMockRecorder) GetServiceAccountIamPolicy

func (mr *MockClientMockRecorder) GetServiceAccountIamPolicy(arg0 interface{}) *gomock.Call

GetServiceAccountIamPolicy indicates an expected call of GetServiceAccountIamPolicy.

func (*MockClientMockRecorder) GetWorkloadIdentityPool

func (mr *MockClientMockRecorder) GetWorkloadIdentityPool(arg0, arg1 interface{}) *gomock.Call

GetWorkloadIdentityPool indicates an expected call of GetWorkloadIdentityPool.

func (*MockClientMockRecorder) GetWorkloadIdentityProvider

func (mr *MockClientMockRecorder) GetWorkloadIdentityProvider(arg0, arg1 interface{}) *gomock.Call

GetWorkloadIdentityProvider indicates an expected call of GetWorkloadIdentityProvider.

func (*MockClientMockRecorder) ListObjects

func (mr *MockClientMockRecorder) ListObjects(arg0, arg1 interface{}) *gomock.Call

ListObjects indicates an expected call of ListObjects.

func (*MockClientMockRecorder) ListRoles

func (mr *MockClientMockRecorder) ListRoles(arg0, arg1 interface{}) *gomock.Call

ListRoles indicates an expected call of ListRoles.

func (*MockClientMockRecorder) ListServiceAccountKeys

func (mr *MockClientMockRecorder) ListServiceAccountKeys(arg0, arg1 interface{}) *gomock.Call

ListServiceAccountKeys indicates an expected call of ListServiceAccountKeys.

func (*MockClientMockRecorder) ListServiceAccounts

func (mr *MockClientMockRecorder) ListServiceAccounts(arg0, arg1 interface{}) *gomock.Call

ListServiceAccounts indicates an expected call of ListServiceAccounts.

func (*MockClientMockRecorder) ListServicesEnabled

func (mr *MockClientMockRecorder) ListServicesEnabled() *gomock.Call

ListServicesEnabled indicates an expected call of ListServicesEnabled.

func (*MockClientMockRecorder) PutObject

func (mr *MockClientMockRecorder) PutObject(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

PutObject indicates an expected call of PutObject.

func (*MockClientMockRecorder) QueryTestablePermissions

func (mr *MockClientMockRecorder) QueryTestablePermissions(arg0, arg1 interface{}) *gomock.Call

QueryTestablePermissions indicates an expected call of QueryTestablePermissions.

func (*MockClientMockRecorder) SetBucketPolicy

func (mr *MockClientMockRecorder) SetBucketPolicy(arg0, arg1, arg2 interface{}) *gomock.Call

SetBucketPolicy indicates an expected call of SetBucketPolicy.

func (*MockClientMockRecorder) SetProjectIamPolicy

func (mr *MockClientMockRecorder) SetProjectIamPolicy(arg0, arg1 interface{}) *gomock.Call

SetProjectIamPolicy indicates an expected call of SetProjectIamPolicy.

func (*MockClientMockRecorder) SetServiceAccountIamPolicy

func (mr *MockClientMockRecorder) SetServiceAccountIamPolicy(arg0, arg1 interface{}) *gomock.Call

SetServiceAccountIamPolicy indicates an expected call of SetServiceAccountIamPolicy.

func (*MockClientMockRecorder) TestIamPermissions

func (mr *MockClientMockRecorder) TestIamPermissions(arg0, arg1 interface{}) *gomock.Call

TestIamPermissions indicates an expected call of TestIamPermissions.

func (*MockClientMockRecorder) UndeleteRole

func (mr *MockClientMockRecorder) UndeleteRole(arg0, arg1 interface{}) *gomock.Call

UndeleteRole indicates an expected call of UndeleteRole.

func (*MockClientMockRecorder) UndeleteWorkloadIdentityPool

func (mr *MockClientMockRecorder) UndeleteWorkloadIdentityPool(arg0, arg1, arg2 interface{}) *gomock.Call

UndeleteWorkloadIdentityPool indicates an expected call of UndeleteWorkloadIdentityPool.

func (*MockClientMockRecorder) UpdateRole

func (mr *MockClientMockRecorder) UpdateRole(arg0, arg1 interface{}) *gomock.Call

UpdateRole indicates an expected call of UpdateRole.

Jump to

Keyboard shortcuts

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