custom

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedOsArch   = fmt.Errorf("unsupported os/arch: %s/%s", runtime.GOOS, runtime.GOARCH)
	ErrEmptyDownloadURLMap = fmt.Errorf("archiveDownloadURLMap is nil")
)

Functions

This section is empty.

Types

type CustomSource

type CustomSource struct {
	Name         string            `yaml:"name,omitempty" json:"name,omitempty"`
	RemoteURL    string            `yaml:"remoteURL,omitempty" json:"remoteURL,omitempty"`
	DownloadURLs map[string]string `yaml:"downloadURLs,omitempty" json:"downloadURLs,omitempty"`
	HiddenTags   []string          `yaml:"hiddenTags,omitempty" json:"hiddenTags,omitempty"`
}

CustomSource is a custom source implementation.

func (*CustomSource) GetDownloadURL

func (s *CustomSource) GetDownloadURL(ver string) (string, error)

func (*CustomSource) GetName

func (s *CustomSource) GetName() string

func (*CustomSource) GetVersions

func (s *CustomSource) GetVersions() []string

Jump to

Keyboard shortcuts

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