run

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 37 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Help added in v0.10.0

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 added in v0.10.0

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

func NewRunCommand added in v0.10.0

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

func NewServerConfig added in v0.10.0

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 added in v0.10.0

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 added in v0.10.0

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