Documentation
¶
Overview ¶
Package cli implements the stable command-line and JSON protocol surface.
Index ¶
Constants ¶
View Source
const Protocol = 1
Variables ¶
This section is empty.
Functions ¶
func NotifyContext ¶
NotifyContext records which signal interrupted the CLI, for forwarding and conventional shell exit codes. It never installs handlers in the library.
Types ¶
type Options ¶
type Options struct {
Version string `json:"postgres_version"`
Port uint `json:"port"`
Database string `json:"database"`
Username string `json:"username"`
Password string `json:"password"`
CacheDir string `json:"cache_dir"`
WorkDir string `json:"work_dir"`
DataDir string `json:"data_dir"`
Binaries string `json:"binaries"`
Mirror string `json:"mirror"`
User string `json:"user"`
SocketDir string `json:"socket_dir"`
StartTimeout string `json:"start_timeout"`
StopTimeout string `json:"stop_timeout"`
Parameters map[string]string `json:"parameters"`
Offline bool `json:"offline"`
JSON bool `json:"json"`
ParentStdin bool `json:"parent_stdin"`
StateFile string `json:"state_file"`
}
Options is the JSON configuration schema. Flags override environment, which overrides the file. Durations use Go syntax, for example "30s".
Click to show internal directories.
Click to hide internal directories.