Documentation
¶
Index ¶
- Variables
- type BGPStorage
- func (p *BGPStorage) Download() error
- func (p *BGPStorage) FindByID(id int) (*bgp.EBGP, bool)
- func (p *BGPStorage) FindByName(name string) (*bgp.EBGP, bool)
- func (p *BGPStorage) FindOffloaderByID(siteID, id int) (*bgp.EBGPOffloader, bool)
- func (p *BGPStorage) FindOffloaderByName(siteID int, name string) (*bgp.EBGPOffloader, bool)
- func (p *BGPStorage) FindPort(siteID int, portName string) (*bgp.EBGPPort, bool)
- func (p *BGPStorage) FindRouteMapByID(id int) (*bgp.EBGPRouteMap, bool)
- func (p *BGPStorage) FindRouteMapByName(name string) (*bgp.EBGPRouteMap, bool)
- func (p *BGPStorage) FindSiteByID(id int) (*bgp.EBGPSite, bool)
- func (p *BGPStorage) FindSiteByName(name string) (*bgp.EBGPSite, bool)
- func (p *BGPStorage) FindSwitchByID(siteID, id int) (*bgp.EBGPSwitch, bool)
- func (p *BGPStorage) FindSwitchByName(siteID int, name string) (*bgp.EBGPSwitch, bool)
- func (p *BGPStorage) FindUpdatedSource(source string) (*bgp.EBGPUpdatedSource, bool)
- func (p *BGPStorage) FindVNetByID(id int) (*bgp.EBGPVNet, bool)
- func (p *BGPStorage) FindVNetByName(name string) (*bgp.EBGPVNet, bool)
- func (p *BGPStorage) GetAll() []*bgp.EBGP
- type HWsStorage
- func (p *HWsStorage) Download() error
- func (p *HWsStorage) FindByID(id int) (*inventory.HW, bool)
- func (p *HWsStorage) FindByName(name string) (*inventory.HW, bool)
- func (p *HWsStorage) FindControllerByID(id int) (*inventory.HW, bool)
- func (p *HWsStorage) FindControllerByName(name string) (*inventory.HW, bool)
- func (p *HWsStorage) FindHWsBySite(siteID int) []inventory.HW
- func (p *HWsStorage) FindSoftgateByID(id int) (*inventory.HW, bool)
- func (p *HWsStorage) FindSoftgateByName(name string) (*inventory.HW, bool)
- func (p *HWsStorage) FindSpineBySite(siteID int) *inventory.HW
- func (p *HWsStorage) FindSwitchByID(id int) (*inventory.HW, bool)
- func (p *HWsStorage) FindSwitchByName(name string) (*inventory.HW, bool)
- func (p *HWsStorage) GetAll() []*inventory.HW
- type InventoryProfileStorage
- type L4LBStorage
- type LinksStorage
- type NATStorage
- type PortsStorage
- type SitesStorage
- type Storage
- type SubnetsStorage
- type TenantsStorage
- type VNetStorage
Constants ¶
This section is empty.
Variables ¶
var Cred *api.Clientset
Cred is the Netris api client structure.
Functions ¶
This section is empty.
Types ¶
type BGPStorage ¶
type BGPStorage struct { sync.Mutex BGPs []*bgp.EBGP BGPSites []*bgp.EBGPSite BGPVNets []*bgp.EBGPVNet BGPRouteMaps []*bgp.EBGPRouteMap BGPOffloaders map[int][]*bgp.EBGPOffloader BGPPorts map[int][]*bgp.EBGPPort BGPSwitches map[int][]*bgp.EBGPSwitch BGPUpdatedSources []*bgp.EBGPUpdatedSource }
BGPStorage .
func (*BGPStorage) FindByName ¶
func (p *BGPStorage) FindByName(name string) (*bgp.EBGP, bool)
FindByName .
func (*BGPStorage) FindOffloaderByID ¶
func (p *BGPStorage) FindOffloaderByID(siteID, id int) (*bgp.EBGPOffloader, bool)
FindOffloaderByID .
func (*BGPStorage) FindOffloaderByName ¶
func (p *BGPStorage) FindOffloaderByName(siteID int, name string) (*bgp.EBGPOffloader, bool)
FindOffloaderByName .
func (*BGPStorage) FindRouteMapByID ¶
func (p *BGPStorage) FindRouteMapByID(id int) (*bgp.EBGPRouteMap, bool)
FindRouteMapByID .
func (*BGPStorage) FindRouteMapByName ¶
func (p *BGPStorage) FindRouteMapByName(name string) (*bgp.EBGPRouteMap, bool)
FindRouteMapByName .
func (*BGPStorage) FindSiteByID ¶
func (p *BGPStorage) FindSiteByID(id int) (*bgp.EBGPSite, bool)
FindSiteByID .
func (*BGPStorage) FindSiteByName ¶
func (p *BGPStorage) FindSiteByName(name string) (*bgp.EBGPSite, bool)
FindSiteByName .
func (*BGPStorage) FindSwitchByID ¶
func (p *BGPStorage) FindSwitchByID(siteID, id int) (*bgp.EBGPSwitch, bool)
FindSwitchByID .
func (*BGPStorage) FindSwitchByName ¶
func (p *BGPStorage) FindSwitchByName(siteID int, name string) (*bgp.EBGPSwitch, bool)
FindSwitchByName .
func (*BGPStorage) FindUpdatedSource ¶
func (p *BGPStorage) FindUpdatedSource(source string) (*bgp.EBGPUpdatedSource, bool)
FindUpdatedSource .
func (*BGPStorage) FindVNetByID ¶
func (p *BGPStorage) FindVNetByID(id int) (*bgp.EBGPVNet, bool)
FindVNetByID .
func (*BGPStorage) FindVNetByName ¶
func (p *BGPStorage) FindVNetByName(name string) (*bgp.EBGPVNet, bool)
FindVNetByName .
type HWsStorage ¶ added in v0.4.3
HWsStorage .
func (*HWsStorage) FindByID ¶ added in v0.4.3
func (p *HWsStorage) FindByID(id int) (*inventory.HW, bool)
FindByID .
func (*HWsStorage) FindByName ¶ added in v0.4.3
func (p *HWsStorage) FindByName(name string) (*inventory.HW, bool)
FindByName .
func (*HWsStorage) FindControllerByID ¶ added in v1.2.0
func (p *HWsStorage) FindControllerByID(id int) (*inventory.HW, bool)
FindControllerByID .
func (*HWsStorage) FindControllerByName ¶ added in v1.2.0
func (p *HWsStorage) FindControllerByName(name string) (*inventory.HW, bool)
FindControllerByName .
func (*HWsStorage) FindHWsBySite ¶ added in v0.4.3
func (p *HWsStorage) FindHWsBySite(siteID int) []inventory.HW
FindHWsBySite .
func (*HWsStorage) FindSoftgateByID ¶ added in v1.2.0
func (p *HWsStorage) FindSoftgateByID(id int) (*inventory.HW, bool)
FindSoftgateByID .
func (*HWsStorage) FindSoftgateByName ¶ added in v1.2.0
func (p *HWsStorage) FindSoftgateByName(name string) (*inventory.HW, bool)
FindSoftgateByName .
func (*HWsStorage) FindSpineBySite ¶ added in v0.4.3
func (p *HWsStorage) FindSpineBySite(siteID int) *inventory.HW
FindSpineBySite .
func (*HWsStorage) FindSwitchByID ¶ added in v1.2.0
func (p *HWsStorage) FindSwitchByID(id int) (*inventory.HW, bool)
FindSwitchByID .
func (*HWsStorage) FindSwitchByName ¶ added in v1.2.0
func (p *HWsStorage) FindSwitchByName(name string) (*inventory.HW, bool)
FindSwitchByName .
type InventoryProfileStorage ¶ added in v1.4.0
type InventoryProfileStorage struct { sync.Mutex InventoryProfile []*inventoryprofile.Profile }
InventoryProfileStorage .
func NewInventoryProfileStorage ¶ added in v1.4.0
func NewInventoryProfileStorage() *InventoryProfileStorage
NewInventoryProfileStorage .
func (*InventoryProfileStorage) Download ¶ added in v1.4.0
func (p *InventoryProfileStorage) Download() error
Download .
func (*InventoryProfileStorage) FindByID ¶ added in v1.4.0
func (p *InventoryProfileStorage) FindByID(id int) (*inventoryprofile.Profile, bool)
FindByID .
func (*InventoryProfileStorage) FindByName ¶ added in v1.4.0
func (p *InventoryProfileStorage) FindByName(name string) (*inventoryprofile.Profile, bool)
FindByName .
func (*InventoryProfileStorage) GetAll ¶ added in v1.4.0
func (p *InventoryProfileStorage) GetAll() []*inventoryprofile.Profile
GetAll .
type L4LBStorage ¶
type L4LBStorage struct { sync.Mutex L4LBs []*l4lb.LoadBalancer }
L4LBStorage .
func (*L4LBStorage) FindByID ¶
func (p *L4LBStorage) FindByID(id int) (*l4lb.LoadBalancer, bool)
FindByID .
func (*L4LBStorage) FindByName ¶
func (p *L4LBStorage) FindByName(name string) (*l4lb.LoadBalancer, bool)
FindByName .
type LinksStorage ¶ added in v1.2.0
LinksStorage .
type NATStorage ¶ added in v1.3.0
NATStorage .
func (*NATStorage) FindByID ¶ added in v1.3.0
func (p *NATStorage) FindByID(id int) (*nat.NAT, bool)
FindByID .
func (*NATStorage) FindByName ¶ added in v1.3.0
func (p *NATStorage) FindByName(name string) (*nat.NAT, bool)
FindByName .
type PortsStorage ¶
PortsStorage .
func (*PortsStorage) FindByID ¶ added in v1.0.0
func (p *PortsStorage) FindByID(id int) (*port.Port, bool)
FindByID .
func (*PortsStorage) FindByName ¶
func (p *PortsStorage) FindByName(name string) (*port.Port, bool)
FindByName .
type SitesStorage ¶
SitesStorage .
func (*SitesStorage) FindByID ¶
func (p *SitesStorage) FindByID(id int) (*site.Site, bool)
FindByID .
func (*SitesStorage) FindByName ¶
func (p *SitesStorage) FindByName(name string) (*site.Site, bool)
FindByName .
type Storage ¶
type Storage struct { sync.Mutex *PortsStorage *SitesStorage *TenantsStorage *VNetStorage *BGPStorage *L4LBStorage *SubnetsStorage *HWsStorage *LinksStorage *NATStorage *InventoryProfileStorage }
Storage .
func (*Storage) DownloadWithInterval ¶
func (s *Storage) DownloadWithInterval()
DownloadWithInterval .
type SubnetsStorage ¶
SubnetsStorage .
func (*SubnetsStorage) FindByID ¶
func (p *SubnetsStorage) FindByID(id int) (*ipam.IPAM, bool)
FindByID .
func (*SubnetsStorage) FindByName ¶
func (p *SubnetsStorage) FindByName(name string) (*ipam.IPAM, bool)
FindByName .
type TenantsStorage ¶
TenantsStorage .
func (*TenantsStorage) FindByID ¶
func (p *TenantsStorage) FindByID(id int) (*tenant.Tenant, bool)
FindByID .
func (*TenantsStorage) FindByName ¶
func (p *TenantsStorage) FindByName(name string) (*tenant.Tenant, bool)
FindByName .
type VNetStorage ¶
VNetStorage .
func (*VNetStorage) FindByGateway ¶ added in v0.4.3
func (p *VNetStorage) FindByGateway(gateway string) (*vnet.VNet, bool)
FindByGateway .
func (*VNetStorage) FindByName ¶
func (p *VNetStorage) FindByName(name string) (*vnet.VNet, bool)
FindByName .