oldenvironment

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

todo(corneliusweig) remove migration code with v0.4 oldenvironment is a copy of the relevant function in environment before the index migration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paths

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

Paths contains all important environment paths

func MustGetKrewPaths

func MustGetKrewPaths() Paths

MustGetKrewPaths returns the inferred paths for krew. By default, it assumes $HOME/.krew as the base path, but can be overridden via KREW_ROOT environment variable.

func (Paths) BasePath

func (p Paths) BasePath() string

BasePath returns krew base directory.

func (Paths) BinPath

func (p Paths) BinPath() string

BinPath returns the path where plugin executable symbolic links are found. This path should be added to $PATH in client machine.

e.g. {BasePath}/bin

func (Paths) IndexPath

func (p Paths) IndexPath() string

IndexPath returns the base directory where plugin index repository is cloned.

e.g. {BasePath}/index/

func (Paths) IndexPluginsPath

func (p Paths) IndexPluginsPath() string

IndexPluginsPath returns the plugins directory of the index repository.

e.g. {BasePath}/index/plugins/

func (Paths) InstallPath

func (p Paths) InstallPath() string

InstallPath returns the base directory for plugin installations.

e.g. {BasePath}/store

func (Paths) PluginInstallPath

func (p Paths) PluginInstallPath(plugin string) string

PluginInstallPath returns the path to install the plugin.

e.g. {InstallPath}/{version}/{..files..}

func (Paths) PluginVersionInstallPath

func (p Paths) PluginVersionInstallPath(plugin, version string) string

PluginVersionInstallPath returns the path to the specified version of specified plugin.

e.g. {PluginInstallPath}/{plugin}/{version}

Jump to

Keyboard shortcuts

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