Documentation ¶
Overview ¶
Package oci provides utilities to work with oci registries.
Index ¶
- func NewFactory() assetsclient.Factory
- type Client
- func (c *Client) CopyRelease(ctx context.Context, sourceTag, targetRepository, targetTag string) error
- func (c *Client) DownloadReleaseAssets(ctx context.Context, tag, path string) (reterr error)
- func (c *Client) FoundRelease(ctx context.Context, tag string) bool
- func (c *Client) ListRelease(ctx context.Context) ([]string, error)
- func (c *Client) PushReleaseAssets(ctx context.Context, releaseAssets []assetsclient.ReleaseAsset, ...) error
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 NewClientForRepository ¶
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 ¶
DownloadReleaseAssets downloads the specified release artifact at the provided path.
func (*Client) FoundRelease ¶
FoundRelease checks if the specified release exists in the repository.
func (*Client) ListRelease ¶
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.
Click to show internal directories.
Click to hide internal directories.