release

package
v0.0.0-...-4d6b2f2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Download

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

Download handles direct binary releases

func (Download) Fetch

func (d Download) Fetch(ctx context.Context, v string) (string, error)

Fetch gets the package and returns location of downloaded file

type Fetcher

type Fetcher interface {
	Fetch(context.Context, string) (string, error)
}

Fetcher should implement fetching a release from a version and return a path where the release has been downloaded

type Release

type Release struct {
	Type string `yaml:"type"`
	URL  string `yaml:"url"`
}

Release contains release configuration

func (Release) Factory

func (r Release) Factory() Fetcher

Factory returns instances that comply to Installer interface

Jump to

Keyboard shortcuts

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