Documentation ¶
Index ¶
- type MockRegistryClient
- func (m MockRegistryClient) CreateRepo(_ context.Context, given *registry.CreateRepoRequest, _ ...grpc.CallOption) (*registry.Repo, error)
- func (m MockRegistryClient) CreateTag(_ context.Context, given *registry.CreateTagRequest, _ ...grpc.CallOption) (*registry.Tag, error)
- func (m MockRegistryClient) DeleteRepo(_ context.Context, given *registry.DeleteRepoRequest, _ ...grpc.CallOption) (*emptypb.Empty, error)
- func (m MockRegistryClient) DeleteTag(_ context.Context, given *registry.DeleteTagRequest, _ ...grpc.CallOption) (*emptypb.Empty, error)
- func (m MockRegistryClient) ListRepos(_ context.Context, given *registry.RepoFilter, _ ...grpc.CallOption) (*registry.RepoList, error)
- func (m MockRegistryClient) ListTagHistory(_ context.Context, given *registry.TagHistoryFilter, _ ...grpc.CallOption) (*registry.TagHistoryList, error)
- func (m MockRegistryClient) ListTags(_ context.Context, given *registry.TagFilter, _ ...grpc.CallOption) (*registry.TagList, error)
- func (m MockRegistryClient) UpdateRepo(_ context.Context, given *registry.Repo, _ ...grpc.CallOption) (*registry.Repo, error)
- func (m MockRegistryClient) UpdateTag(_ context.Context, given *registry.Tag, _ ...grpc.CallOption) (*registry.Tag, error)
- type MockRegistryClients
- type RepoOnUpdate
- type ReposOnCreate
- type ReposOnDelete
- type ReposOnList
- type TagHistoryOnList
- type TagOnUpdate
- type TagsOnCreate
- type TagsOnDelete
- type TagsOnList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRegistryClient ¶
type MockRegistryClient struct { registry.RegistryClient OnCreateRepos []ReposOnCreate OnDeleteRepos []ReposOnDelete OnListRepos []ReposOnList OnCreateTags []TagsOnCreate OnDeleteTags []TagsOnDelete OnUpdateTag []TagOnUpdate OnListTags []TagsOnList OnUpdateRepo []RepoOnUpdate OnListTagHistory []TagHistoryOnList }
func (MockRegistryClient) CreateRepo ¶
func (m MockRegistryClient) CreateRepo(_ context.Context, given *registry.CreateRepoRequest, _ ...grpc.CallOption) (*registry.Repo, error)
func (MockRegistryClient) CreateTag ¶
func (m MockRegistryClient) CreateTag(_ context.Context, given *registry.CreateTagRequest, _ ...grpc.CallOption) (*registry.Tag, error)
func (MockRegistryClient) DeleteRepo ¶
func (m MockRegistryClient) DeleteRepo(_ context.Context, given *registry.DeleteRepoRequest, _ ...grpc.CallOption) (*emptypb.Empty, error)
func (MockRegistryClient) DeleteTag ¶
func (m MockRegistryClient) DeleteTag(_ context.Context, given *registry.DeleteTagRequest, _ ...grpc.CallOption) (*emptypb.Empty, error)
func (MockRegistryClient) ListRepos ¶
func (m MockRegistryClient) ListRepos(_ context.Context, given *registry.RepoFilter, _ ...grpc.CallOption) (*registry.RepoList, error)
func (MockRegistryClient) ListTagHistory ¶
func (m MockRegistryClient) ListTagHistory(_ context.Context, given *registry.TagHistoryFilter, _ ...grpc.CallOption) (*registry.TagHistoryList, error)
func (MockRegistryClient) ListTags ¶
func (m MockRegistryClient) ListTags(_ context.Context, given *registry.TagFilter, _ ...grpc.CallOption) (*registry.TagList, error)
func (MockRegistryClient) UpdateRepo ¶
func (m MockRegistryClient) UpdateRepo(_ context.Context, given *registry.Repo, _ ...grpc.CallOption) (*registry.Repo, error)
type MockRegistryClients ¶
type MockRegistryClients struct { OnClose error RegistryClient MockRegistryClient }
func (MockRegistryClients) Close ¶
func (m MockRegistryClients) Close() error
func (MockRegistryClients) Registry ¶
func (m MockRegistryClients) Registry() registry.RegistryClient
type RepoOnUpdate ¶
type ReposOnCreate ¶
type ReposOnCreate struct { Given *registry.CreateRepoRequest Created *registry.Repo Error error }
type ReposOnDelete ¶
type ReposOnDelete struct { Given *registry.DeleteRepoRequest Error error }
type ReposOnList ¶
type ReposOnList struct { Given *registry.RepoFilter List *registry.RepoList Error error }
type TagHistoryOnList ¶
type TagHistoryOnList struct { Given *registry.TagHistoryFilter List *registry.TagHistoryList Error error }
type TagOnUpdate ¶
type TagsOnCreate ¶
type TagsOnCreate struct { Given *registry.CreateTagRequest Created *registry.Tag Error error }
type TagsOnDelete ¶
type TagsOnDelete struct { Given *registry.DeleteTagRequest Error error }
Click to show internal directories.
Click to hide internal directories.