option

package
v0.0.0-...-6bd796b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterOption

type AdapterOption struct {
	EventHandlers EventHandlers
	Registry      Registry
	Configuration Configuration
}

AdapterOption ...

func DefaultAdapterOption

func DefaultAdapterOption() *AdapterOption

DefaultAdapterOption ...

type Configuration

type Configuration struct {
	Type    string
	Address []string
	Timeout int64
}

Configuration ...

type ControllerOption

type ControllerOption struct {
	HTTPAddress             string
	MetricsEnabled          bool
	SyncPeriod              int32
	LeaderElectionNamespace string
	LeaderElectionID        string
	EnableLeaderElection    bool
	GinLogEnabled           bool
	GinLogSkipPath          []string
	PprofEnabled            bool
	GoroutineThreshold      int
	MaxConcurrentReconciles int
	InitDefaultSidecars     bool

	// Dubbo proxy settings
	ProxyHost          string
	ProxyAttempts      int32
	ProxyPerTryTimeout int64
	ProxyRetryOn       string

	// MeshConfig Name
	MeshConfigName      string
	MeshConfigNamespace string

	// Custome some labels
	SelectLabel string

	// Controller Enabled
	EnableAppMeshConfig     bool
	EnableConfiguredService bool
	EnableIstioConfig       bool
	EnableMeshConfig        bool
	EnableServiceAccessor   bool
	EnableServiceConfig     bool
	WatchIstioCRD           bool
}

ControllerOption ...

func DefaultControllerOption

func DefaultControllerOption() *ControllerOption

DefaultControllerOption ...

type EventHandlers

type EventHandlers struct {
	AcceleratorSize int

	// options for kubernetes
	EnableK8s        bool
	IsMultiClusters  bool
	Kubeconfig       string
	ConfigContext    string
	ClusterOwner     string
	ClusterNamespace string
	Namespace        string
	DefaultNamespace string

	// you can add more options for other event handler you will utilize.
	EnableDebugLog bool
	QPS            float32
	Burst          int
}

EventHandlers ...

type Registry

type Registry struct {
	Type    string
	Address []string
	Timeout int64
}

Registry ...

type RootOption

type RootOption struct {
	Kubeconfig       string
	ConfigContext    string
	Namespace        string
	DefaultNamespace string
	DevelopmentMode  bool
	QPS              float32
	Burst            int
}

RootOption ...

func DefaultRootOption

func DefaultRootOption() *RootOption

DefaultRootOption ...

func (*RootOption) GetK8sConfig

func (r *RootOption) GetK8sConfig() (*rest.Config, error)

GetK8sConfig ...

func (*RootOption) GetKubeInterface

func (r *RootOption) GetKubeInterface() (kubernetes.Interface, error)

GetKubeInterface ...

func (*RootOption) GetKubeInterfaceOrDie

func (r *RootOption) GetKubeInterfaceOrDie() kubernetes.Interface

GetKubeInterfaceOrDie ...

Jump to

Keyboard shortcuts

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