run

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Help

func Help(name string, writer io.Writer) string

Help is a standalone function that prints a help message to writer. It is used by both the run and validate commands, so they can share flag usage messages.

func LoadConfig

func LoadConfig(name string, args []string, logOptions []log.Option, output io.Writer, allowUnknownConfig bool) (*server.Config, error)

func NewRunCommand

func NewRunCommand(ctx context.Context, logOptions []log.Option, allowUnknownConfig bool) cli.Command

func NewServerConfig

func NewServerConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool) (*server.Config, error)

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

Run Command struct

func (*Command) Help

func (cmd *Command) Help() string

Help prints the server cmd usage

func (*Command) Run

func (cmd *Command) Run(args []string) int

Run the SPIFFE Server

func (*Command) Synopsis

func (*Command) Synopsis() string

Synopsis of the command

type Config

type Config struct {
	Server       *serverConfig        `hcl:"server"`
	Plugins      ast.Node             `hcl:"plugins"`
	Telemetry    telemetry.FileConfig `hcl:"telemetry"`
	HealthChecks health.Config        `hcl:"health_checks"`
	UnusedKeys   []string             `hcl:",unusedKeys"`
}

Config contains all available configurables, arranged by section

func ParseFile

func ParseFile(path string, expandEnv bool) (*Config, error)

Jump to

Keyboard shortcuts

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