mocks

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks 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) CreateKey

func (m *MockClient) CreateKey(ctx context.Context, id, keyType string, tags []*kms.Tag) (*kms.CreateKeyOutput, error)

CreateKey mocks base method

func (*MockClient) CreateSecret

func (m *MockClient) CreateSecret(ctx context.Context, id, value string) (*secretsmanager.CreateSecretOutput, error)

CreateSecret mocks base method

func (*MockClient) DeleteKey

func (m *MockClient) DeleteKey(ctx context.Context, keyID string) (*kms.ScheduleKeyDeletionOutput, error)

DeleteKey mocks base method

func (*MockClient) DeleteSecret

DeleteSecret mocks base method

func (*MockClient) DescribeKey

func (m *MockClient) DescribeKey(ctx context.Context, id string) (*kms.DescribeKeyOutput, error)

DescribeKey mocks base method

func (*MockClient) DescribeSecret

func (m *MockClient) DescribeSecret(ctx context.Context, id string) (map[string]string, *entities.Metadata, error)

DescribeSecret mocks base method

func (*MockClient) DestroySecret

func (m *MockClient) DestroySecret(ctx context.Context, id string) (*secretsmanager.DeleteSecretOutput, error)

DestroySecret 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) GetAlias

func (m *MockClient) GetAlias(ctx context.Context, keyID string) (string, error)

GetAlias mocks base method

func (*MockClient) GetPublicKey

func (m *MockClient) GetPublicKey(ctx context.Context, keyID string) (*kms.GetPublicKeyOutput, error)

GetPublicKey mocks base method

func (*MockClient) GetSecret

func (m *MockClient) GetSecret(ctx context.Context, id, version string) (*secretsmanager.GetSecretValueOutput, error)

GetSecret mocks base method

func (*MockClient) ListKeys

func (m *MockClient) ListKeys(ctx context.Context, limit int64, marker string) (*kms.ListKeysOutput, error)

ListKeys mocks base method

func (*MockClient) ListSecrets

func (m *MockClient) ListSecrets(ctx context.Context, maxResults int64, nextToken string) (*secretsmanager.ListSecretsOutput, error)

ListSecrets mocks base method

func (*MockClient) ListTags

func (m *MockClient) ListTags(ctx context.Context, keyID, marker string) (*kms.ListResourceTagsOutput, error)

ListTags mocks base method

func (*MockClient) PutSecretValue

func (m *MockClient) PutSecretValue(ctx context.Context, id, value string) (*secretsmanager.PutSecretValueOutput, error)

PutSecretValue mocks base method

func (*MockClient) RestoreKey

func (m *MockClient) RestoreKey(ctx context.Context, keyID string) (*kms.CancelKeyDeletionOutput, error)

RestoreKey mocks base method

func (*MockClient) RestoreSecret

RestoreSecret mocks base method

func (*MockClient) Sign

func (m *MockClient) Sign(ctx context.Context, keyID string, msg []byte, signingAlgorithm string) (*kms.SignOutput, error)

Sign mocks base method

func (*MockClient) TagResource

func (m *MockClient) TagResource(ctx context.Context, keyID string, tags []*kms.Tag) (*kms.TagResourceOutput, error)

TagResource mocks base method

func (*MockClient) TagSecretResource

func (m *MockClient) TagSecretResource(ctx context.Context, id string, tags map[string]string) (*secretsmanager.TagResourceOutput, error)

TagSecretResource mocks base method

func (*MockClient) UntagResource

func (m *MockClient) UntagResource(ctx context.Context, keyID string, tagKeys []*string) (*kms.UntagResourceOutput, error)

UntagResource mocks base method

func (*MockClient) UpdateSecret

func (m *MockClient) UpdateSecret(ctx context.Context, id, value, keyID, desc string) (*secretsmanager.UpdateSecretOutput, error)

UpdateSecret mocks base method

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) CreateKey

func (mr *MockClientMockRecorder) CreateKey(ctx, id, keyType, tags interface{}) *gomock.Call

CreateKey indicates an expected call of CreateKey

func (*MockClientMockRecorder) CreateSecret

func (mr *MockClientMockRecorder) CreateSecret(ctx, id, value interface{}) *gomock.Call

CreateSecret indicates an expected call of CreateSecret

func (*MockClientMockRecorder) DeleteKey

func (mr *MockClientMockRecorder) DeleteKey(ctx, keyID interface{}) *gomock.Call

DeleteKey indicates an expected call of DeleteKey

