Documentation ¶
Index ¶
- func HomeDir() string
- func Realpath(path string) (string, error)
- func SetCofnigFile(path string) error
- type Paths
- func (p Paths) BasePath() string
- func (p Paths) BinPath() string
- func (p Paths) IndexBase() string
- func (p Paths) IndexPath(name string) string
- func (p Paths) InstallPath() string
- func (p Paths) InstallReceiptsPath() string
- func (p Paths) PluginInstallPath(plugin string) string
- func (p Paths) PluginInstallReceiptPath(plugin string) string
- func (p Paths) PluginVersionInstallPath(plugin, version string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Paths ¶
type Paths struct {
// contains filtered or unexported fields
}
func (Paths) IndexPath ¶
IndexPath returns the directory where a plugin index repository is cloned. e.g. {BasePath}/index/default or {BasePath}/index
func (Paths) InstallReceiptsPath ¶
InstallReceiptsPath returns the base directory where plugin receipts are stored.
e.g. {BasePath}/receipts
func (Paths) PluginInstallPath ¶
e.g. {InstallPath}/{version}/{..files..}
func (Paths) PluginInstallReceiptPath ¶
PluginInstallReceiptPath returns the path to the install receipt for plugin.
e.g. {InstallReceiptsPath}/{plugin}.yaml
func (Paths) PluginVersionInstallPath ¶
PluginVersionInstallPath returns the path to the specified version of specified plugin.
e.g. {PluginInstallPath}/{plugin}/{version}
Click to show internal directories.
Click to hide internal directories.