Documentation
¶
Index ¶
Constants ¶
View Source
const ( RECIPE_GIT_RELEASE = "git_release" RECIPE_GO = "go" RECIPE_NPM = "npm" )
View Source
const ( RESULT_ERR = "err" RESULT_OK = "ok" RESULT_NO_OP = "no_op" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitReleaseRecipe ¶
type GitReleaseRecipe struct {
Recipe `mapstructure:",squash"`
Repository string `json:"repository" yaml:"repository" mapstructure:"repository"`
BinaryName string `json:"binary_name" yaml:"binary_name" mapstructure:"binary_name"`
BinaryInnerPath string `json:"binary_inner_path" yaml:"binary_inner_path" mapstructure:"binary_inner_path"`
Package string `json:"package" yaml:"package" mapstructure:"package"`
}
type Recipe ¶
type Recipe struct {
Kind RecipeKind `json:"kind" yaml:"kind" mapstructure:"kind"`
ContextReplaces RecipeContextReplaces `json:"context_replaces" yaml:"context_replaces" mapstructure:"context_replaces"`
}
type RecipeContextReplaces ¶
type RecipeKind ¶
type RecipeKind = string
type Result ¶
type Result struct {
Kind ResultKind `json:"kind" yaml:"kind"`
Message string `json:"message" yaml:"message"`
}
type ResultKind ¶
type ResultKind = string
type Tool ¶
type Tool struct {
ID string `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"`
Description string `json:"description" yaml:"description"`
Url string `json:"url" yaml:"url"`
LatestVersion *string `json:"latest_version,omitempty" yaml:"latest_version,omitempty"`
InstalledVersion *string `json:"installed_version,omitempty" yaml:"installed_version,omitempty"`
Dependencies []string `json:"dependencies" yaml:"dependencies"`
Languages []string `json:"languages" yaml:"languages"`
Kind string `json:"kind" yaml:"kind"`
Recipe map[string]any `json:"recipe" yaml:"recipe"`
}
type ToolDescribe ¶
type ToolDescribe struct {
ID string `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"`
Description string `json:"description" yaml:"description"`
Url string `json:"url" yaml:"url"`
LatestVersion *string `json:"latest_version" yaml:"latest_version"`
InstalledVersion *string `json:"installed_version" yaml:"installed_version"`
Dependencies []string `json:"dependencies" yaml:"dependencies"`
Languages []string `json:"languages" yaml:"languages"`
Kind string `json:"kind" yaml:"kind"`
}
func ToDescribe ¶
func ToDescribe(m Tool) ToolDescribe
Click to show internal directories.
Click to hide internal directories.