Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultKittyRegistry = "https://raw.githubusercontent.com/ImSingee/kitty-registry/master/"
View Source
const KittyRegistryEnv = "KITTY_REGISTRY"
Variables ¶
View Source
var ErrNoWaysToDownload = fmt.Errorf("no ways to download")
View Source
var ErrVersionNotExist = fmt.Errorf("version not exist")
Functions ¶
func GetAppVersion ¶
GetAppVersion will get the app and version from registry
func GetRegistry ¶
Types ¶
type App ¶
type App struct {
Name string `json:"-"`
Tags map[string]string `json:"tags"` // key is tag name, e.g. "latest", value is version string, e.g. "1.0.0"
Versions map[string]eroptions.AnyOptions `json:"versions"` // key is version string, e.g. "1.0.0"
InstallOptions eroptions.AnyOptions
}
Click to show internal directories.
Click to hide internal directories.