func (*MockClientMockRecorder) DeleteSecret

func (mr *MockClientMockRecorder) DeleteSecret(ctx, id interface{}) *gomock.Call

DeleteSecret indicates an expected call of DeleteSecret

func (*MockClientMockRecorder) DescribeKey

func (mr *MockClientMockRecorder) DescribeKey(ctx, id interface{}) *gomock.Call

DescribeKey indicates an expected call of DescribeKey

func (*MockClientMockRecorder) DescribeSecret

func (mr *MockClientMockRecorder) DescribeSecret(ctx, id interface{}) *gomock.Call

DescribeSecret indicates an expected call of DescribeSecret

func (*MockClientMockRecorder) DestroySecret

func (mr *MockClientMockRecorder) DestroySecret(ctx, id interface{}) *gomock.Call

DestroySecret indicates an expected call of DestroySecret

func (*MockClientMockRecorder) GetAlias

func (mr *MockClientMockRecorder) GetAlias(ctx, keyID interface{}) *gomock.Call

GetAlias indicates an expected call of GetAlias

func (*MockClientMockRecorder) GetPublicKey

func (mr *MockClientMockRecorder) GetPublicKey(ctx, keyID interface{}) *gomock.Call

GetPublicKey indicates an expected call of GetPublicKey

func (*MockClientMockRecorder) GetSecret

func (mr *MockClientMockRecorder) GetSecret(ctx, id, version interface{}) *gomock.Call

GetSecret indicates an expected call of GetSecret

func (*MockClientMockRecorder) ListKeys

func (mr *MockClientMockRecorder) ListKeys(ctx, limit, marker interface{}) *gomock.Call

ListKeys indicates an expected call of ListKeys

func (*MockClientMockRecorder) ListSecrets

func (mr *MockClientMockRecorder) ListSecrets(ctx, maxResults, nextToken interface{}) *gomock.Call

ListSecrets indicates an expected call of ListSecrets

func (*MockClientMockRecorder) ListTags

func (mr *MockClientMockRecorder) ListTags(ctx, keyID, marker interface{}) *gomock.Call

ListTags indicates an expected call of ListTags

func (*MockClientMockRecorder) PutSecretValue

func (mr *MockClientMockRecorder) PutSecretValue(ctx, id, value interface{}) *gomock.Call

PutSecretValue indicates an expected call of PutSecretValue

func (*MockClientMockRecorder) RestoreKey

func (mr *MockClientMockRecorder) RestoreKey(ctx, keyID interface{}) *gomock.Call

RestoreKey indicates an expected call of RestoreKey

func (*MockClientMockRecorder) RestoreSecret

func (mr *MockClientMockRecorder) RestoreSecret(ctx, id interface{}) *gomock.Call

RestoreSecret indicates an expected call of RestoreSecret

func (*MockClientMockRecorder) Sign

func (mr *MockClientMockRecorder) Sign(ctx, keyID, msg, signingAlgorithm interface{}) *gomock.Call

Sign indicates an expected call of Sign

func (*MockClientMockRecorder) TagResource

func (mr *MockClientMockRecorder) TagResource(ctx, keyID, tags interface{}) *gomock.Call

TagResource indicates an expected call of TagResource

func (*MockClientMockRecorder) TagSecretResource

func (mr *MockClientMockRecorder) TagSecretResource(ctx, id, tags interface{}) *gomock.Call

TagSecretResource indicates an expected call of TagSecretResource

func (*MockClientMockRecorder) UntagResource

func (mr *MockClientMockRecorder) UntagResource(ctx, keyID, tagKeys interface{}) *gomock.Call

UntagResource indicates an expected call of UntagResource

func (*MockClientMockRecorder) UpdateSecret

func (mr *MockClientMockRecorder) UpdateSecret(ctx, id, value, keyID, desc interface{}) *gomock.Call

UpdateSecret indicates an expected call of UpdateSecret

type MockKmsClient

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

MockKmsClient is a mock of KmsClient interface

func NewMockKmsClient

func NewMockKmsClient(ctrl *gomock.Controller) *MockKmsClient

NewMockKmsClient creates a new mock instance

func (*MockKmsClient) CreateKey

func (m *MockKmsClient) CreateKey(ctx context.Context, id, keyType string, tags []*kms.Tag) (*kms.CreateKeyOutput, error)

CreateKey mocks base method

func (*MockKmsClient) DeleteKey

func (m *MockKmsClient) DeleteKey(ctx context.Context, keyID string) (*kms.ScheduleKeyDeletionOutput, error)

