Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateFileChecksum ¶
func InstallationPath ¶
InstallationPath returns the path where the app should be installed. The path is constructed as "<installationPath>/<repository-name>/<app-name>/<app-version>".
Types ¶
type App ¶
type App interface { // Reference returns the reference of the app. Reference() *Reference // Checksum returns the checksum of the app. Checksum() string // ExecutablePath returns the path to the executable. ExecutablePath() string // PossibleReferences returns a list of possible references for the app. PossibleReferences() []string }
App is an interface that represents an application within the repository. It provides methods to access the app's reference, checksum, executable path, and possible references.
func NewBinaryApp ¶
type BinaryApp ¶
type BinaryApp struct {
// contains filtered or unexported fields
}
func (*BinaryApp) ExecutablePath ¶
func (*BinaryApp) PossibleReferences ¶
type Reference ¶
func (*Reference) PossibleReferences ¶
String returns a string representation of the AppReference. The format is "repository::name@version" if all fields are present, or just "name@version" if the repository is not specified.
Click to show internal directories.
Click to hide internal directories.