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

oci

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package oci is the image registry adapter for any registry that signs in with a username and password, or not at all: the Distribution registry docker-compose.registry.yml runs, Harbor, GitHub Container Registry, Google Artifact Registry, Zot. Each creates a repository on the first push to it, so each app can have its own.

Index

Constants

View Source
const Kind = "oci"

Kind is the adapter's kind string.

Variables

This section is empty.

Functions

func Info

func Info() api.KindInfo

Info describes the kind for the console's and the CLI's forms.

Types

type Adapter

type Adapter struct {
	registrykit.Registry

	// GitHubAPI overrides the GitHub REST API GHCR images are deleted
	// through, and treats the registry as GHCR, for tests.
	GitHubAPI string
}

Adapter is one OCI registry.

func New

func New() *Adapter

New returns an unconfigured adapter.

func (*Adapter) Category

func (a *Adapter) Category() api.Category

func (*Adapter) Configure

func (a *Adapter) Configure(_ context.Context, raw json.RawMessage) error

Configure reads the registry's settings and its password.

func (*Adapter) Kind

func (a *Adapter) Kind() string

Jump to

Keyboard shortcuts

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