lock

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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