oci

package
v0.0.0-...-7b3889e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactID

type ArtifactID struct {
	Registry string
	Repo     string
	Tag      string
}

type CredentialRetriever

type CredentialRetriever interface {
	RetrieveCredential(ctx context.Context) (auth.Credential, error)
}

func NewECRCredRetriever

func NewECRCredRetriever(tokenGeter TokenGetter) CredentialRetriever

type Puller

type Puller interface {
	Pull(ctx context.Context, id ArtifactID, path string) error
}

func NewECRPuller

func NewECRPuller(credentialRetriever CredentialRetriever) Puller

type Reader

type Reader interface {
	ListDirs(ctx context.Context, filePath string) ([]string, error)
	FilterModules(ctx context.Context, dirs []string) []string
}

func NewReader

func NewReader() Reader

type TokenGetter

type TokenGetter interface {
	GetAuthorizationToken(ctx context.Context, input *ecr.GetAuthorizationTokenInput, optFns ...func(*ecr.Options)) (*ecr.GetAuthorizationTokenOutput, error)
}

Jump to

Keyboard shortcuts

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