Documentation ¶
Index ¶
- type DiffImage
- 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) DiffImage(_ context.Context, given *registry.DiffImageRequest, _ ...grpc.CallOption) (*registry.DiffImageResponse, error)
- func (m MockRegistryClient) GetSbom(_ context.Context, given *registry.SbomRequest, _ ...grpc.CallOption) (*tenant.Sbom2, error)
- func (m MockRegistryClient) GetVulnReport(_ context.Context, given *registry.VulnReportRequest, _ ...grpc.CallOption) (*tenant.VulnReport, 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 SbomOnGet
- type TagHistoryOnList
- type TagOnUpdate
- type TagsOnCreate
- type TagsOnDelete
- type TagsOnList
- type VulnReportOnGet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffImage ¶ added in v0.1.11
type DiffImage struct { Given *registry.DiffImageRequest Diff *registry.DiffImageResponse Error error }
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 OnGetSbom []SbomOnGet OnGetVulnReport []VulnReportOnGet OnDiffImage []DiffImage }
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) DiffImage ¶ added in v0.1.11
func (m MockRegistryClient) DiffImage(_ context.Context, given *registry.DiffImageRequest, _ ...grpc.CallOption) (*registry.DiffImageResponse, error)
func (MockRegistryClient) GetSbom ¶ added in v0.1.8
func (m MockRegistryClient) GetSbom(_ context.Context, given *registry.SbomRequest, _ ...grpc.CallOption) (*tenant.Sbom2, error)
func (MockRegistryClient) GetVulnReport ¶ added in v0.1.12
func (m MockRegistryClient) GetVulnReport(_ context.Context, given *registry.VulnReportRequest, _ ...grpc.CallOption) (*tenant.VulnReport, 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 SbomOnGet ¶ added in v0.1.8
type SbomOnGet struct { Given *registry.SbomRequest Get *tenant.Sbom2 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 }
type TagsOnList ¶
type VulnReportOnGet ¶ added in v0.1.12
type VulnReportOnGet struct { Given *registry.VulnReportRequest Get *tenant.VulnReport Error error }
Click to show internal directories.
Click to hide internal directories.