fake

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepositoryClient

type MockRepositoryClient struct {
	MockCreate                func(ctx context.Context, input *ecr.CreateRepositoryInput, opts []func(*ecr.Options)) (*ecr.CreateRepositoryOutput, error)
	MockDelete                func(ctx context.Context, input *ecr.DeleteRepositoryInput, opts []func(*ecr.Options)) (*ecr.DeleteRepositoryOutput, error)
	MockDescribe              func(ctx context.Context, input *ecr.DescribeRepositoriesInput, opts []func(*ecr.Options)) (*ecr.DescribeRepositoriesOutput, error)
	MockListTags              func(ctx context.Context, input *ecr.ListTagsForResourceInput, opts []func(*ecr.Options)) (*ecr.ListTagsForResourceOutput, error)
	MockTag                   func(ctx context.Context, input *ecr.TagResourceInput, opts []func(*ecr.Options)) (*ecr.TagResourceOutput, error)
	MockUntag                 func(ctx context.Context, input *ecr.UntagResourceInput, opts []func(*ecr.Options)) (*ecr.UntagResourceOutput, error)
	MockPutImageScan          func(ctx context.Context, input *ecr.PutImageScanningConfigurationInput, opts []func(*ecr.Options)) (*ecr.PutImageScanningConfigurationOutput, error)
	MockPutImageTagMutability func(ctx context.Context, input *ecr.PutImageTagMutabilityInput, opts []func(*ecr.Options)) (*ecr.PutImageTagMutabilityOutput, error)
}

MockRepositoryClient is a type that implements all the methods for ECRClient interface

func (*MockRepositoryClient) CreateRepository

func (m *MockRepositoryClient) CreateRepository(ctx context.Context, input *ecr.CreateRepositoryInput, opts ...func(*ecr.Options)) (*ecr.CreateRepositoryOutput, error)

CreateRepository mocks CreateRepository method

func (*MockRepositoryClient) DeleteRepository

func (m *MockRepositoryClient) DeleteRepository(ctx context.Context, input *ecr.DeleteRepositoryInput, opts ...func(*ecr.Options)) (*ecr.DeleteRepositoryOutput, error)

DeleteRepository mocks DeleteRepository method

func (*MockRepositoryClient) DescribeRepositories

func (m *MockRepositoryClient) DescribeRepositories(ctx context.Context, input *ecr.DescribeRepositoriesInput, opts ...func(*ecr.Options)) (*ecr.DescribeRepositoriesOutput, error)

DescribeRepositories mocks DescribeRepositories method

func (*MockRepositoryClient) ListTagsForResource

func (m *MockRepositoryClient) ListTagsForResource(ctx context.Context, input *ecr.ListTagsForResourceInput, opts ...func(*ecr.Options)) (*ecr.ListTagsForResourceOutput, error)

ListTagsForResource mocks ListTagsForResource method

func (*MockRepositoryClient) PutImageScanningConfiguration

func (m *MockRepositoryClient) PutImageScanningConfiguration(ctx context.Context, input *ecr.PutImageScanningConfigurationInput, opts ...func(*ecr.Options)) (*ecr.PutImageScanningConfigurationOutput, error)

PutImageScanningConfiguration mocks PutImageScanningConfiguration method

func (*MockRepositoryClient) PutImageTagMutability

func (m *MockRepositoryClient) PutImageTagMutability(ctx context.Context, input *ecr.PutImageTagMutabilityInput, opts ...func(*ecr.Options)) (*ecr.PutImageTagMutabilityOutput, error)

PutImageTagMutability mocks PutImageTagMutability method

func (*MockRepositoryClient) TagResource

func (m *MockRepositoryClient) TagResource(ctx context.Context, input *ecr.TagResourceInput, opts ...func(*ecr.Options)) (*ecr.TagResourceOutput, error)

TagResource mocks TagResource method

func (*MockRepositoryClient) UntagResource

func (m *MockRepositoryClient) UntagResource(ctx context.Context, input *ecr.UntagResourceInput, opts ...func(*ecr.Options)) (*ecr.UntagResourceOutput, error)

UntagResource mocks UntagResource method

type MockRepositoryPolicyClient

type MockRepositoryPolicyClient struct {
	MockSet    func(ctx context.Context, input *ecr.SetRepositoryPolicyInput, opts []func(*ecr.Options)) (*ecr.SetRepositoryPolicyOutput, error)
	MockDelete func(ctx context.Context, input *ecr.DeleteRepositoryPolicyInput, opts []func(*ecr.Options)) (*ecr.DeleteRepositoryPolicyOutput, error)
	MockGet    func(ctx context.Context, input *ecr.GetRepositoryPolicyInput, opts []func(*ecr.Options)) (*ecr.GetRepositoryPolicyOutput, error)
}

MockRepositoryPolicyClient is a type that implements all the methods for ECRClient interface

func (*MockRepositoryPolicyClient) DeleteRepositoryPolicy

DeleteRepositoryPolicy mocks ecr method

func (*MockRepositoryPolicyClient) GetRepositoryPolicy

func (m *MockRepositoryPolicyClient) GetRepositoryPolicy(ctx context.Context, input *ecr.GetRepositoryPolicyInput, opts ...func(*ecr.Options)) (*ecr.GetRepositoryPolicyOutput, error)

GetRepositoryPolicy mocks ecr method

func (*MockRepositoryPolicyClient) SetRepositoryPolicy

func (m *MockRepositoryPolicyClient) SetRepositoryPolicy(ctx context.Context, input *ecr.SetRepositoryPolicyInput, opts ...func(*ecr.Options)) (*ecr.SetRepositoryPolicyOutput, error)

SetRepositoryPolicy mocks ecr method

Jump to

Keyboard shortcuts

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