specs

package
v0.0.0-...-d02bd3d Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PersistSpec

func PersistSpec(spec ToolSpec)

PersistSpec persists a new spec

Types

type ToolSpec

type ToolSpec struct {
	Name       string
	Version    string
	SetupType  string
	URL        string
	VersionCmd string
}

ToolSpec is an unit of tool spec

func FindSpec

func FindSpec(name, version string) ToolSpec

FindSpec fins a spec by name and version

func ImportSpecs

func ImportSpecs(files []string) []ToolSpec

ImportSpecs is an unit of tool spec

func ListSpecs

func ListSpecs() []ToolSpec

ListSpecs lists all specs

func ListSpecsByName

func ListSpecsByName(name string) []ToolSpec

ListSpecsByName lists all specs by app name

func PersistSpecs

func PersistSpecs(specs []ToolSpec) []ToolSpec

PersistSpecs persists a list of specs

Jump to

Keyboard shortcuts

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