artifactregistry

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package artifactregistry adapts registry resolution and downloading to the shared artifact acquisition service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseIntegrity

func ParseIntegrity(value string) (integrity.SRI, error)

ParseIntegrity converts an artifact digest into supported SRI metadata. Go module h1 values are not raw archive digests. SHA-1 is outside the supported algorithm set. Both return an empty result.

Types

type Client

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

Client resolves and fetches package files from package registries.

func New

func New(userAgent string) *Client

New creates a registry artifact client.

func (*Client) Close

func (client *Client) Close() error

Close releases resources held by the registry fetcher.

func (*Client) Fetch

func (client *Client) Fetch(ctx context.Context, url string) (*acquire.Download, error)

Fetch opens an artifact URL through the registry fetcher.

func (*Client) Resolve

func (client *Client) Resolve(ctx context.Context, request acquire.Request) (acquire.Source, error)

Resolve selects a download source for a versioned package URL.

Jump to

Keyboard shortcuts

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