cmd

package
v0.2023.21 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInitializedSecretStorage

func CreateInitializedSecretStorage(ctx context.Context, args *CommonCliArgs) (secretstorage.SecretStorage, error)

Types

type CommonCliArgs

type CommonCliArgs struct {
	SPIInstanceId     string           `` /* 171-byte string literal not displayed */
	MetricsAddr       string           `arg:"--metrics-bind-address, env" default:"127.0.0.1:8080" help:"The address the metric endpoint binds to."`
	ProbeAddr         string           `arg:"--health-probe-bind-address, env" default:":8081" help:"The address the probe endpoint binds to."`
	ConfigFile        string           `arg:"--config-file, env" default:"/etc/spi/config.yaml" help:"The location of the configuration file."`
	BaseUrl           string           `` /* 154-byte string literal not displayed */
	AllowInsecureURLs bool             `` /* 152-byte string literal not displayed */
	TokenStorage      TokenStorageType `` /* 127-byte string literal not displayed */
	vaultcli.VaultCliArgs
	awscli.AWSCliArgs
}

CommonCliArgs are the command line arguments and environment variable definitions understood by the configuration infrastructure shared between the operator and the oauth service.

type LoggingCliArgs

type LoggingCliArgs struct {
	ZapDevel           bool   `` /* 213-byte string literal not displayed */
	ZapEncoder         string `arg:"--zap-encoder, env" default:"" help:"Zap log encoding (‘json’ or ‘console’)"`
	ZapLogLevel        string `arg:"--zap-log-level, env" default:"" help:"Zap Level to configure the verbosity of logging"`
	ZapStackTraceLevel string `arg:"--zap-stacktrace-level, env" default:"" help:"Zap Level at and above which stacktraces are captured"`
	ZapTimeEncoding    string `` /* 127-byte string literal not displayed */
}

LoggingCliArgs define the command line arguments for configuring the logging using Zap.

type TokenStorageType

type TokenStorageType string
const (
	VaultTokenStorage TokenStorageType = "vault"
	AWSTokenStorage   TokenStorageType = "aws"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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