oci

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(registry, token string) (*Client, error)

func (*Client) Exists

func (c *Client) Exists(ctx context.Context, ref, digest string) (bool, error)

func (*Client) Fetch

func (c *Client) Fetch(ctx context.Context, bundle *ResolvedBundle) (*FetchResult, error)

func (*Client) FetchAll

func (c *Client) FetchAll(ctx context.Context, bundles []ResolvedBundle) ([]FetchResult, error)

func (*Client) ResolveDigest added in v1.2.0

func (c *Client) ResolveDigest(ctx context.Context, ref string) (string, error)

ResolveDigest looks up the OCI manifest digest for the given tagged or digest-form reference. Returns "sha256:..." on success.

type FetchResult

type FetchResult struct {
	Key      string
	Digest   string
	Data     []byte
	Metadata Metadata
}

type Metadata added in v1.5.0

type Metadata struct {
	SchemaVersion int    `json:"schema_version"`
	Kind          string `json:"kind"`
}

Metadata is the parsed OCI sidecar meta.json shipped alongside every bundle. Missing schema_version is treated as 1 so pre-slice bundles referenced by released lockfiles remain loadable.

type ResolvedBundle

type ResolvedBundle struct {
	Key     string
	Digest  string
	Name    string
	Version string
	Kind    string
}

Jump to

Keyboard shortcuts

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