Documentation ¶
Index ¶
Constants ¶
View Source
const Path = "config.yaml"
Variables ¶
This section is empty.
Functions ¶
func PlatformAsValue ¶
Types ¶
type Application ¶
type Application struct { DownloadPath string `yaml:"download-path"` SnippetPath string `yaml:"snippet-path"` FromImages []BinaryFromImage `yaml:"from-images"` }
func DefaultApplication ¶
func DefaultApplication() Application
func Read ¶
func Read() (*Application, error)
func (Application) GetBinaryFromImage ¶
func (c Application) GetBinaryFromImage(name, version string) *BinaryFromImage
func (Application) GetBinaryFromImageByPath ¶
func (c Application) GetBinaryFromImageByPath(storePath string) *BinaryFromImage
func (Application) Validate ¶
func (c Application) Validate() error
type BinaryFromImage ¶
type BinaryFromImage struct { GenericName string `yaml:"name"` Version string `yaml:"version"` Images []Image `yaml:"images"` PathsInImage []string `yaml:"paths"` }
func (BinaryFromImage) AllStorePaths ¶
func (c BinaryFromImage) AllStorePaths(dest string) []string
func (BinaryFromImage) AllStorePathsForImage ¶
func (c BinaryFromImage) AllStorePathsForImage(image Image, dest string) []string
func (BinaryFromImage) Fingerprint ¶
func (c BinaryFromImage) Fingerprint() string
func (BinaryFromImage) Key ¶
func (c BinaryFromImage) Key() string
func (BinaryFromImage) Name ¶
func (c BinaryFromImage) Name() string
Click to show internal directories.
Click to hide internal directories.