oci

package
v0.12.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const OCIRepositoryPrefix = "oci://"

OCIRepositoryPrefix is the prefix used for OCIRepository URLs.

View Source
const (
	// UserAgent string used for OCI calls.
	UserAgent = "kusion"
)

Variables

This section is empty.

Functions

func ParseArtifactRef

func ParseArtifactRef(ociURL string) (name.Reference, error)

ParseArtifactRef parses a string representing an OCI repository URL. If the string is not a valid representation of an OCI repository URL, ParseArtifactRef returns an error.

func SignArtifact

func SignArtifact(provider, registryURL, keyRef string) error

SignArtifact signs an OpenContainers artifact using the specified provider.

func SignCosign

func SignCosign(imageRef, keyRef string) error

SignCosign signs an image (`imageRef`) using a cosign private key (`keyRef`)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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