models

package
v0.0.0-...-4a00286 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 0 Imported by: 0

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 GoRecipe

type GoRecipe struct {
	Recipe  `mapstructure:",squash"`
	Package string `json:"package" yaml:"package" mapstructure:"package"`
}

type NpmRecipe

type NpmRecipe struct {
	Recipe  `mapstructure:",squash"`
	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 RecipeContextReplaces = *(map[string](map[string]string))

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

type ToolShort

type ToolShort struct {
	ID               string   `json:"id" yaml:"id"`
	Name             string   `json:"name" yaml:"name"`
	Kind             string   `json:"kind" yaml:"kind"`
	Languages        []string `json:"languages" yaml:"languages"`
	InstalledVersion *string  `json:"installed_version" yaml:"installed_version"`
}

func ToShort

func ToShort(m Tool) ToolShort

Jump to

Keyboard shortcuts

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