oci

package
v0.4.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package oci implements OCI registry adapters.

Package oci implements OCI registry adapters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvAuthProvider

type EnvAuthProvider struct{}

EnvAuthProvider retrieves credentials from environment variables.

func NewEnvAuthProvider

func NewEnvAuthProvider() *EnvAuthProvider

NewEnvAuthProvider creates a new environment-based auth provider.

func (*EnvAuthProvider) GetCredentials

func (p *EnvAuthProvider) GetCredentials(ctx context.Context, registry string) (username, password string, err error)

GetCredentials returns username and password for a registry.

type OCIRegistryAdapter

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

OCIRegistryAdapter implements ports.PluginRegistry using oras-go.

func NewOCIRegistryAdapter

func NewOCIRegistryAdapter(auth ports.AuthProvider) *OCIRegistryAdapter

NewOCIRegistryAdapter creates an OCI registry adapter.

func (*OCIRegistryAdapter) Pull

Pull downloads a plugin from OCI registry.

func (*OCIRegistryAdapter) Push

func (a *OCIRegistryAdapter) Push(ctx context.Context, artifact *dto.PluginArtifactDTO) error

Push uploads a plugin to OCI registry.

func (*OCIRegistryAdapter) Resolve

Resolve resolves a reference to its digest.

Jump to

Keyboard shortcuts

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