index

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadingIndex

type LoadingIndex struct {
	CacheDir            string
	KindToNameToPlugins map[string]map[string][]*Plugin
	Timestamp           time.Time
	Refresh             time.Duration
	Location            string
}

func DiscoverIndex

func DiscoverIndex(candidates []string, cacheDir string, refresh time.Duration) (*LoadingIndex, error)

func (*LoadingIndex) BuildRuntimeIndex

func (i *LoadingIndex) BuildRuntimeIndex() *RuntimeIndex

func (*LoadingIndex) LoadExtension

func (i *LoadingIndex) LoadExtension(path string) error

type Plugin

type Plugin struct {
	Platform string
	Name     string
	Kind     string
	Version  string
	Size     uint64
	Digest   string
	Url      string
}

func (Plugin) Filename

func (p Plugin) Filename() string

type RuntimeIndex

type RuntimeIndex struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*RuntimeIndex) ClosePlugin

func (i *RuntimeIndex) ClosePlugin(plugin *Plugin) error

func (*RuntimeIndex) GetReaderAt

func (i *RuntimeIndex) GetReaderAt(plugin *Plugin) (io.ReaderAt, error)

func (*RuntimeIndex) ListPlatforms

func (i *RuntimeIndex) ListPlatforms() []string

func (*RuntimeIndex) ListPluginsForPlatform

func (i *RuntimeIndex) ListPluginsForPlatform(platform string) []string

func (*RuntimeIndex) LookupPlugin

func (i *RuntimeIndex) LookupPlugin(platform, filename string) *Plugin

func (*RuntimeIndex) OpenPlugin

func (i *RuntimeIndex) OpenPlugin(plugin *Plugin) error

Jump to

Keyboard shortcuts

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