repo

package
v0.0.0-...-c2bc880 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginTypeEmpty      = ""
	PluginTypeTranslator = "translator"
	PluginTypeProvider   = "provider"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlueprintSource

type BlueprintSource interface {
}

type BlueprintSourceFilePath

type BlueprintSourceFilePath struct {
	Path string
}

type LockEntry

type LockEntry struct {
	ID       string
	Checksum string
}

type LockFile

type LockFile struct {
	Entries map[string]LockEntry
}

func (*LockFile) Append

func (l *LockFile) Append(rootPath string, s PluginSource, p Runtime) error

func (*LockFile) Compare

func (l *LockFile) Compare(rootPath string, s PluginSource, p Runtime) (bool, error)

type PluginSource

type PluginSource interface {
}

type PluginSourceGitHubRelease

type PluginSourceGitHubRelease struct {
	RepoOwner string
	RepoName  string
	Name      string
}

func (PluginSourceGitHubRelease) Download

func (g PluginSourceGitHubRelease) Download(ctx context.Context, rootDir string, t PluginType) (map[string]LockEntry, error)

type PluginSourceLocal

type PluginSourceLocal struct {
	Path string
}

type PluginType

type PluginType string

func (PluginType) String

func (p PluginType) String() string

type Runtime

type Runtime struct {
	OS   string
	Arch string
}

Runtime is runtime information about the requested plugin.

Jump to

Keyboard shortcuts

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