utils

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 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.

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