models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	InstallPath string
}

func MakeContext

func MakeContext() Context

type InstalledVersion

type InstalledVersion struct {
	Path    string
	RawName string
	Status  string
	Ok      bool
}

func (InstalledVersion) Version

func (i InstalledVersion) Version() string

type RemoteVersion

type RemoteVersion struct {
	Version string              `json:"version"`
	Stable  bool                `json:"stable"`
	Files   []RemoteVersionFile `json:"files"`
}

func (RemoteVersion) Archs

func (v RemoteVersion) Archs() []string

func (RemoteVersion) PrettyVersion

func (v RemoteVersion) PrettyVersion() string

type RemoteVersionFile

type RemoteVersionFile struct {
	Filename string `json:"filename"`
	OS       string `json:"os"`
	Arch     string `json:"arch"`
	Version  string `json:"version"`
	Sha256   string `json:"sha256"`
	Size     int    `json:"size"`
	Kind     string `json:"kind"`
}

Jump to

Keyboard shortcuts

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