imagelist

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMirrorSpec

func GetMirrorSpec(line string) ([]string, bool)

func IsDefaultFormat

func IsDefaultFormat(line string) bool

func IsMirrorFormat

func IsMirrorFormat(line string) bool

Types

type ListType

type ListType string
const (
	// TypeUnknow is the undefined format.
	TypeUnknow ListType = ""

	// TypeMirror:
	//
	//  [SOURCE_IMAGE] [DEST_IMAGE] [TAG]
	//
	// Example:
	//  docker.io/library/mysql docker.io/username/mirrored-mysql latest
	//  quay.io/skopeo/stable docker.io/username/mirrored-skopeo-stable 1.22
	TypeMirror ListType = "mirror"

	// TypeDefault:
	//
	//  [REGISTRY]/[PROJECT]/[NAME]:[TAG]
	//
	// Example:
	//  docker.io/library/nginx:1.22
	TypeDefault ListType = "default"
)

func Detect

func Detect(line string) ListType

Jump to

Keyboard shortcuts

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