Documentation
¶
Index ¶
- Constants
- func BuilderNetworkCacheKey(obj interface{}) (string, error)
- func NewSyncManager(stopCh <-chan struct{}) *cache.GroupManager
- type NetworksBuilder
- type NetworksDataBuilder
- func (b *NetworksDataBuilder) GetKey() string
- func (b *NetworksDataBuilder) GetNetworksData(ids []string) (networks []*SchedNetworkBuildResult)
- func (b *NetworksDataBuilder) Load(ids []string) (map[string]*SchedNetworkBuildResult, error)
- func (b *NetworksDataBuilder) LoadAll() (map[string]*SchedNetworkBuildResult, error)
- type SchedNetworkBuildResult
Constants ¶
View Source
const ( CacheKind = "SyncCache" //GlanceSyncCache = "Glance" NetworkSyncCache = "Network" NetworksDataSyncCache = "NetworkData" )
View Source
const ( HostNetworkDescBuilderCache = "HostNetworkDescBuilderCache" BaremetalNetworkDescBuilderCache = "BaremetalNetworkDescBuilderCache" )
View Source
const ( NetworksBuilderCache = "NetworksBuilderCache" GuestNiCount = "GuestNiCount" GroupNicCount = "GroupNicCount" BaremetalNicCount = "BaremetalNicCount" ReserveDipNicCount = "ReserveDipNicCount" )
Variables ¶
This section is empty.
Functions ¶
func BuilderNetworkCacheKey ¶
func NewSyncManager ¶
func NewSyncManager(stopCh <-chan struct{}) *cache.GroupManager
Types ¶
type NetworksBuilder ¶
type NetworksBuilder interface {
LoadAll() (map[string]*SchedNetworkBuildResult, error)
Load(ids []string) (map[string]*SchedNetworkBuildResult, error)
GetKey() string
GetNetworksData(ids []string) []*SchedNetworkBuildResult
}
type NetworksDataBuilder ¶
type NetworksDataBuilder struct {
GuestNicCount map[string]int
GroupNicCount map[string]int
BaremetalNicCount map[string]int
ReserveDipNicCount map[string]int
Wires map[string]string
// contains filtered or unexported fields
}
func NewNetworksBuilder ¶
func NewNetworksBuilder() *NetworksDataBuilder
func (*NetworksDataBuilder) GetKey ¶
func (b *NetworksDataBuilder) GetKey() string
func (*NetworksDataBuilder) GetNetworksData ¶
func (b *NetworksDataBuilder) GetNetworksData(ids []string) (networks []*SchedNetworkBuildResult)
func (*NetworksDataBuilder) Load ¶
func (b *NetworksDataBuilder) Load(ids []string) (map[string]*SchedNetworkBuildResult, error)
func (*NetworksDataBuilder) LoadAll ¶
func (b *NetworksDataBuilder) LoadAll() (map[string]*SchedNetworkBuildResult, error)
type SchedNetworkBuildResult ¶
type SchedNetworkBuildResult struct {
ID string `json:"id"`
Name string `json:"name"`
TenantID string `json:"tenant_id"`
IsPublic bool `json:"is_public"`
ServerType string `json:"server_type"`
Ports int `json:"ports"`
IsExit bool `json:"is_exit"`
Wire string `json:"wire_name"`
WireID string `json:"wire_id"`
}
Click to show internal directories.
Click to hide internal directories.