Documentation ¶
Index ¶
- type Client
- type MockClient
- type MockClient_DescribeRepositories_Call
- func (_c *MockClient_DescribeRepositories_Call) Return(_a0 *serviceecr.DescribeRepositoriesOutput, _a1 error) *MockClient_DescribeRepositories_Call
- func (_c *MockClient_DescribeRepositories_Call) Run(...) *MockClient_DescribeRepositories_Call
- func (_c *MockClient_DescribeRepositories_Call) RunAndReturn(...) *MockClient_DescribeRepositories_Call
- type MockClient_Expecter
- type MockRepositoryDescriber
- type MockRepositoryDescriber_DescribeRepositories_Call
- func (_c *MockRepositoryDescriber_DescribeRepositories_Call) Return(_a0 []types.Repository, _a1 error) *MockRepositoryDescriber_DescribeRepositories_Call
- func (_c *MockRepositoryDescriber_DescribeRepositories_Call) Run(run func(ctx context.Context, repoNames []string, region string)) *MockRepositoryDescriber_DescribeRepositories_Call
- func (_c *MockRepositoryDescriber_DescribeRepositories_Call) RunAndReturn(run func(context.Context, []string, string) ([]types.Repository, error)) *MockRepositoryDescriber_DescribeRepositories_Call
- type MockRepositoryDescriber_Expecter
- type Provider
- type Repository
- type RepositoryDescriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
DescribeRepositories(ctx context.Context, params *ecrClient.DescribeRepositoriesInput, optFns ...func(*ecrClient.Options)) (*ecrClient.DescribeRepositoriesOutput, error)
}
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t interface { mock.TestingT Cleanup(func()) }) *MockClient
NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockClient) DescribeRepositories ¶
func (_m *MockClient) DescribeRepositories(ctx context.Context, params *serviceecr.DescribeRepositoriesInput, optFns ...func(*serviceecr.Options)) (*serviceecr.DescribeRepositoriesOutput, error)
DescribeRepositories provides a mock function with given fields: ctx, params, optFns
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
type MockClient_DescribeRepositories_Call ¶
MockClient_DescribeRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeRepositories'
func (*MockClient_DescribeRepositories_Call) Return ¶
func (_c *MockClient_DescribeRepositories_Call) Return(_a0 *serviceecr.DescribeRepositoriesOutput, _a1 error) *MockClient_DescribeRepositories_Call
func (*MockClient_DescribeRepositories_Call) Run ¶
func (_c *MockClient_DescribeRepositories_Call) Run(run func(ctx context.Context, params *serviceecr.DescribeRepositoriesInput, optFns ...func(*serviceecr.Options))) *MockClient_DescribeRepositories_Call
func (*MockClient_DescribeRepositories_Call) RunAndReturn ¶
func (_c *MockClient_DescribeRepositories_Call) RunAndReturn(run func(context.Context, *serviceecr.DescribeRepositoriesInput, ...func(*serviceecr.Options)) (*serviceecr.DescribeRepositoriesOutput, error)) *MockClient_DescribeRepositories_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) DescribeRepositories ¶
func (_e *MockClient_Expecter) DescribeRepositories(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeRepositories_Call
DescribeRepositories is a helper method to define mock.On call
- ctx context.Context
- params *serviceecr.DescribeRepositoriesInput
- optFns ...func(*serviceecr.Options)
type MockRepositoryDescriber ¶
MockRepositoryDescriber is an autogenerated mock type for the RepositoryDescriber type
func NewMockRepositoryDescriber ¶
func NewMockRepositoryDescriber(t interface { mock.TestingT Cleanup(func()) }) *MockRepositoryDescriber
NewMockRepositoryDescriber creates a new instance of MockRepositoryDescriber. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockRepositoryDescriber) DescribeRepositories ¶
func (_m *MockRepositoryDescriber) DescribeRepositories(ctx context.Context, repoNames []string, region string) ([]types.Repository, error)
DescribeRepositories provides a mock function with given fields: ctx, repoNames, region
func (*MockRepositoryDescriber) EXPECT ¶
func (_m *MockRepositoryDescriber) EXPECT() *MockRepositoryDescriber_Expecter
type MockRepositoryDescriber_DescribeRepositories_Call ¶
MockRepositoryDescriber_DescribeRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeRepositories'
func (*MockRepositoryDescriber_DescribeRepositories_Call) Return ¶
func (_c *MockRepositoryDescriber_DescribeRepositories_Call) Return(_a0 []types.Repository, _a1 error) *MockRepositoryDescriber_DescribeRepositories_Call
func (*MockRepositoryDescriber_DescribeRepositories_Call) Run ¶
func (_c *MockRepositoryDescriber_DescribeRepositories_Call) Run(run func(ctx context.Context, repoNames []string, region string)) *MockRepositoryDescriber_DescribeRepositories_Call
func (*MockRepositoryDescriber_DescribeRepositories_Call) RunAndReturn ¶
func (_c *MockRepositoryDescriber_DescribeRepositories_Call) RunAndReturn(run func(context.Context, []string, string) ([]types.Repository, error)) *MockRepositoryDescriber_DescribeRepositories_Call
type MockRepositoryDescriber_Expecter ¶
type MockRepositoryDescriber_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRepositoryDescriber_Expecter) DescribeRepositories ¶
func (_e *MockRepositoryDescriber_Expecter) DescribeRepositories(ctx interface{}, repoNames interface{}, region interface{}) *MockRepositoryDescriber_DescribeRepositories_Call
DescribeRepositories is a helper method to define mock.On call
- ctx context.Context
- repoNames []string
- region string
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewEcrProvider ¶
func (*Provider) DescribeAllEcrRepositories ¶
func (provider *Provider) DescribeAllEcrRepositories(ctx context.Context, region string) ([]types.Repository, error)
DescribeAllEcrRepositories returns a list of all the existing repositories
func (*Provider) DescribeRepositories ¶
func (provider *Provider) DescribeRepositories(ctx context.Context, repoNames []string, region string) ([]types.Repository, error)
DescribeRepositories returns a list of repositories that match the given names. When repoNames is empty, it will describe all the existing repositories
type Repository ¶
type Repository types.Repository