mock

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock provides mock implementations for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLinodeClient

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

MockLinodeClient is a mock of Client interface.

func NewMockLinodeClient

func NewMockLinodeClient(ctrl *gomock.Controller) *MockLinodeClient

NewMockLinodeClient creates a new mock instance.

func (*MockLinodeClient) CreateObjectStorageBucket

CreateObjectStorageBucket mocks base method.

func (*MockLinodeClient) CreateObjectStorageKey

CreateObjectStorageKey mocks base method.

func (*MockLinodeClient) DeleteObjectStorageBucket

func (m *MockLinodeClient) DeleteObjectStorageBucket(arg0 context.Context, arg1, arg2 string) error

DeleteObjectStorageBucket mocks base method.

func (*MockLinodeClient) DeleteObjectStorageKey

func (m *MockLinodeClient) DeleteObjectStorageKey(arg0 context.Context, arg1 int) error

DeleteObjectStorageKey mocks base method.

func (*MockLinodeClient) EXPECT

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

func (*MockLinodeClient) GetObjectStorageBucket

func (m *MockLinodeClient) GetObjectStorageBucket(arg0 context.Context, arg1, arg2 string) (*linodego.ObjectStorageBucket, error)

GetObjectStorageBucket mocks base method.

func (*MockLinodeClient) GetObjectStorageBucketAccess

func (m *MockLinodeClient) GetObjectStorageBucketAccess(arg0 context.Context, arg1, arg2 string) (*linodego.ObjectStorageBucketAccess, error)

GetObjectStorageBucketAccess mocks base method.

func (*MockLinodeClient) GetObjectStorageKey

func (m *MockLinodeClient) GetObjectStorageKey(arg0 context.Context, arg1 int) (*linodego.ObjectStorageKey, error)

GetObjectStorageKey mocks base method.

func (*MockLinodeClient) ListObjectStorageEndpoints

func (m *MockLinodeClient) ListObjectStorageEndpoints(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.ObjectStorageEndpoint, error)

ListObjectStorageEndpoints mocks base method.

func (*MockLinodeClient) ListObjectStorageKeys

func (m *MockLinodeClient) ListObjectStorageKeys(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.ObjectStorageKey, error)

ListObjectStorageKeys mocks base method.

func (*MockLinodeClient) UpdateObjectStorageBucketAccess

func (m *MockLinodeClient) UpdateObjectStorageBucketAccess(arg0 context.Context, arg1, arg2 string, arg3 linodego.ObjectStorageBucketUpdateAccessOptions) error

UpdateObjectStorageBucketAccess mocks base method.

type MockLinodeClientCreateObjectStorageBucketCall

type MockLinodeClientCreateObjectStorageBucketCall struct {
	*gomock.Call
}

MockLinodeClientCreateObjectStorageBucketCall wrap *gomock.Call

func (*MockLinodeClientCreateObjectStorageBucketCall) Do

Do rewrite *gomock.Call.Do

func (*MockLinodeClientCreateObjectStorageBucketCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLinodeClientCreateObjectStorageBucketCall) Return

Return rewrite *gomock.Call.Return

type MockLinodeClientCreateObjectStorageKeyCall

type MockLinodeClientCreateObjectStorageKeyCall struct {
	*gomock.Call
}

MockLinodeClientCreateObjectStorageKeyCall wrap *gomock.Call

func (*MockLinodeClientCreateObjectStorageKeyCall) Do

Do rewrite *gomock.Call.Do

func (*MockLinodeClientCreateObjectStorageKeyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLinodeClientCreateObjectStorageKeyCall) Return

Return rewrite *gomock.Call.Return

type MockLinodeClientDeleteObjectStorageBucketCall

type MockLinodeClientDeleteObjectStorageBucketCall struct {
	*gomock.Call
}

MockLinodeClientDeleteObjectStorageBucketCall wrap *gomock.Call

func (*MockLinodeClientDeleteObjectStorageBucketCall) Do

Do rewrite *gomock.Call.Do

func (*MockLinodeClientDeleteObjectStorageBucketCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLinodeClientDeleteObjectStorageBucketCall) Return

Return rewrite *gomock.Call.Return

type MockLinodeClientDeleteObjectStorageKeyCall

type MockLinodeClientDeleteObjectStorageKeyCall struct {
	*gomock.Call
}

MockLinodeClientDeleteObjectStorageKeyCall wrap *gomock.Call

func (*MockLinodeClientDeleteObjectStorageKeyCall) Do

Do rewrite *gomock.Call.Do

func (*MockLinodeClientDeleteObjectStorageKeyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLinodeClientDeleteObjectStorageKeyCall) Return

Return rewrite *gomock.Call.Return

type MockLinodeClientGetObjectStorageBucketAccessCall

