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
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 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
Click to show internal directories.
Click to hide internal directories.