fetcher

package
v0.0.0-...-c867f56 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	// Reload will load the data from a static file, if the file is not found
	// it will call the Fetch method to populate the fetcher and create a file
	Reload() error

	// Fetch will fetch all the necessary information from the Internet
	// and persist it in a static file
	Fetch() error

	// GetPlugin takes a name of the plugin and the version wanted and returns
	// either the plugin found or an error in case it does not exist
	GetPlugin(name, version string) (*types.Plugin, error)

	// ListPlugins will list all the plugins available
	ListPlugins() []*types.Plugin

	// GetApplicationVersion will return the requested version of
	// the application or an error in case it does not exist
	GetApplicationVersion(version string) (*types.AppVersion, error)

	// ListApplicationVersions will list all available versions of the
	// application that can be downloaded
	ListApplicationVersions() []*types.AppVersion
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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