Documentation
¶
Overview ¶
Package service implements the "service" command group, which runs an OpenStack metadata signer replica.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// Start runs a signer replica.
Start Start `command:"start" description:"Run an OpenStack metadata signer replica."`
}
Service groups the commands running the signer.
type Start ¶
type Start struct {
// Config is the path of the signer configuration file.
Config string `short:"c" long:"config" description:"Path to the signer configuration file." value-name:"PATH" required:"true"`
}
Start runs a signer replica until SIGINT or SIGTERM.
func (*Start) Execute ¶
Execute loads and checks the configuration (refusing to start on any error, logging warnings), installs the syslog audit sink if enabled (refusing to start if its socket cannot be opened), authenticates with Keystone using the OS_* environment variables, and serves until SIGINT or SIGTERM, then shuts down gracefully and drains the audit records still queued for syslog.