type MockLinodeClientGetObjectStorageBucketAccessCall struct {
	*gomock.Call
}

MockLinodeClientGetObjectStorageBucketAccessCall wrap *gomock.Call

func (*MockLinodeClientGetObjectStorageBucketAccessCall) Do

Do rewrite *gomock.Call.Do

func (*MockLinodeClientGetObjectStorageBucketAccessCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLinodeClientGetObjectStorageBucketAccessCall) Return

Return rewrite *gomock.Call.Return

type MockLinodeClientGetObjectStorageBucketCall

type MockLinodeClientGetObjectStorageBucketCall struct {
	*gomock.Call
}

MockLinodeClientGetObjectStorageBucketCall wrap *gomock.Call

func (*MockLinodeClientGetObjectStorageBucketCall) Do

Do rewrite *gomock.Call.Do

func (*MockLinodeClientGetObjectStorageBucketCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLinodeClientGetObjectStorageBucketCall) Return

Return rewrite *gomock.Call.Return

type MockLinodeClientGetObjectStorageKeyCall

type MockLinodeClientGetObjectStorageKeyCall struct {
	*gomock.Call
}

MockLinodeClientGetObjectStorageKeyCall wrap *gomock.Call

func (*MockLinodeClientGetObjectStorageKeyCall) Do

Do rewrite *gomock.Call.Do

func (*MockLinodeClientGetObjectStorageKeyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLinodeClientGetObjectStorageKeyCall) Return

Return rewrite *gomock.Call.Return

type MockLinodeClientListObjectStorageEndpointsCall

type MockLinodeClientListObjectStorageEndpointsCall struct {
	*gomock.Call
}

MockLinodeClientListObjectStorageEndpointsCall wrap *gomock.Call

func (*MockLinodeClientListObjectStorageEndpointsCall) Do

Do rewrite *gomock.Call.Do

func (*MockLinodeClientListObjectStorageEndpointsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLinodeClientListObjectStorageEndpointsCall) Return

Return rewrite *gomock.Call.Return

type MockLinodeClientListObjectStorageKeysCall

type MockLinodeClientListObjectStorageKeysCall struct {
	*gomock.Call
}

MockLinodeClientListObjectStorageKeysCall wrap *gomock.Call

func (*MockLinodeClientListObjectStorageKeysCall) Do

Do rewrite *gomock.Call.Do

func (*MockLinodeClientListObjectStorageKeysCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLinodeClientListObjectStorageKeysCall) Return

Return rewrite *gomock.Call.Return

type MockLinodeClientMockRecorder

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

MockLinodeClientMockRecorder is the mock recorder for MockLinodeClient.

func (*MockLinodeClientMockRecorder) CreateObjectStorageBucket

func (mr *MockLinodeClientMockRecorder) CreateObjectStorageBucket(arg0, arg1 any) *MockLinodeClientCreateObjectStorageBucketCall

CreateObjectStorageBucket indicates an expected call of CreateObjectStorageBucket.

func (*MockLinodeClientMockRecorder) CreateObjectStorageKey

func (mr *MockLinodeClientMockRecorder) CreateObjectStorageKey(arg0, arg1 any) *MockLinodeClientCreateObjectStorageKeyCall

CreateObjectStorageKey indicates an expected call of CreateObjectStorageKey.

func (*MockLinodeClientMockRecorder) DeleteObjectStorageBucket

func (mr *MockLinodeClientMockRecorder) DeleteObjectStorageBucket(arg0, arg1, arg2 any) *MockLinodeClientDeleteObjectStorageBucketCall

DeleteObjectStorageBucket indicates an expected call of DeleteObjectStorageBucket.

func (*MockLinodeClientMockRecorder) DeleteObjectStorageKey

func (mr *MockLinodeClientMockRecorder) DeleteObjectStorageKey(arg0, arg1 any) *MockLinodeClientDeleteObjectStorageKeyCall

DeleteObjectStorageKey indicates an expected call of DeleteObjectStorageKey.

func (*MockLinodeClientMockRecorder) GetObjectStorageBucket

func (mr *MockLinodeClientMockRecorder) GetObjectStorageBucket(arg0, arg1, arg2 any) *MockLinodeClientGetObjectStorageBucketCall

GetObjectStorageBucket indicates an expected call of GetObjectStorageBucket.

func (*MockLinodeClientMockRecorder) GetObjectStorageBucketAccess

func (mr *MockLinodeClientMockRecorder) GetObjectStorageBucketAccess(arg0, arg1, arg2 any) *MockLinodeClientGetObjectStorageBucketAccessCall

GetObjectStorageBucketAccess indicates an expected call of GetObjectStorageBucketAccess.

func (*MockLinodeClientMockRecorder) GetObjectStorageKey

