internal

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

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 Sha256SumBytes(buf []byte) string

func Sha256SumFile

func Sha256SumFile(f io.ReadSeeker) (string, error)

func SplitFilepath

func SplitFilepath(path string) []string

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

func (Entries) Sorted

func (e Entries) Sorted() iter.Seq2[LogicalEntryKey, EntryInfo]

type EntryInfo

type EntryInfo struct {
	IsConfigured bool
	BinaryPath   string
	SnippetPath  string
}

type LogicalEntryKey

type LogicalEntryKey struct {
	OrgName  string
	Version  string
	Platform string
	Filename string
}

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)

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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