interfaces

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRegistry

type IRegistry interface {
	Catalog(ctx context.Context, pagination common.PaginationOption, options common.CatalogOption, authenticator authn.Authenticator) (repositories []string, nextPage *common.PaginationOption, err error)
	List(repoName string, pagination common.PaginationOption, options ...remote.Option) (tags []string, nextPagination *common.PaginationOption, err error)
	GetLatestTags(repoName string, depth int, options ...remote.Option) (tags []string, err error)
	GetAuth() *authn.AuthConfig
	GetRegistry() *name.Registry
	GetMaxPageSize() int
}

type RegistryClient added in v0.0.18

type RegistryClient interface {
	GetAllRepositories(ctx context.Context) ([]string, error)
	GetImagesToScan(ctx context.Context) (map[string]string, error)
	GetDockerAuth() *dockerregistry.AuthConfig
}

Jump to

Keyboard shortcuts

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