artifacts

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Puller

type Puller interface {
	// Pull the artifact at the given reference.
	Pull(ctx context.Context, ref string) ([]byte, error)
}

Puller is an interface to abstract interaction with OCI registries or other storage services.

type RegistryPuller

type RegistryPuller struct{}

RegistryPuller handles pulling OCI artifacts from an OCI registry (i.e. bundles)

func NewRegistryPuller

func NewRegistryPuller() *RegistryPuller

NewRegistryPuller creates and initializes a RegistryPuller.

It assumes AWS ECR, and uses a password that exists in the ECR_PASSWORD environment variable.

func (*RegistryPuller) Pull

func (p *RegistryPuller) Pull(ctx context.Context, ref string) ([]byte, error)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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