Documentation ¶
Index ¶
- type MockRepositoryClient
- func (m *MockRepositoryClient) CreateRepository(ctx context.Context, input *ecr.CreateRepositoryInput, ...) (*ecr.CreateRepositoryOutput, error)
- func (m *MockRepositoryClient) DeleteRepository(ctx context.Context, input *ecr.DeleteRepositoryInput, ...) (*ecr.DeleteRepositoryOutput, error)
- func (m *MockRepositoryClient) DescribeRepositories(ctx context.Context, input *ecr.DescribeRepositoriesInput, ...) (*ecr.DescribeRepositoriesOutput, error)
- func (m *MockRepositoryClient) ListTagsForResource(ctx context.Context, input *ecr.ListTagsForResourceInput, ...) (*ecr.ListTagsForResourceOutput, error)
- func (m *MockRepositoryClient) PutImageScanningConfiguration(ctx context.Context, input *ecr.PutImageScanningConfigurationInput, ...) (*ecr.PutImageScanningConfigurationOutput, error)
- func (m *MockRepositoryClient) PutImageTagMutability(ctx context.Context, input *ecr.PutImageTagMutabilityInput, ...) (*ecr.PutImageTagMutabilityOutput, error)
- func (m *MockRepositoryClient) TagResource(ctx context.Context, input *ecr.TagResourceInput, opts ...func(*ecr.Options)) (*ecr.TagResourceOutput, error)
- func (m *MockRepositoryClient) UntagResource(ctx context.Context, input *ecr.UntagResourceInput, opts ...func(*ecr.Options)) (*ecr.UntagResourceOutput, error)
- type MockRepositoryPolicyClient
- func (m *MockRepositoryPolicyClient) DeleteRepositoryPolicy(ctx context.Context, input *ecr.DeleteRepositoryPolicyInput, ...) (*ecr.DeleteRepositoryPolicyOutput, error)
- func (m *MockRepositoryPolicyClient) GetRepositoryPolicy(ctx context.Context, input *ecr.GetRepositoryPolicyInput, ...) (*ecr.GetRepositoryPolicyOutput, error)
- func (m *MockRepositoryPolicyClient) SetRepositoryPolicy(ctx context.Context, input *ecr.SetRepositoryPolicyInput, ...) (*ecr.SetRepositoryPolicyOutput, error)
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 ¶
func (m *MockRepositoryPolicyClient) DeleteRepositoryPolicy(ctx context.Context, input *ecr.DeleteRepositoryPolicyInput, opts ...func(*ecr.Options)) (*ecr.DeleteRepositoryPolicyOutput, error)
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