netrisstorage

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 NewBGPStorage added in v1.1.0

func NewBGPStorage() *BGPStorage

NewBGPStorage .

func (*BGPStorage) Download

func (p *BGPStorage) Download() error

Download .

func (*BGPStorage) FindByID

func (p *BGPStorage) FindByID(id int) (*bgp.EBGP, bool)

FindByID .

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) FindPort

func (p *BGPStorage) FindPort(siteID int, portName string) (*bgp.EBGPPort, bool)

FindPort . Example: FindPort(swp1@switch1)

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 .

func (*BGPStorage) GetAll

func (p *BGPStorage) GetAll() []*bgp.EBGP

GetAll .

type HWsStorage added in v0.4.3

type HWsStorage struct {
	sync.Mutex
	HWs []*inventory.HW
}

HWsStorage .

func NewHWsStorage added in v0.4.3

func NewHWsStorage() *HWsStorage

NewHWsStorage .

func (*HWsStorage) Download added in v0.4.3

func (p *HWsStorage) Download() error

Download .

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 .

func (*HWsStorage) GetAll added in v0.4.3

func (p *HWsStorage) GetAll() []*inventory.HW

GetAll .

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

FindByID .

func (*InventoryProfileStorage) FindByName added in v1.4.0

FindByName .

func (*InventoryProfileStorage) GetAll added in v1.4.0

GetAll .

type L4LBStorage

type L4LBStorage struct {
	sync.Mutex
	L4LBs []*l4lb.LoadBalancer
}

L4LBStorage .

func NewL4LBStorage

func NewL4LBStorage() *L4LBStorage

NewL4LBStorage .

func (*L4LBStorage) Download

func (p *L4LBStorage) Download() error

Download .

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 .

func (*L4LBStorage) GetAll

func (p *L4LBStorage) GetAll() []*l4lb.LoadBalancer

GetAll .

type LinksStorage added in v1.2.0

type LinksStorage struct {
	sync.Mutex
	Links []*link.Link
}

LinksStorage .

func NewLinksStorage added in v1.2.0

func NewLinksStorage() *LinksStorage

NewLinksStorage .

func (*LinksStorage) Download added in v1.2.0

func (p *LinksStorage) Download() error

Download .

func (*LinksStorage) Find added in v1.2.0

func (p *LinksStorage) Find(local, remote int) (*link.Link, bool)

Find .

func (*LinksStorage) GetAll added in v1.2.0

func (p *LinksStorage) GetAll() []*link.Link

GetAll .

type NATStorage added in v1.3.0

type NATStorage struct {
	sync.Mutex
	NAT []*nat.NAT
}

NATStorage .

func NewNATStorage added in v1.3.0

func NewNATStorage() *NATStorage

NewNATStorage .

func (*NATStorage) Download added in v1.3.0

func (p *NATStorage) Download() error

Download .

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 .

func (*NATStorage) GetAll added in v1.3.0

func (p *NATStorage) GetAll() []*nat.NAT

GetAll .

type PortsStorage

type PortsStorage struct {
	sync.Mutex
	Ports []*port.Port
}

PortsStorage .

func NewPortStorage

func NewPortStorage() *PortsStorage

NewPortStorage .

func (*PortsStorage) Download

func (p *PortsStorage) Download() error

Download .

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 .

func (*PortsStorage) GetAll

func (p *PortsStorage) GetAll() []*port.Port

GetAll .

type SitesStorage

type SitesStorage struct {
	sync.Mutex
	Sites []*site.Site
}

SitesStorage .

func NewSitesStorage

func NewSitesStorage() *SitesStorage

NewSitesStorage .

func (*SitesStorage) Download

func (p *SitesStorage) Download() error

Download .

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 .

func (*SitesStorage) GetAll

func (p *SitesStorage) GetAll() []*site.Site

GetAll .

type Storage

Storage .

func NewStorage

func NewStorage(cred *api.Clientset) *Storage

NewStorage .

func (*Storage) Download

func (s *Storage) Download() error

Download .

func (*Storage) DownloadWithInterval

func (s *Storage) DownloadWithInterval()

DownloadWithInterval .

type SubnetsStorage

type SubnetsStorage struct {
	sync.Mutex
	Subnets []*ipam.IPAM
}

SubnetsStorage .

func NewSubnetsStorage

func NewSubnetsStorage() *SubnetsStorage

NewSubnetsStorage .

func (*SubnetsStorage) Download

func (p *SubnetsStorage) Download() error

Download .

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 .

func (*SubnetsStorage) GetAll

func (p *SubnetsStorage) GetAll() []ipam.IPAM

GetAll .

type TenantsStorage

type TenantsStorage struct {
	sync.Mutex
	Tenants []*tenant.Tenant
}

TenantsStorage .

func NewTenantsStorage

func NewTenantsStorage() *TenantsStorage

NewTenantsStorage .

func (*TenantsStorage) Download

func (p *TenantsStorage) Download() error

Download .

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 .

func (*TenantsStorage) GetAll

func (p *TenantsStorage) GetAll() []*tenant.Tenant

GetAll .

type VNetStorage

type VNetStorage struct {
	sync.Mutex
	VNets []*vnet.VNet
}

VNetStorage .

func NewVNetStorage

func NewVNetStorage() *VNetStorage

NewVNetStorage .

func (*VNetStorage) Download

func (p *VNetStorage) Download() error

Download .

func (*VNetStorage) FindByGateway added in v0.4.3

func (p *VNetStorage) FindByGateway(gateway string) (*vnet.VNet, bool)

FindByGateway .

func (*VNetStorage) FindByID

func (p *VNetStorage) FindByID(id int) (*vnet.VNet, bool)

FindByID .

func (*VNetStorage) FindByName

func (p *VNetStorage) FindByName(name string) (*vnet.VNet, bool)

FindByName .

func (*VNetStorage) GetAll

func (p *VNetStorage) GetAll() []vnet.VNet

GetAll .

Jump to

Keyboard shortcuts

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