metadata

package
v0.28.4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataSource

type MetadataSource struct {
	Source             *source.Source
	Downloader         *source.Downloader
	CacheType          cache.CacheType
	CacheConfiguration source.CacheConfiguration
	Unpacker           *Unpacker
	Directory          string
	Files              map[string]string
	Verifier           *MetadataVerifier
}

func NewMetadataSource

func NewMetadataSource(
	url string,
	directory string,
	cacheType cache.CacheType,
	cacheConfiguration source.CacheConfiguration,
	unpacker *Unpacker,
	files map[string]string,
	verifier *MetadataVerifier,
) (*MetadataSource, error)

func (*MetadataSource) Download

func (m *MetadataSource) Download(p tui.ProgressReader) error

func (*MetadataSource) Load

func (m *MetadataSource) Load() (*tool.Tools, error)

type MetadataVerifier

type MetadataVerifier interface {
	Verify(metadataSource *MetadataSource) error
}

func NewSigstoreMetadataVerifier

func NewSigstoreMetadataVerifier(issuer string, issuerRegex string, san string, sanRegex string) *MetadataVerifier

type MetadataVerifierStruct

type MetadataVerifierStruct struct {
	SignatureSource *source.Source
}

type NullMetadataVerifier

type NullMetadataVerifier struct {
	MetadataVerifierStruct
}

func NewNullMetadataVerifier

func NewNullMetadataVerifier() *NullMetadataVerifier

func (NullMetadataVerifier) Verify

func (v NullMetadataVerifier) Verify(metadataSource *MetadataSource) error

type NullUnpacker

type NullUnpacker struct{}

func (NullUnpacker) Unpack

func (u NullUnpacker) Unpack(upstreamReader io.ReadCloser) error

type SigstoreMetadataVerifier

type SigstoreMetadataVerifier struct {
	MetadataVerifierStruct
	// contains filtered or unexported fields
}

func (SigstoreMetadataVerifier) Verify

func (v SigstoreMetadataVerifier) Verify(metadataSource *MetadataSource) error

type TarGzUnpacker

type TarGzUnpacker struct{}

func (TarGzUnpacker) Unpack

func (u TarGzUnpacker) Unpack(upstreamReader io.ReadCloser) error

type Unpacker

type Unpacker interface {
	Unpack(reader io.ReadCloser) error
}

func NewNullUnpacker

func NewNullUnpacker() Unpacker

func NewTarGzUnpacker

func NewTarGzUnpacker() Unpacker

Jump to

Keyboard shortcuts

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