oci

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShaSum256HexEncoded

func ShaSum256HexEncoded(b []byte) string

ShaSum256HexEncoded calculates a SHA256 checksum from the content

func WithDefaultClientOptions

func WithDefaultClientOptions(ctx context.Context, k8sKeychain, allowInsecure bool) []crane.Option

WithDefaultClientOptions sets some sane default options for crane to authenticate private registries

Types

type ContainerSubjecter

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

ContainerSubjecter implements Subjector to retrieve Subject from given container if digest is given, it will also compare matches with the given digest

func NewContainerSubjecter

func NewContainerSubjecter(repo, digest string, tags []string, options ...crane.Option) *ContainerSubjecter

NewContainerSubjecter walks the docker tags to retrieve the digests. If digest is non empty string it will be used to compare the rerieved digest to match the given digest

func (*ContainerSubjecter) Subjects

func (c *ContainerSubjecter) Subjects() ([]intoto.Subject, error)

Subjects walks the file or directory at "root" and hashes all files.

Jump to

Keyboard shortcuts

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