options

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuditConfiguration

func NewAuditConfiguration() (*auditconfig.AuditConfiguration, error)

NewAuditConfiguration will create a new AuditConfiguration with default values

Types

type Options

type Options struct {
	Log            *log.Options
	SecureServing  *apiserveroptions.SecureServingOptions
	Generic        *apiserveroptions.GenericOptions
	Authentication *apiserveroptions.AuthenticationWithAPIOptions
	Authorization  *apiserveroptions.AuthorizationOptions
	// The Audit will load its initial configuration from this file.
	// The path may be absolute or relative; relative paths are under the Audit's current working directory.
	AuditConfig string
}

Options is the main context object for the TKE audit server.

func NewOptions

func NewOptions(serverName string) *Options

NewOptions creates a new Options with a default config.

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for a specific server to the specified FlagSet object.

func (*Options) ApplyFlags

func (o *Options) ApplyFlags() []error

ApplyFlags parsing parameters from the command line or configuration file to the options instance.

func (*Options) Complete

func (o *Options) Complete() error

Complete set default Options. Should be called after tke-console flags parsed.

Jump to

Keyboard shortcuts

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