mirror

package
v0.0.0-...-823d357 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(ctx context.Context, dstreference, srcreference string, dstauth, srcauth *types.DockerAuthConfig) error

func Dest

func Dest(repo, reference string) string

This will return repo and image name, preserving path Ex: repo destrepo.io reference azurecr.io/some/path/to/image:tag returns: destrepo.io/some/path/to/image:tag

func DestLastIndex

func DestLastIndex(repo, reference string) string

This will return repo / image name. Ex: repo destrepo.io reference azurecr.io/some/path/to/image:tag returns: destrepo.io/image:tag

func Mirror

func Mirror(ctx context.Context, log *logrus.Entry, dstrepo, srcrelease string, dstauth, srcauth *types.DockerAuthConfig) error

Types

type Node

type Node struct {
	Version  string                 `json:"version,omitempty"`
	Payload  string                 `json:"payload,omitempty"`
	Metadata map[string]interface{} `json:"metadata,omitempty"`
}

func AddFromGraph

func AddFromGraph(min *version.Version) ([]Node, error)

AddFromGraph adds all nodes whose version is of the form x.y.z (no suffix) and >= min

Jump to

Keyboard shortcuts

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