artifacts

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 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, clusterName string) ([]byte, error)
}

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

type RegistryPuller

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

RegistryPuller handles pulling OCI artifacts from an OCI registry

func NewRegistryPuller

func NewRegistryPuller(logger logr.Logger) *RegistryPuller

NewRegistryPuller creates and initializes a RegistryPuller.

func (*RegistryPuller) Pull

func (p *RegistryPuller) Pull(ctx context.Context, ref string, clusterName 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