options

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletedOptions

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

func (*CompletedOptions) Validate

func (options *CompletedOptions) Validate() error
type Cookie struct {
	SigningKey    string
	EncryptionKey string
}

func NewCookie added in v0.2.1

func NewCookie() *Cookie

func (*Cookie) AddFlags added in v0.2.1

func (options *Cookie) AddFlags(fs *pflag.FlagSet)

func (*Cookie) Complete added in v0.2.1

func (options *Cookie) Complete() error

func (*Cookie) Validate added in v0.2.1

func (options *Cookie) Validate() error

type ExtraOptions

type ExtraOptions struct {
	KubeConfig string

	NamespacePrefix       string
	PrettyName            string
	ConsumerScope         string
	ExternalAddress       string
	ExternalCAFile        string
	ExternalCA            []byte
	TLSExternalServerName string

	TestingAutoSelect string
}

type OIDC

type OIDC struct {
	IssuerClientID     string
	IssuerClientSecret string
	IssuerURL          string
	CallbackURL        string
	AuthorizeURL       string
}

func NewOIDC

func NewOIDC() *OIDC

func (*OIDC) AddFlags

func (options *OIDC) AddFlags(fs *pflag.FlagSet)

func (*OIDC) Complete

func (options *OIDC) Complete() error

func (*OIDC) Validate

func (options *OIDC) Validate() error

type Options

type Options struct {
	Logs   *logs.Options
	OIDC   *OIDC
	Cookie *Cookie
	Serve  *Serve

	ExtraOptions
}

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

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

func (*Options) Complete

func (options *Options) Complete() (*CompletedOptions, error)

type Serve

type Serve struct {
	ListenIP          string
	ListenPort        int
	CertFile, KeyFile string

	// Listener is used to pre-wire a port zero listener for testing.
	Listener net.Listener
}

func NewServe

func NewServe() *Serve

func (*Serve) AddFlags

func (options *Serve) AddFlags(fs *pflag.FlagSet)

func (*Serve) Complete

func (options *Serve) Complete() error

func (*Serve) Validate

func (options *Serve) Validate() error

Jump to

Keyboard shortcuts

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