utils

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCosignPublicKeys

func GetCosignPublicKeys(rawData []byte) ([]crypto.PublicKey, error)

GetCosignPublicKeys parses and returns all valid cosign public keys from byte array.

func NewLazyKeyChainReader

func NewLazyKeyChainReader(reader func() (authn.Keychain, error)) *lazyKeyChainReader

NewLazyKeyChainReader returns new lazyKeyChainReader.

func NewLazyKeyChainReaderFromPod

func NewLazyKeyChainReaderFromPod(ctx context.Context, c client.Reader, pod *corev1.Pod, useOnlyImagePullSecrets bool) *lazyKeyChainReader

NewLazyKeyChainReaderFromPod creates lazyKeyChainReader for given pod.

func NewLazyKeyChainReaderFromSecrets added in v0.18.0

func NewLazyKeyChainReaderFromSecrets(ctx context.Context, c client.Reader, namespace string, secretNames []string, useOnlyImagePullSecrets bool) *lazyKeyChainReader

NewLazyKeyChainReaderFromSecrets creates lazyKeyChainReader for the given secrets.

Types

type KeyChainReader

type KeyChainReader interface {
	GetKeyChain() (authn.Keychain, error)
}

KeyChainReader returns key chain for OCI registry.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