Versions in this module Expand all Collapse all v0 v0.41.6 Oct 16, 2024 v0.41.4 Oct 13, 2024 Changes in this version + func DefaultOptions() []crane.Option + func GetAuthFromCredentials(credentials string) (authn.Authenticator, error) + func IsCosignArtifact(tag string) bool + func ParseArtifactURL(ociURL string) (string, error) + func ParseRepositoryURL(ociURL string) (string, error) + func WithRetryBackOff(backoff remote.Backoff) crane.Option + func WithRetryTransport(ctx context.Context, ref name.Reference, auth authn.Authenticator, ...) (crane.Option, error) + type Client struct + func NewClient(opts []crane.Option) *Client + func (c *Client) Build(artifactPath, sourceDir string, ignorePaths []string) (err error) + func (c *Client) Delete(ctx context.Context, url string) error + func (c *Client) Diff(ctx context.Context, url, dir string, ignorePaths []string) error + func (c *Client) GetOptions() []crane.Option + func (c *Client) List(ctx context.Context, url string, opts ListOptions) ([]Metadata, error) + func (c *Client) LoginWithCredentials(credentials string) error + func (c *Client) LoginWithProvider(ctx context.Context, url string, provider oci.Provider) error + func (c *Client) Pull(ctx context.Context, url, outPath string, opts ...PullOption) (*Metadata, error) + func (c *Client) Push(ctx context.Context, url, sourcePath string, opts ...PushOption) (string, error) + func (c *Client) Tag(ctx context.Context, url, tag string) (string, error) + type LayerType string + const LayerTypeStatic + const LayerTypeTarball + type ListOptions struct + IncludeCosignArtifacts bool + RegexFilter string + SemverFilter string + type Metadata struct + Annotations map[string]string + Created string + Digest string + Revision string + Source string + URL string + func MetadataFromAnnotations(annotations map[string]string) *Metadata + func (m *Metadata) ToAnnotations() map[string]string + type PullOption func(o *PullOptions) + func WithPullLayerIndex(i int) PullOption + func WithPullLayerType(l LayerType) PullOption + type PullOptions struct + type PushOption func(o *PushOptions) + func WithPushIgnorePaths(paths ...string) PushOption + func WithPushLayerType(l LayerType) PushOption + func WithPushMediaTypeExt(extension string) PushOption + func WithPushMetadata(meta Metadata) PushOption + type PushOptions struct