Help us shape the future of Go! Take the 2026 Go Developer Survey

oci

package
v1.233.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package oci implements the "oci-tags" and "docker-tags" datasource resolvers backed by go-containerregistry: tag listing for version discovery and manifest digests for immutable pinning.

Index

Constants

View Source
const (
	DatasourceOCI    = "oci-tags"
	DatasourceDocker = "docker-tags"
)

Datasource names served by this resolver.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct{}

Resolver resolves OCI image tags and digests.

func (Resolver) Names

func (Resolver) Names() []string

Names returns the datasource names this resolver serves.

func (Resolver) Pin

func (Resolver) Pin(ctx context.Context, req *resolver.Request, version string) (string, error)

Pin resolves a tag to its immutable manifest digest (sha256:...).

func (Resolver) Versions

func (Resolver) Versions(ctx context.Context, req *resolver.Request) ([]resolver.Candidate, error)

Versions lists the repository's tags as candidates. OCI registries provide neither timestamps nor digests in tag listings; digests resolve via Pin.

Jump to

Keyboard shortcuts

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