ociutil

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDigest

func GetDigest(target string, auth Auth) string

GetDigest returns the SHA256 digest of a given container image.

If the digest cannot be found, an empty string is returned.

func KeyChain added in v1.5.1

func KeyChain(auth Auth) authn.Keychain

func SnapshotImage

func SnapshotImage(target string, auth Auth) (string, error)

SnapshotImage mangles a given OCI string so that there is a digest present.

Types

type Auth added in v1.5.1

type Auth struct {
	Registry string
	Username string
	Password string
}

type BasicKeychain added in v1.5.1

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

BasicKeychain is an authn.Keychain implementation that uses basic auth to talk to a registry.

func NewBasicKeychain added in v1.5.1

func NewBasicKeychain(auth Auth) *BasicKeychain

func (*BasicKeychain) Resolve added in v1.5.1

func (b *BasicKeychain) Resolve(resource authn.Resource) (authn.Authenticator, error)

Jump to

Keyboard shortcuts

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