DeleteKey mocks base method

func (*MockKmsClient) DescribeKey

func (m *MockKmsClient) DescribeKey(ctx context.Context, id string) (*kms.DescribeKeyOutput, error)

DescribeKey mocks base method

func (*MockKmsClient) EXPECT

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

func (*MockKmsClient) GetAlias

func (m *MockKmsClient) GetAlias(ctx context.Context, keyID string) (string, error)

GetAlias mocks base method

func (*MockKmsClient) GetPublicKey

func (m *MockKmsClient) GetPublicKey(ctx context.Context, keyID string) (*kms.GetPublicKeyOutput, error)

GetPublicKey mocks base method

func (*MockKmsClient) ListKeys

func (m *MockKmsClient) ListKeys(ctx context.Context, limit int64, marker string) (*kms.ListKeysOutput, error)

ListKeys mocks base method

func (*MockKmsClient) ListTags

func (m *MockKmsClient) ListTags(ctx context.Context, keyID, marker string) (*kms.ListResourceTagsOutput, error)

ListTags mocks base method

func (*MockKmsClient) RestoreKey

func (m *MockKmsClient) RestoreKey(ctx context.Context, keyID string) (*kms.CancelKeyDeletionOutput, error)

RestoreKey mocks base method

func (*MockKmsClient) Sign

func (m *MockKmsClient) Sign(ctx context.Context, keyID string, msg []byte, signingAlgorithm string) (*kms.SignOutput, error)

Sign mocks base method

func (*MockKmsClient) TagResource

func (m *MockKmsClient) TagResource(ctx context.Context, keyID string, tags []*kms.Tag) (*kms.TagResourceOutput, error)

TagResource mocks base method

func (*MockKmsClient) UntagResource

func (m *MockKmsClient) UntagResource(ctx context.Context, keyID string, tagKeys []*string) (*kms.UntagResourceOutput, error)

UntagResource mocks base method

type MockKmsClientMockRecorder

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

MockKmsClientMockRecorder is the mock recorder for MockKmsClient

func (*MockKmsClientMockRecorder) CreateKey

func (mr *MockKmsClientMockRecorder) CreateKey(ctx, id, keyType, tags interface{}) *gomock.Call

CreateKey indicates an expected call of CreateKey

func (*MockKmsClientMockRecorder) DeleteKey

func (mr *MockKmsClientMockRecorder) DeleteKey(ctx, keyID interface{}) *gomock.Call

DeleteKey indicates an expected call of DeleteKey

func (*MockKmsClientMockRecorder) DescribeKey

func (mr *MockKmsClientMockRecorder) DescribeKey(ctx, id interface{}) *gomock.Call

DescribeKey indicates an expected call of DescribeKey

func (*MockKmsClientMockRecorder) GetAlias

func (mr *MockKmsClientMockRecorder) GetAlias(ctx, keyID interface{}) *gomock.Call

GetAlias indicates an expected call of GetAlias

func (*MockKmsClientMockRecorder) GetPublicKey

func (mr *MockKmsClientMockRecorder) GetPublicKey(ctx, keyID interface{}) *gomock.Call

GetPublicKey indicates an expected call of GetPublicKey

func (*MockKmsClientMockRecorder) ListKeys

func (mr *MockKmsClientMockRecorder) ListKeys(ctx, limit, marker interface{}) *gomock.Call

ListKeys indicates an expected call of ListKeys

func (*MockKmsClientMockRecorder) ListTags

func (mr *MockKmsClientMockRecorder) ListTags(ctx, keyID, marker interface{}) *gomock.Call

ListTags indicates an expected call of ListTags

func (*MockKmsClientMockRecorder) RestoreKey

func (mr *MockKmsClientMockRecorder) RestoreKey(ctx, keyID interface{}) *gomock.Call

RestoreKey indicates an expected call of RestoreKey

func (*MockKmsClientMockRecorder) Sign

func (mr *MockKmsClientMockRecorder) Sign(ctx, keyID, msg, signingAlgorithm interface{}) *gomock.Call

Sign indicates an expected call of Sign

func (*MockKmsClientMockRecorder) TagResource

func (mr *MockKmsClientMockRecorder) TagResource(ctx, keyID, tags interface{}) *gomock.Call

TagResource indicates an expected call of TagResource

func (*MockKmsClientMockRecorder) UntagResource

func (mr *MockKmsClientMockRecorder) UntagResource(ctx, keyID, tagKeys interface{}) *gomock.Call

