list

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 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, wg *sync.WaitGroup) ([]string, error)

Get returns a list of available versions

type GithubTag

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

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

func (GithubTag) Get

func (g GithubTag) Get(ctx context.Context, wg *sync.WaitGroup) ([]string, error)

Get returns a list of available versions

type List

type List struct {
	Type string `yaml:"type"`
	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(context.Context, *sync.WaitGroup) ([]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