install

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package install ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Install

type Install struct {
	APIVersion string   `json:"apiVersion"`
	Kind       string   `json:"kind"`
	Metadata   Metadata `json:"metadata"`
	Spec       Spec     `json:"spec"`
}

Install ...

func NewInstall

func NewInstall(rel string) *Install

NewInstall ...

func (*Install) Delete

func (i *Install) Delete()

Delete ...

func (*Install) Get

func (i *Install) Get()

Get ...

func (*Install) GetDefault

func (i *Install) GetDefault() (string, error)

GetDefault gets default version installed.

func (*Install) Install

func (i *Install) Install(force bool)

Install ...

func (*Install) IsInstalled

func (i *Install) IsInstalled() bool

IsInstalled checks if a release is installed.

func (*Install) Paths

func (i *Install) Paths() (installDir string, versionFile string, defaultFile string)

Paths returns various path.

func (*Install) SaveConfig

func (i *Install) SaveConfig()

SaveConfig saves configuration of installed release

type Metadata

type Metadata struct {
	Release string `json:"release"`
}

Metadata ...

type Spec

type Spec struct {
	Version string `json:"version"`
	Os      string `json:"os"`
	Arch    string `json:"arch"`
	Path    string `json:"path"`
	Default bool   `json:"default"`
}

Spec ...

Jump to

Keyboard shortcuts

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