retriever

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdpMajVersion

func IdpMajVersion() string

func Unique

func Unique(slice []string) []string

Types

type GhcrRetriever

type GhcrRetriever struct {
	Store               *content.File
	RemoteStoreLocation string
	LocalStoreLocation  string
	// contains filtered or unexported fields
}

func NewGhcrRetriever

func NewGhcrRetriever() *GhcrRetriever

func (*GhcrRetriever) Connect

func (o *GhcrRetriever) Connect() error

func (*GhcrRetriever) Disconnect

func (o *GhcrRetriever) Disconnect()

func (*GhcrRetriever) Download

func (o *GhcrRetriever) Download(pluginName, version string) error

func (*GhcrRetriever) List

func (o *GhcrRetriever) List() ([]string, error)

type PluginsInfo

type PluginsInfo struct {
	RemoteSource Retriever
	// contains filtered or unexported fields
}

func NewPluginsInfo

func NewPluginsInfo(source Retriever) *PluginsInfo

func (*PluginsInfo) GetInfo

func (pi *PluginsInfo) GetInfo() (map[string]map[string][]string, error)

func (*PluginsInfo) LatestVersion

func (pi *PluginsInfo) LatestVersion(plugin string) (string, error)

type Retriever

type Retriever interface {
	Connect() error
	List() ([]string, error)
	Download(string, string) error
	Disconnect()
}

Jump to

Keyboard shortcuts

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