Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFromImage ¶
func DownloadFromImage(dest string, config config.BinaryFromImage) error
func Sha256SumBytes ¶
func Sha256SumFile ¶
func Sha256SumFile(f io.ReadSeeker) (string, error)
func SplitFilepath ¶
Types ¶
type Entries ¶
type Entries map[LogicalEntryKey]EntryInfo
func ListAllBinaries ¶
func ListAllBinaries(appConfig config.Application) (Entries, error)
func ListAllEntries ¶
func ListAllEntries(appConfig config.Application) (Entries, error)
func (Entries) BinaryFromImageHasSnippet ¶
func (e Entries) BinaryFromImageHasSnippet(cfg config.BinaryFromImage) bool
type LogicalEntryKey ¶
func (LogicalEntryKey) Path ¶
func (k LogicalEntryKey) Path() string
type LogicalEntryKeys ¶
type LogicalEntryKeys []LogicalEntryKey
func NewLogicalEntryKeys ¶
func NewLogicalEntryKeys(m map[LogicalEntryKey]EntryInfo) LogicalEntryKeys
func (LogicalEntryKeys) Len ¶
func (l LogicalEntryKeys) Len() int
func (LogicalEntryKeys) Less ¶
func (l LogicalEntryKeys) Less(i, j int) bool
func (LogicalEntryKeys) Swap ¶
func (l LogicalEntryKeys) Swap(i, j int)
type SnippetMetadata ¶
type SnippetMetadata struct { Name string `yaml:"name"` Offset int `yaml:"offset"` Length int `yaml:"length"` SnippetSha256 string `yaml:"snippetSha256"` FileSha256 string `yaml:"fileSha256"` }
func ReadSnippetMetadata ¶
func ReadSnippetMetadata(path string) (*SnippetMetadata, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.