registry

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OCIScheme is the URL scheme for OCI-based requests
	OCIScheme = "oci"

	OCICatalogManifestMediaType = "application/vnd.cidverse.cid.catalog-config.v1+json"

	OCICatalogFileMediaType = "application/vnd.cidverse.cid.catalog.v1+json"
)

Variables

This section is empty.

Functions

func GetArtifactDigest

func GetArtifactDigest(reference string) (string, error)

func IsOCI

func IsOCI(url string) bool

IsOCI determines whether a URL is to be treated as an OCI URL

func ParseReference

func ParseReference(raw string) (registry.Reference, error)

ParseReference will replace + with _ in the tag

func PushCatalog

func PushCatalog(ref string, registryHost string, username string, password string, catalogFile string) (*ocispec.Descriptor, error)

Types

type ImageTag

type ImageTag struct {
	Repository string `json:"repository"`
	Tag        string `json:"tag"`
}

func FindTags

func FindTags(repositoryURL string) ([]ImageTag, error)

Jump to

Keyboard shortcuts

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