Documentation ¶
Overview ¶
Package flb implements the controller for Flomesh Load Balancer.
Index ¶
- func NewSecretReconciler(ctx *fctx.ControllerContext, webhook whtypes.Register, ...) controllers.Reconciler
- func NewServiceReconciler(ctx *fctx.ControllerContext, webhook whtypes.Register, ...) controllers.Reconciler
- type AuthRequest
- type AuthResponse
- type BalancerAPIResponse
- type Cert
- type CertData
- type CertDeleteRequest
- type CertRequest
- type Setting
- type SettingManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSecretReconciler ¶ added in v1.2.1
func NewSecretReconciler(ctx *fctx.ControllerContext, webhook whtypes.Register, settingManager *SettingManager) controllers.Reconciler
NewSecretReconciler returns a new reconciler for Secret
func NewServiceReconciler ¶ added in v1.2.1
func NewServiceReconciler(ctx *fctx.ControllerContext, webhook whtypes.Register, settingManager *SettingManager) controllers.Reconciler
NewServiceReconciler returns a new reconciler for Service
Types ¶
type AuthRequest ¶
AuthRequest is the request body for FLB authentication
type AuthResponse ¶
type AuthResponse struct {
Token string `json:"jwt"`
}
AuthResponse is the response body for FLB authentication
type BalancerAPIResponse ¶
type BalancerAPIResponse struct {
LBIPs []string `json:"LBIPs"`
}
BalancerAPIResponse is the response body for FLB API
type CertDeleteRequest ¶ added in v1.2.1
type CertDeleteRequest struct {
Name string `json:"name"`
}
type CertRequest ¶ added in v1.2.1
type CertRequest struct {
Data CertData `json:"data"`
}
type Setting ¶ added in v1.2.1
type Setting struct {
// contains filtered or unexported fields
}
Setting is the setting for a FLB instance per namespace
func (*Setting) ForceUpdateToken ¶ added in v1.2.1
func (*Setting) UpdateToken ¶ added in v1.2.1
type SettingManager ¶ added in v1.2.1
type SettingManager struct {
// contains filtered or unexported fields
}
SettingManager is the manager for FLB settings
func NewSettingManager ¶ added in v1.2.1
func NewSettingManager(ctx *fctx.ControllerContext) *SettingManager
NewSettingManager returns a new setting manager
func (*SettingManager) CheckSetting ¶ added in v1.2.1
CheckSetting checks the setting for the object in the namespace
func (*SettingManager) GetDefaultSetting ¶ added in v1.2.1
func (sm *SettingManager) GetDefaultSetting() *Setting
GetDefaultSetting returns the default setting
func (*SettingManager) GetSetting ¶ added in v1.2.1
func (sm *SettingManager) GetSetting(namespace string) *Setting
GetSetting returns the setting for the namespace
func (*SettingManager) SetSetting ¶ added in v1.2.1
func (sm *SettingManager) SetSetting(namespace string, setting *Setting)
SetSetting sets the setting for the namespace