oci

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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