engine

package
v0.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Path string
	Name string
	URL  string
}
func (asset *Asset) Link(path string) error

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine() (*Engine, error)

func (*Engine) Install

func (engine *Engine) Install(release Release) (*Release, error)

func (*Engine) List

func (engine *Engine) List(pattern string) ([]Release, error)

func (*Engine) Search

func (engine *Engine) Search(release Release) (local *Release, remote *Release, err error)

func (*Engine) SearchLocal

func (engine *Engine) SearchLocal(release Release) (*Release, error)

func (*Engine) SearchRemote

func (engine *Engine) SearchRemote(release Release) (*Release, error)

type Release

type Release struct {
	// Local path where release is installed. Empty if it is not.
	Path string
	// Values of github.com/{{.User}}/{{.Repo}}/releases/{{.Version}}/
	User, Repo, Version string
	Assets              []Asset
}

func NewRelease

func NewRelease(location string) (*Release, error)

func (*Release) DownloadAsset

func (release *Release) DownloadAsset(url string) (*Asset, error)

func (*Release) String

func (release *Release) String() string

Jump to

Keyboard shortcuts

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