pkg

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractImagePath

func ExtractImagePath(image string) (string, error)

ExtractImagePath extracts the image path from an image name.

func ExtractRegistryURL

func ExtractRegistryURL(image string) (string, error)

ExtractRegistryURL extracts a registry URL from an image name.

func NormalizeRegistryName

func NormalizeRegistryName(url string) string

NormalizeRegistryName converts the registry URL into a normalized name.

Types

type IRegistryClient

type IRegistryClient interface {
	IsTagExist(tag string) (bool, error)
}

type RegistryClient

type RegistryClient struct {
	RegistryName string
	RegistryURL  string
	ImagePath    string
	HttpClient   *http.Client
	Platforms    []string
}

func (RegistryClient) IsTagExist

func (r RegistryClient) IsTagExist(tag string) (bool, error)

Jump to

Keyboard shortcuts

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