oci

package
v0.60.0-rc2 Latest Latest
Warning

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

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

Documentation

Overview

Package oci implements the statearchive.Archive interface with OCI artifacts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OCIArchive

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

OCIArchive is a statearchive.Archive backed by OCI artifacts.

func NewOCIArchive

func NewOCIArchive(options Options) *OCIArchive

NewOCIArchive returns an OCI-backed state archive.

func (*OCIArchive) Open

func (a *OCIArchive) Open(ctx context.Context, name string) (statearchive.Session, error)

Open materializes the archive tagged name in a temporary directory.

type Options

type Options struct {
	// Repository is the OCI repository without a tag, for example
	// "ghcr.io/radius-project/radius-state".
	Repository string

	// PlainHTTP uses HTTP instead of HTTPS. It is intended for local test registries.
	PlainHTTP bool
}

Options configures an OCIArchive.

Jump to

Keyboard shortcuts

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