ecr

package
v0.0.0-...-19bd712 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

type MockClient struct {
	mock.Mock
}

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

type MockClient_DescribeRepositories_Call struct {
	*mock.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 (*MockClient_DescribeRepositories_Call) Run

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

type MockRepositoryDescriber struct {
	mock.Mock
}

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

type MockRepositoryDescriber_DescribeRepositories_Call

type MockRepositoryDescriber_DescribeRepositories_Call struct {
	*mock.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 (*MockRepositoryDescriber_DescribeRepositories_Call) Run

func (*MockRepositoryDescriber_DescribeRepositories_Call) RunAndReturn

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 NewEcrProvider(log *logp.Logger, cfg aws.Config, factory awslib.CrossRegionFactory[Client]) *Provider

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

type RepositoryDescriber

type RepositoryDescriber interface {
	DescribeRepositories(ctx context.Context, repoNames []string, region string) ([]types.Repository, error)
}

Jump to

Keyboard shortcuts

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