list

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 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 GithubRelease

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

GithubRelease contains what is required to get a list of release from Github

func (GithubRelease) Get

func (g GithubRelease) Get(ctx context.Context) ([]string, error)

Get returns a list of available versions

type List

type List struct {
	Type        string `yaml:"type"`
	Prefix      string `yaml:"prefix"`
	VersionFrom string `yaml:"version_from"`
	URL         string `yaml:"url"`
}

List contains list definition

func (List) Factory

func (l List) Factory() Lister

Factory returns instances that comply to Lister interface

type Lister

type Lister interface {
	Get(ctx context.Context) ([]string, error)
}

Lister should return a list of available release versions

Jump to

Keyboard shortcuts

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