lock

package
Version: v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lock

type Lock struct {
	// An array of the plugins we resolved and installed
	Plugins map[string]Plugin `yaml:"plugins"`
}

Lock - The Lock file

func GetLockObject added in v0.3.5

func GetLockObject(objectStore core.ObjectStore, path string) (*Lock, error)

func (*Lock) Save added in v0.3.5

func (lockFile *Lock) Save(objectStore core.ObjectStore) error

type Plugin

type Plugin struct {

	// The name of the plugin
	Name string `yaml:"name"`

	// The version downloaded
	Version string `yaml:"version"`

	// A map key by architecture of the resolved plugin
	Resolved map[string]PluginResolution
}

Plugin - Store the information of how the plugin was resolved and saved

func (*Plugin) Match added in v0.3.5

func (plugin *Plugin) Match(m *manifest.Plugin) bool

func (*Plugin) Resolve added in v0.3.5

func (plugin *Plugin) Resolve(os, arch string) *PluginResolution

func (*Plugin) ResolveForRuntime added in v0.3.5

func (plugin *Plugin) ResolveForRuntime() *PluginResolution

type PluginResolution

type PluginResolution struct {

	// Exactly where it was downloaded from
	// A list of direct download urls for each architecture
	URL string `yaml:"urls"`

	OperatingSystem string `yaml:"operatingSystem"`

	Architecture string `yaml:"architecture"`

	// Exactly where it is store on disk, relative to the manifest file
	PathOnDisk string `yaml:"pathOnDisk"`

	// A sha256 hash of the plugin
	Hash string `yaml:"hash"`

	// A sha256 hash of the plugin archive (used to compare to the cache)
	ArchiveHash string `yaml:"archiveHash"`

	// The filename of the release archive
	ArchiveName string `yaml:"archiveName"`
}

PluginResolution -

Jump to

Keyboard shortcuts

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