service

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2026 License: AGPL-3.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (cmd *Start) Execute(args []string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL