Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureStateLayout ¶
func EnsureStateLayout(paths *StatePaths) error
func ListDirectories ¶
func PrintRuntimePaths ¶
func PrintRuntimePaths(meta *Metadata)
func WriteMetadata ¶
Types ¶
type Metadata ¶
type Metadata struct {
Instance string `json:"instance"`
BridgeType string `json:"bridge_type"`
RepoPath string `json:"repo_path,omitempty"`
BinaryPath string `json:"binary_path,omitempty"`
ConfigPath string `json:"config_path"`
RegistrationPath string `json:"registration_path"`
LogPath string `json:"log_path"`
PIDPath string `json:"pid_path"`
BeeperBridgeName string `json:"beeper_bridge_name"`
UpdatedAt time.Time `json:"updated_at"`
}
func ReadMetadata ¶
type StatePaths ¶
type StatePaths struct {
Root string
ConfigPath string
RegistrationPath string
LogPath string
PIDPath string
MetaPath string
}
func BuildStatePaths ¶
func BuildStatePaths(root, instanceName string) *StatePaths
Click to show internal directories.
Click to hide internal directories.