resolver

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug, Warn, Info = utils.Loggers()
)

Functions

This section is empty.

Types

type BzAsset

type BzAsset struct {
	Ext       string // zip
	Canonical string // project-name-linux-amd64-v1.2.3
}

func (*BzAsset) NameWithExt

func (a *BzAsset) NameWithExt() string

type BzAssetArrHelper

type BzAssetArrHelper []BzAsset

func (BzAssetArrHelper) CollectNames

func (o BzAssetArrHelper) CollectNames() []string

type GithubResolver

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

func NewGithubResolver

func NewGithubResolver(appCtx *model.AppContext) *GithubResolver

func (*GithubResolver) DownloadResolvedCoord

func (o *GithubResolver) DownloadResolvedCoord(lc *model.LockedCoord) (string, error, bool)

func (*GithubResolver) ResolveCoord

func (o *GithubResolver) ResolveCoord(c *model.FuzzyCoord) (*model.LockedCoord, error)

func (*GithubResolver) String

func (o *GithubResolver) String() string

type LocalDevResolver

type LocalDevResolver struct {
}

func NewLocalDevResolver

func NewLocalDevResolver(appCtx *model.AppContext) *LocalDevResolver

func (*LocalDevResolver) DownloadResolvedCoord

func (o *LocalDevResolver) DownloadResolvedCoord(lc *model.LockedCoord) (string, error, bool)

func (*LocalDevResolver) ResolveCoord

func (o *LocalDevResolver) ResolveCoord(c *model.FuzzyCoord) (*model.LockedCoord, error)

func (*LocalDevResolver) String

func (o *LocalDevResolver) String() string

type Resolver

type Resolver interface {
	// Resolves a fuzzy coord to a hard resolved coord
	ResolveCoord(c *model.FuzzyCoord) (*model.LockedCoord, error)
	// Download coord pointed by c into file
	DownloadResolvedCoord(c *model.LockedCoord) (string, error, bool)
}

Jump to

Keyboard shortcuts

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