pkg

package
v0.0.0-...-5d4ccd4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfigFile = "deto.json"
View Source
var DefaultLocation = "/.devtools"
View Source
var DefaultVersionLocation = DefaultLocation + "/%s/current"

Functions

func AddNewCandidate

func AddNewCandidate(candidate, version string)

func AddNewVersion

func AddNewVersion(candidate string, version string)

func DownloadAndVerify

func DownloadAndVerify(url string, checksum string, algo string, name string) bool

func UpdateDefaultVersionConfig

func UpdateDefaultVersionConfig(candidate string, defaultVersion string)

UpdateDefaultVersionConfig will update current version for candidate -> Will be implemented later

Types

type Config

type Config struct {
	Candidate string   `json:"candidate"`
	Versions  []string `json:"versions"`
	Current   string   `json:"current"`
}

func LoadData

func LoadData() []Config

type Man

type Man struct {
	Candidate       string
	ActionType      string
	Architecture    string
	OperatingSystem string
}

func (*Man) Handler

func (man *Man) Handler()

type RegistryData

type RegistryData struct {
	AIX       []RegistryVersion `json:"aix"`
	Darwin    []RegistryVersion `json:"darwin"`
	Linux     []RegistryVersion `json:"linux"`
	Dragonfly []RegistryVersion `json:"dragonfly"`
	Freebsd   []RegistryVersion `json:"freebsd"`
	Illumos   []RegistryVersion `json:"illumos"`
	Netbsd    []RegistryVersion `json:"netbsd"`
	Openbsd   []RegistryVersion `json:"openbsd"`
	Plan9     []RegistryVersion `json:"plan9"`
	Solaris   []RegistryVersion `json:"solaris"`
	Windows   []RegistryVersion `json:"windows"`
}

type RegistryVersion

type RegistryVersion struct {
	Version      string `json:"version"`
	Architecture string `json:"architecture"`
	Name         string `json:"name"`
	Checksum     string `json:"checksum"`
	Provider     string `json:"provider"`
	IsLTS        bool   `json:"is_lts"`
	Link         string `json:"link"`
}

Jump to

Keyboard shortcuts

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