flb

package
v1.2.5-alpha.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Overview

Package flb implements the controller for Flomesh Load Balancer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSecretReconciler added in v1.2.1

func NewSecretReconciler(ctx *fctx.ControllerContext, settingManager *SettingManager) controllers.Reconciler

NewSecretReconciler returns a new reconciler for Secret

func NewServiceReconciler added in v1.2.1

func NewServiceReconciler(ctx *fctx.ControllerContext, settingManager *SettingManager) controllers.Reconciler

NewServiceReconciler returns a new reconciler for Service

Types

type AuthRequest

type AuthRequest struct {
	Identifier string `json:"identifier"`
	Password   string `json:"password"`
}

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 Cert added in v1.2.1

type Cert struct {
	Cert string `json:"cert"`
	Key  string `json:"key"`
}

type CertData added in v1.2.1

type CertData struct {
	Name    string `json:"name"`
	Type    string `json:"type"`
	Content Cert   `json:"content"`
}

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 (s *Setting) ForceUpdateToken() error

func (*Setting) UpdateToken added in v1.2.1

func (s *Setting) UpdateToken() error

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

func (sm *SettingManager) CheckSetting(obj client.Object) (ctrl.Result, error)

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

Jump to

Keyboard shortcuts

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