Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ManagerOptions *ManagerOptions `json:"manager,omitempty" yaml:"manager,omitempty" mapstructure:"manager,omitempty"` KubernetesOptions *KubernetesOptions `json:"kubernetes,omitempty" yaml:"kubernetes,omitempty" mapstructure:"kubernetes,omitempty"` // todo-add 使用到的各控制器的options FalconOptions *FalconOptions `json:"falcon,omitempty" yaml:"falcon,omitempty" mapstructure:"falcon,omitempty"` }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
func TryLoadFromDisk ¶
type FalconOptions ¶
type FalconOptions struct { IstioNamespace string `json:"namespace,omitempty" yaml:"namespace,omitempty" mapstructure:"namespace"` IngressgatewayName string `json:"name,omitempty" yaml:"name,omitempty" mapstructure:"name"` DefaultExposePorts []int32 `json:"ports,omitempty" yaml:"ports,omitempty" mapstructure:"ports"` IgnoreLabel string `json:"ignoreLabel,omitempty" yaml:"ignoreLabel,omitempty" mapstructure:"ignoreLabel"` }
func NewDefaultFalconOptions ¶
func NewDefaultFalconOptions() *FalconOptions
func (*FalconOptions) Validate ¶
func (f *FalconOptions) Validate() []error
type KubernetesOptions ¶
type KubernetesOptions struct { KubeConfig string `json:"kubeconfig" yaml:"kubeconfig,omitempty"` Master string `json:"master,omitempty" yaml:"master,omitempty"` QPS float32 `json:"qps,omitempty" yaml:"qps,omitempty"` Burst int `json:"burst,omitempty" yaml:"burst,omitempty"` }
func NewDefaultKubernetesOptions ¶
func NewDefaultKubernetesOptions() *KubernetesOptions
func (*KubernetesOptions) Validate ¶
func (k *KubernetesOptions) Validate() []error
type ManagerOptions ¶
type ManagerOptions struct { LeaseDuration time.Duration `json:"leaseDuration,omitempty" yaml:"leaseDuration,omitempty" mapstructure:"leaseDuration,omitempty"` RenewDeadline time.Duration `json:"renewDeadline,omitempty" yaml:"renewDeadline,omitempty" mapstructure:"renewDeadline,omitempty"` RetryPeriod time.Duration `json:"retryPeriod,omitempty" yaml:"retryPeriod,omitempty" mapstructure:"retryPeriod,omitempty"` LeaderElection bool `json:"leaderElection,omitempty" yaml:"leaderElection,omitempty" mapstructure:"leaderElection,omitempty"` LeaderElectionNamespace string `` /* 130-byte string literal not displayed */ LeaderElectionID string `json:"leaderElectionID,omitempty" yaml:"leaderElectionID,omitempty" mapstructure:"leaderElectionID,omitempty"` }
func NewDefaultManagerOptions ¶
func NewDefaultManagerOptions() *ManagerOptions
func (*ManagerOptions) Validate ¶
func (o *ManagerOptions) Validate() []error
Click to show internal directories.
Click to hide internal directories.