registry

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyReference

func CopyReference(ctx context.Context, src, dst string) error

func CosignSign

func CosignSign(ctx context.Context, reference string, opts CosignSignOptions) error

func PushReference

func PushReference(ctx context.Context, reference string, opts PushOptions) error

func PushRepository

func PushRepository(ctx context.Context, repository string, opts PushOptions) error

func RecordBuild

func RecordBuild(tags []string, layoutPath string) error

func RecordLayout

func RecordLayout(reference, layoutPath string) error

Types

type Client

type Client interface {
	RecordBuild(tags []string, layoutPath string) error
	PushReference(ctx context.Context, reference string, opts PushOptions) error
	PushRepository(ctx context.Context, repository string, opts PushOptions) error
}

Client exposes registry recording and publishing helpers.

func NewClient

func NewClient() Client

NewClient returns a Client backed by the default registry helpers.

type CosignSignOptions

type CosignSignOptions struct {
	KeyRef      string
	RekorURL    string
	TLogUpload  *bool
	Output      io.Writer
	ErrorOutput io.Writer
}

type ImageRecord

type ImageRecord struct {
	Reference  string    `json:"reference"`
	LayoutPath string    `json:"layoutPath"`
	UpdatedAt  time.Time `json:"updatedAt"`
}

func ListRepository

func ListRepository(repository string) ([]ImageRecord, error)

func ResolveLayout

func ResolveLayout(reference string) (ImageRecord, error)

type PushOptions

type PushOptions struct {
	Sign   bool
	Output io.Writer
}

Jump to

Keyboard shortcuts

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