registry

package
v0.0.0-...-80a0973 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EcrDescribeImageToCache

func EcrDescribeImageToCache(
	svc *ecr.ECR,
	repositoryName string,
	registry cfg.DockerRegistry,
	db *buntdb.DB,
) (total int)

func EcrGetAuth

func EcrGetAuth(registry cfg.DockerRegistry) (svc *ecr.ECR)

func EcrWorker

func EcrWorker(db *buntdb.DB, registry cfg.DockerRegistry, imageList []string)

func GarWorker

func GarWorker(db *buntdb.DB, registry cfg.DockerRegistry, imageList []string)

func GcrWorker

func GcrWorker(_ *buntdb.DB, registry cfg.DockerRegistry, _ []string)

func TagInfoToCache

func TagInfoToCache(info TagInfo, db *buntdb.DB)

Types

type Client

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

func New

func New(db *buntdb.DB) *Client

func (*Client) CachedImagesToTagInfoListSpecificImage

func (c *Client) CachedImagesToTagInfoListSpecificImage(
	imageString string,
	index string,
) (result []TagInfo)

func (*Client) Exec

func (c *Client) Exec(registry cfg.DockerRegistry, imageList []string)

Exec will check if we support that docker reg and then launch an appropriate worker

type TagInfo

type TagInfo struct {
	Image   string    `json:"image"`
	Hash    string    `json:"hash"`
	Created time.Time `json:"created"`
	Tag     string    `json:"tag"`
}

TagInfo is the official data stored in buntDB

func JSONStringToTagInfo

func JSONStringToTagInfo(s string) TagInfo

Jump to

Keyboard shortcuts

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