Documentation ¶
Index ¶
- Variables
- func GetStateDir() (stateDir string, err error)
- func GravityInstallDir(elems ...string) (path string)
- func GravityInstallDirAt(baseDir string, elems ...string) (path string)
- func GravityInstallerServicePath(baseDir string) (path string, err error)
- func GravityInstallerSocketPath(baseDir string) (path string)
- func GravityLocalDir(baseDir string) string
- func GravityRPCAgentDir(baseDir string) string
- func GravityUpdateDir(baseDir string) string
- func InEtcdDir(baseDir, filename string) string
- func InStateDir(elems ...string) (string, error)
- func LogDir(baseDir string, suffixes ...string) string
- func RegistryDir(baseDir string) string
- func Secret(baseDir, secretName string) string
- func SecretDir(baseDir string) string
- func SetStateDir(stateDir string) error
- func ShareDir(baseDir string) string
- func TeleportAuthDataDir(baseDir string) string
- func TeleportNodeDataDir(baseDir string) string
Constants ¶
This section is empty.
Variables ¶
var ( // StateLocatorPaths is a list of locations where gravity state directory pointer is written StateLocatorPaths = []string{ filepath.Join(defaults.EtcDir, defaults.GravityConfigFilename), filepath.Join(defaults.EtcWritableDir, defaults.GravityConfigFilename), filepath.Join(defaults.WritableDir, defaults.GravityConfigFilename), } // GravityBinPaths is a list of possible gravity binary locations on host GravityBinPaths = []string{ defaults.GravityBin, defaults.GravityBinAlternate, } // GravityAgentBinPaths is a list of possible gravity agent binary locations on host GravityAgentBinPaths = []string{ defaults.GravityAgentBin, defaults.GravityAgentBinAlternate, } )
Functions ¶
func GetStateDir ¶
GetStateDir returns local gravity state directory
func GravityInstallDir ¶
GravityInstallDir returns the location of the temporary state directory for the install/join operation. elems are appended to resulting path
func GravityInstallDirAt ¶
GravityInstallDirAt returns the path to the specified elements inside the installer state directory rooted at baseDir
func GravityInstallerServicePath ¶
GravityInstallerServicePath returns the path to the installer service as configured in the state directory rooted at baseDir.
func GravityInstallerSocketPath ¶
GravityInstallerSocketPath returns the path to the installer socket file inside the installer state directory rooted at baseDir
func GravityLocalDir ¶
GravityLocalDir returns full path to the directory with local gravity state.
func GravityRPCAgentDir ¶
GravityRPCAgentDir returns full path to the RPC agent directory
func GravityUpdateDir ¶
GravityUpdateDir returns full path to the update directory
func InEtcdDir ¶
InEtcdDir returns full path to the specified file in the planet etcd data directory
func InStateDir ¶
InStateDir returns the provided path elements joined with the state dir.
func RegistryDir ¶
RegistryDir returns full path to the planet docker registry directory
func SetStateDir ¶
SetStateDir saves the provided directory stateDir as a local gravity state directory pointer
func TeleportAuthDataDir ¶
TeleportAuthDataDir returns full path to the directory where teleport auth server keeps its data.
func TeleportNodeDataDir ¶
TeleportNodeDataDir returns full path to the directory where teleport node keeps its data.
Types ¶
This section is empty.