UntagResource indicates an expected call of UntagResource

type MockSecretsManagerClient

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

MockSecretsManagerClient is a mock of SecretsManagerClient interface

func NewMockSecretsManagerClient

func NewMockSecretsManagerClient(ctrl *gomock.Controller) *MockSecretsManagerClient

NewMockSecretsManagerClient creates a new mock instance

func (*MockSecretsManagerClient) CreateSecret

CreateSecret mocks base method

func (*MockSecretsManagerClient) DeleteSecret

DeleteSecret mocks base method

func (*MockSecretsManagerClient) DescribeSecret

func (m *MockSecretsManagerClient) DescribeSecret(ctx context.Context, id string) (map[string]string, *entities.Metadata, error)

DescribeSecret mocks base method

func (*MockSecretsManagerClient) DestroySecret

DestroySecret mocks base method

func (*MockSecretsManagerClient) EXPECT

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

func (*MockSecretsManagerClient) GetSecret

GetSecret mocks base method

func (*MockSecretsManagerClient) ListSecrets

func (m *MockSecretsManagerClient) ListSecrets(ctx context.Context, maxResults int64, nextToken string) (*secretsmanager.ListSecretsOutput, error)

ListSecrets mocks base method

func (*MockSecretsManagerClient) PutSecretValue

PutSecretValue mocks base method

func (*MockSecretsManagerClient) RestoreSecret

RestoreSecret mocks base method

func (*MockSecretsManagerClient) TagSecretResource

TagSecretResource mocks base method

func (*MockSecretsManagerClient) UpdateSecret

func (m *MockSecretsManagerClient) UpdateSecret(ctx context.Context, id, value, keyID, desc string) (*secretsmanager.UpdateSecretOutput, error)

UpdateSecret mocks base method

type MockSecretsManagerClientMockRecorder

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

MockSecretsManagerClientMockRecorder is the mock recorder for MockSecretsManagerClient

func (*MockSecretsManagerClientMockRecorder) CreateSecret

func (mr *MockSecretsManagerClientMockRecorder) CreateSecret(ctx, id, value interface{}) *gomock.Call

CreateSecret indicates an expected call of CreateSecret

func (*MockSecretsManagerClientMockRecorder) DeleteSecret

func (mr *MockSecretsManagerClientMockRecorder) DeleteSecret(ctx, id interface{}) *gomock.Call

DeleteSecret indicates an expected call of DeleteSecret

func (*MockSecretsManagerClientMockRecorder) DescribeSecret

func (mr *MockSecretsManagerClientMockRecorder) DescribeSecret(ctx, id interface{}) *gomock.Call

DescribeSecret indicates an expected call of DescribeSecret

func (*MockSecretsManagerClientMockRecorder) DestroySecret

func (mr *MockSecretsManagerClientMockRecorder) DestroySecret(ctx, id interface{}) *gomock.Call

DestroySecret indicates an expected call of DestroySecret

func (*MockSecretsManagerClientMockRecorder) GetSecret

func (mr *MockSecretsManagerClientMockRecorder) GetSecret(ctx, id, version interface{}) *gomock.Call

GetSecret indicates an expected call of GetSecret

func (*MockSecretsManagerClientMockRecorder) ListSecrets

func (mr *MockSecretsManagerClientMockRecorder) ListSecrets(ctx, maxResults, nextToken interface{}) *gomock.Call

ListSecrets indicates an expected call of ListSecrets

func (*MockSecretsManagerClientMockRecorder) PutSecretValue

func (mr *MockSecretsManagerClientMockRecorder) PutSecretValue(ctx, id, value interface{}) *gomock.Call

PutSecretValue indicates an expected call of PutSecretValue

func (*MockSecretsManagerClientMockRecorder) RestoreSecret

func (mr *MockSecretsManagerClientMockRecorder) RestoreSecret(ctx, id interface{}) *gomock.Call

RestoreSecret indicates an expected call of RestoreSecret

func (*MockSecretsManagerClientMockRecorder) TagSecretResource

func (mr *MockSecretsManagerClientMockRecorder) TagSecretResource(ctx, id, tags interface{}) *gomock.Call

TagSecretResource indicates an expected call of TagSecretResource

func (*MockSecretsManagerClientMockRecorder) UpdateSecret

func (mr *MockSecretsManagerClientMockRecorder) UpdateSecret(ctx, id, value, keyID, desc interface{}) *gomock.Call

UpdateSecret indicates an expected call of UpdateSecret

Jump to

Keyboard shortcuts

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