oras

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Registry   string
	Repository string
	Tag        string

	Output string
}

Artifact struc holds the information about the oras artifact

func NewArtifact

func NewArtifact(ref string, output string) (*Artifact, error)

NewArtifact returns a new instance of Artifact

func (*Artifact) Pull

func (a *Artifact) Pull(ctx context.Context, creds *auth.Credential) (ocispec.Descriptor, error)

Pull pulls the artifact from the remote repository into a local path

Jump to

Keyboard shortcuts

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