registry

package
v0.0.0-...-dc266b9 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Catalog   ListSourceType = "catalog"
	DockerHub                = "dockerhub"
	Index                    = "index"
)

Variables

This section is empty.

Functions

func CreateECRTarget

func CreateECRTarget(ref, region, account string, public bool) error

func IsECR

func IsECR(registry string) (ecr, public bool, region, account string)

Types

type DHRepoDescriptor

type DHRepoDescriptor struct {
	User        string `json:"user",required`
	Name        string `json:"name",required`
	Namespace   string `json:"namespace",required`
	Type        string `json:"repository_type",required`
	Description string `json:"description",omitempty`
	IsPrivate   bool   `json:"is_private",omitempty`
}

type DHRepoList

type DHRepoList struct {
	Items    []DHRepoDescriptor `json:"results",required`
	NextPage string             `json:"next",omitempty`
}

type ListSource

type ListSource interface {
	Ping() error
	Retrieve(maxItems int) ([]string, error)
}

type ListSourceType

type ListSourceType string

func (ListSourceType) IsValid

func (t ListSourceType) IsValid() bool

type RepoList

type RepoList struct {
	// contains filtered or unexported fields
}

func NewRepoList

func NewRepoList(registry string, insecure bool, typ ListSourceType,
	config map[string]string, creds *auth.Credentials) (*RepoList, error)

func (*RepoList) Get

func (l *RepoList) Get() ([]string, error)

func (*RepoList) SetCacheDuration

func (l *RepoList) SetCacheDuration(d time.Duration)

func (*RepoList) SetMaxItems

func (l *RepoList) SetMaxItems(max int)

Jump to

Keyboard shortcuts

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