Documentation
¶
Index ¶
- Variables
- func L4LBMetaToNetris(l4lbMeta *k8sv1alpha1.L4LBMeta) (*api.APILoadBalancerAdd, error)
- func L4LBMetaToNetrisUpdate(l4lbMeta *k8sv1alpha1.L4LBMeta) (*api.APIUpdateLoadBalancer, error)
- func VnetMetaToNetris(vnetMeta *k8sv1alpha1.VNetMeta) (*api.APIVNetAdd, error)
- func VnetMetaToNetrisUpdate(vnetMeta *k8sv1alpha1.VNetMeta) (*api.APIVNetUpdate, error)
- type EBGPMetaReconciler
- type EBGPReconciler
- type EBGPStorage
- type L4LBMetaReconciler
- type L4LBReconciler
- type L4LBStorage
- type PortsStorage
- type SitesStorage
- type Storage
- type SubnetsStorage
- type TenantsStorage
- type VNetMetaReconciler
- type VNetReconciler
- type VNetStorage
Constants ¶
This section is empty.
Variables ¶
var ( // Cred stores the Netris API usepoint. Cred *api.HTTPCred // NStorage is the instance of the Netris API in-memory storage. NStorage = NewStorage() )
Functions ¶
func L4LBMetaToNetris ¶
func L4LBMetaToNetris(l4lbMeta *k8sv1alpha1.L4LBMeta) (*api.APILoadBalancerAdd, error)
L4LBetaToNetris converts the k8s L4LB resource to Netris type and used for add the L4LB for Netris API.
func L4LBMetaToNetrisUpdate ¶
func L4LBMetaToNetrisUpdate(l4lbMeta *k8sv1alpha1.L4LBMeta) (*api.APIUpdateLoadBalancer, error)
L4LBMetaToNetrisUpdate converts the k8s L4LB resource to Netris type and used for update the L4LB for Netris API.
func VnetMetaToNetris ¶
func VnetMetaToNetris(vnetMeta *k8sv1alpha1.VNetMeta) (*api.APIVNetAdd, error)
VnetMetaToNetris converts the k8s VNet resource to Netris type and used for add the VNet for Netris API.
func VnetMetaToNetrisUpdate ¶
func VnetMetaToNetrisUpdate(vnetMeta *k8sv1alpha1.VNetMeta) (*api.APIVNetUpdate, error)
VnetMetaToNetrisUpdate converts the k8s VNet resource to Netris type and used for update the VNet for Netris API.
Types ¶
type EBGPMetaReconciler ¶
EBGPMetaReconciler reconciles a EBGPMeta object
func (*EBGPMetaReconciler) SetupWithManager ¶
func (r *EBGPMetaReconciler) SetupWithManager(mgr ctrl.Manager) error
type EBGPReconciler ¶
EBGPReconciler reconciles a EBGP object
func (*EBGPReconciler) EBGPToEBGPMeta ¶
func (r *EBGPReconciler) EBGPToEBGPMeta(ebgp *k8sv1alpha1.EBGP) (*k8sv1alpha1.EBGPMeta, error)
VnetToVnetMeta converts the VNet resource to VNetMeta type and used for add the VNet for Netris API.
func (*EBGPReconciler) SetupWithManager ¶
func (r *EBGPReconciler) SetupWithManager(mgr ctrl.Manager) error
type EBGPStorage ¶
EBGPStorage .
type L4LBMetaReconciler ¶
L4LBMetaReconciler reconciles a L4LBMeta object
func (*L4LBMetaReconciler) SetupWithManager ¶
func (r *L4LBMetaReconciler) SetupWithManager(mgr ctrl.Manager) error
type L4LBReconciler ¶
L4LBReconciler reconciles a L4LB object
func (*L4LBReconciler) L4LBToL4LBMeta ¶
func (r *L4LBReconciler) L4LBToL4LBMeta(l4lb *k8sv1alpha1.L4LB) (*k8sv1alpha1.L4LBMeta, error)
VnetToVnetMeta converts the VNet resource to VNetMeta type and used for add the VNet for Netris API.
func (*L4LBReconciler) SetupWithManager ¶
func (r *L4LBReconciler) SetupWithManager(mgr ctrl.Manager) error
type L4LBStorage ¶
type L4LBStorage struct {
sync.Mutex
L4LBs []*api.APILoadBalancer
}
L4LBStorage .
func (*L4LBStorage) FindByID ¶
func (p *L4LBStorage) FindByID(id int) (*api.APILoadBalancer, bool)
FindByID .
func (*L4LBStorage) FindByName ¶
func (p *L4LBStorage) FindByName(name string) (*api.APILoadBalancer, bool)
FindByName .
type PortsStorage ¶
PortsStorage .
func (*PortsStorage) FindByName ¶
func (p *PortsStorage) FindByName(name string) (*api.APIPort, bool)
FindByName .
type SitesStorage ¶
SitesStorage .
func (*SitesStorage) FindByID ¶
func (p *SitesStorage) FindByID(id int) (*api.APISite, bool)
FindByID .
func (*SitesStorage) FindByName ¶
func (p *SitesStorage) FindByName(name string) (*api.APISite, bool)
FindByName .
type Storage ¶
type Storage struct {
sync.Mutex
*PortsStorage
*SitesStorage
*TenantsStorage
*VNetStorage
*EBGPStorage
*L4LBStorage
*SubnetsStorage
}
Storage .
func (*Storage) DownloadWithInterval ¶
func (s *Storage) DownloadWithInterval()
DownloadWithInterval .
type SubnetsStorage ¶
SubnetsStorage .
func (*SubnetsStorage) FindByID ¶
func (p *SubnetsStorage) FindByID(id int) (*api.APISubnet, bool)
FindByID .
func (*SubnetsStorage) FindByName ¶
func (p *SubnetsStorage) FindByName(name string) (*api.APISubnet, bool)
FindByName .
type TenantsStorage ¶
TenantsStorage .
func (*TenantsStorage) FindByID ¶
func (p *TenantsStorage) FindByID(id int) (*api.APITenant, bool)
FindByID .
func (*TenantsStorage) FindByName ¶
func (p *TenantsStorage) FindByName(name string) (*api.APITenant, bool)
FindByName .
type VNetMetaReconciler ¶
VNetMetaReconciler reconciles a VNetMeta object
func (*VNetMetaReconciler) SetupWithManager ¶
func (r *VNetMetaReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager .
type VNetReconciler ¶
VNetReconciler reconciles a VNet object
func (*VNetReconciler) SetupWithManager ¶
func (r *VNetReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager Resources
func (*VNetReconciler) VnetToVnetMeta ¶
func (r *VNetReconciler) VnetToVnetMeta(vnet *k8sv1alpha1.VNet) (*k8sv1alpha1.VNetMeta, error)
VnetToVnetMeta converts the VNet resource to VNetMeta type and used for add the VNet for Netris API.
type VNetStorage ¶
VNetStorage .
func (*VNetStorage) FindByID ¶
func (p *VNetStorage) FindByID(id int) (*api.APIVNet, bool)
FindByID .
func (*VNetStorage) FindByName ¶
func (p *VNetStorage) FindByName(name string) (*api.APIVNet, bool)
FindByName .