options

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CorsOptions

type CorsOptions struct {
	Enable         bool
	OriginHost     string
	AllowSubdomain bool
}

func NewCORSOptions

func NewCORSOptions() *CorsOptions

func (*CorsOptions) AddFlags

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

func (*CorsOptions) AddGoFlags

func (o *CorsOptions) AddGoFlags(fs *flag.FlagSet)

func (*CorsOptions) ApplyTo

func (o *CorsOptions) ApplyTo(cfg *server.Config) error

func (*CorsOptions) Validate

func (o *CorsOptions) Validate() []error

type RecommendedOptions

type RecommendedOptions struct {
	Cors          *CorsOptions
	SecureServing *SecureServingOptions
}

func NewRecommendedOptions

func NewRecommendedOptions() *RecommendedOptions

func (*RecommendedOptions) AddFlags

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

func (*RecommendedOptions) AddGoFlags

func (o *RecommendedOptions) AddGoFlags(fs *flag.FlagSet)

func (*RecommendedOptions) ApplyTo

func (o *RecommendedOptions) ApplyTo(config *server.Config) error

func (*RecommendedOptions) Validate

func (o *RecommendedOptions) Validate() []error

type SecureServingOptions

type SecureServingOptions struct {
	SecureAddr    string
	PlaintextAddr string
	APIDomain     string
	CACertFile    string
	CertFile      string
	KeyFile       string
}

func NewSecureServingOptions

func NewSecureServingOptions() *SecureServingOptions

func (*SecureServingOptions) AddFlags

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

func (*SecureServingOptions) AddGoFlags

func (o *SecureServingOptions) AddGoFlags(fs *flag.FlagSet)

func (*SecureServingOptions) ApplyTo

func (o *SecureServingOptions) ApplyTo(cfg *server.Config) error

func (*SecureServingOptions) Validate

func (o *SecureServingOptions) Validate() []error

Jump to

Keyboard shortcuts

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