test

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 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 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 (MockRegistryClient) CreateTag

func (MockRegistryClient) DeleteRepo

func (MockRegistryClient) DeleteTag

func (MockRegistryClient) DiffImage added in v0.1.11

func (MockRegistryClient) GetSbom added in v0.1.8

func (MockRegistryClient) GetVulnReport added in v0.1.12

func (MockRegistryClient) ListRepos

func (MockRegistryClient) ListTagHistory

func (MockRegistryClient) ListTags

func (MockRegistryClient) UpdateRepo

func (m MockRegistryClient) UpdateRepo(_ context.Context, given *registry.Repo, _ ...grpc.CallOption) (*registry.Repo, error)

func (MockRegistryClient) UpdateTag

func (m MockRegistryClient) UpdateTag(_ context.Context, given *registry.Tag, _ ...grpc.CallOption) (*registry.Tag, error)

type MockRegistryClients

type MockRegistryClients struct {
	OnClose error

	RegistryClient MockRegistryClient
}

func (MockRegistryClients) Close

func (m MockRegistryClients) Close() error

func (MockRegistryClients) Registry

type RepoOnUpdate

type RepoOnUpdate struct {
	Given   *registry.Repo
	Updated *registry.Repo
	Error   error
}

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 TagOnUpdate struct {
	Given   *registry.Tag
	Updated *registry.Tag
	Error   error
}

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 TagsOnList struct {
	Given *registry.TagFilter
	List  *registry.TagList
	Error error
}

type VulnReportOnGet added in v0.1.12

type VulnReportOnGet struct {
	Given *registry.VulnReportRequest
	Get   *tenant.VulnReport
	Error error
}

Jump to

Keyboard shortcuts

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