oras

package
v0.0.0-...-53c5c15 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadArtifact

func LoadArtifact(
	uri string,
	mediaType string,
	cache string,
) (types.CompatibilityRequest, error)

Oras will provide an interface to retrieve an artifact, specifically a compatibillity spec artifact media type LoadArtifact retrieves the artifact from the url string and returns based on the media type

func LoadFromCache

func LoadFromCache(uri, cache string) (types.CompatibilityRequest, error)

LoadFromCache loads the compatibility request from cache

func LoadFromRegistry

func LoadFromRegistry(uri, mediaType string) (types.CompatibilityRequest, error)

Load the artifact from a registry

func SaveToCache

func SaveToCache(request types.CompatibilityRequest, uri, cache string) error

Save to cache

Types

This section is empty.

Jump to

Keyboard shortcuts

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