oci

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package oci provides utilities to work with oci registries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() assetsclient.Factory

NewFactory returns a new factory for OCI clients.

Types

type Client

type Client struct {
	Repository *remote.Repository
}

Client represents the client for oci repository.

func NewClient

func NewClient() (*Client, error)

NewClient creates a new ociClient.

func NewClientForRepository

func NewClientForRepository(repo string) (*Client, error)

NewClientForRepository creates a new ociClient for the provided repository.

func (*Client) CopyRelease

func (c *Client) CopyRelease(ctx context.Context, sourceTag, targetRepository, targetTag string) error

CopyRelease copies the release artifact to target repository.

func (*Client) DownloadReleaseAssets

func (c *Client) DownloadReleaseAssets(ctx context.Context, tag, path string) (reterr error)

DownloadReleaseAssets downloads the specified release artifact at the provided path.

func (*Client) FoundRelease

func (c *Client) FoundRelease(ctx context.Context, tag string) bool

FoundRelease checks if the specified release exists in the repository.

func (*Client) ListRelease

func (c *Client) ListRelease(ctx context.Context) ([]string, error)

ListRelease returns a list of releases in the repository.

func (*Client) PushReleaseAssets

func (c *Client) PushReleaseAssets(ctx context.Context, releaseAssets []assetsclient.ReleaseAsset, tag, dir, artifactType string, annotations map[string]string) error

PushReleaseAssets pushes the provided release assets as an artifact into the repository.

Jump to

Keyboard shortcuts

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