oci

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url string) *Client

func (*Client) Pull

func (c *Client) Pull(ctx context.Context, outDir string) (*fclient.Metadata, error)

Pull downloads an artifact from an OCI repository and extracts the content to the given directory.

func (*Client) Push

func (c *Client) Push(ctx context.Context, artifactPath, sourcePath string, metadata fclient.Metadata) error

Push takes a path, creates an archive of the files in it and pushes the content to the OCI registry.

Jump to

Keyboard shortcuts

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