func (mr *MockLinodeClientMockRecorder) GetObjectStorageKey(arg0, arg1 any) *MockLinodeClientGetObjectStorageKeyCall

GetObjectStorageKey indicates an expected call of GetObjectStorageKey.

func (*MockLinodeClientMockRecorder) ListObjectStorageEndpoints

func (mr *MockLinodeClientMockRecorder) ListObjectStorageEndpoints(arg0, arg1 any) *MockLinodeClientListObjectStorageEndpointsCall

ListObjectStorageEndpoints indicates an expected call of ListObjectStorageEndpoints.

func (*MockLinodeClientMockRecorder) ListObjectStorageKeys

func (mr *MockLinodeClientMockRecorder) ListObjectStorageKeys(arg0, arg1 any) *MockLinodeClientListObjectStorageKeysCall

ListObjectStorageKeys indicates an expected call of ListObjectStorageKeys.

func (*MockLinodeClientMockRecorder) UpdateObjectStorageBucketAccess

func (mr *MockLinodeClientMockRecorder) UpdateObjectStorageBucketAccess(arg0, arg1, arg2, arg3 any) *MockLinodeClientUpdateObjectStorageBucketAccessCall

UpdateObjectStorageBucketAccess indicates an expected call of UpdateObjectStorageBucketAccess.

type MockLinodeClientUpdateObjectStorageBucketAccessCall

type MockLinodeClientUpdateObjectStorageBucketAccessCall struct {
	*gomock.Call
}

MockLinodeClientUpdateObjectStorageBucketAccessCall wrap *gomock.Call

func (*MockLinodeClientUpdateObjectStorageBucketAccessCall) Do

Do rewrite *gomock.Call.Do

func (*MockLinodeClientUpdateObjectStorageBucketAccessCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLinodeClientUpdateObjectStorageBucketAccessCall) Return

Return rewrite *gomock.Call.Return

type MockS3Client

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

MockS3Client is a mock of Client interface.

func NewMockS3Client

func NewMockS3Client(ctrl *gomock.Controller) *MockS3Client

NewMockS3Client creates a new mock instance.

func (*MockS3Client) EXPECT

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

func (*MockS3Client) GetBucketPolicy

func (m *MockS3Client) GetBucketPolicy(ctx context.Context, region, bucketName string) (string, error)

GetBucketPolicy mocks base method.

func (*MockS3Client) Prune

func (m *MockS3Client) Prune(ctx context.Context, region, bucket string) error

Prune mocks base method.

func (*MockS3Client) SetBucketPolicy

func (m *MockS3Client) SetBucketPolicy(ctx context.Context, region, bucketName, policy string) error

SetBucketPolicy mocks base method.

type MockS3ClientGetBucketPolicyCall

type MockS3ClientGetBucketPolicyCall struct {
	*gomock.Call
}

MockS3ClientGetBucketPolicyCall wrap *gomock.Call

func (*MockS3ClientGetBucketPolicyCall) Do

Do rewrite *gomock.Call.Do

func (*MockS3ClientGetBucketPolicyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockS3ClientGetBucketPolicyCall) Return

Return rewrite *gomock.Call.Return

type MockS3ClientMockRecorder

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

MockS3ClientMockRecorder is the mock recorder for MockS3Client.

func (*MockS3ClientMockRecorder) GetBucketPolicy

func (mr *MockS3ClientMockRecorder) GetBucketPolicy(ctx, region, bucketName any) *MockS3ClientGetBucketPolicyCall

GetBucketPolicy indicates an expected call of GetBucketPolicy.

func (*MockS3ClientMockRecorder) Prune

func (mr *MockS3ClientMockRecorder) Prune(ctx, region, bucket any) *MockS3ClientPruneCall

Prune indicates an expected call of Prune.

func (*MockS3ClientMockRecorder) SetBucketPolicy

func (mr *MockS3ClientMockRecorder) SetBucketPolicy(ctx, region, bucketName, policy any) *MockS3ClientSetBucketPolicyCall

SetBucketPolicy indicates an expected call of SetBucketPolicy.

type MockS3ClientPruneCall

type MockS3ClientPruneCall struct {
	*gomock.Call
}

MockS3ClientPruneCall wrap *gomock.Call

func (*MockS3ClientPruneCall) Do

Do rewrite *gomock.Call.Do

func (*MockS3ClientPruneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockS3ClientPruneCall) Return

Return rewrite *gomock.Call.Return

type MockS3ClientSetBucketPolicyCall

type MockS3ClientSetBucketPolicyCall struct {
	*gomock.Call
}

MockS3ClientSetBucketPolicyCall wrap *gomock.Call

func (*MockS3ClientSetBucketPolicyCall) Do

Do rewrite *gomock.Call.Do

func (*MockS3ClientSetBucketPolicyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockS3ClientSetBucketPolicyCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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