Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExecutedVersion ¶
GetExecutedVersion returns the currently executed version. If krew is not executed as an plugin it will return a nil error and an empty string.
Types ¶
type KrewPaths ¶
type KrewPaths struct { // Base is the path of the krew root. // The default path is ~/.kube/plugins/krew Base string // Index is a git(1) repository containing all local plugin manifests files. // ${Index}/<plugin-name>.yaml Index string // Install is the dir where all plugins will be installed to. // ${Install}/<version>/<plugin-content> Install string // Download is a directory where plugins will be temporarily downloaded to. // This is currently a path in os.TempDir() Download string }
KrewPaths contains all important enviroment paths
func MustGetKrewPathsFromEnvs ¶
MustGetKrewPathsFromEnvs returns ensured index paths for krew.
Click to show internal directories.
Click to hide internal directories.