Documentation ¶
Index ¶
Constants ¶
View Source
const ( HostNetworkDescBuilderCache = "HostNetworkDescBuilderCache" BaremetalNetworkDescBuilderCache = "BaremetalNetworkDescBuilderCache" )
Variables ¶
This section is empty.
Functions ¶
func BuilderCacheKey ¶
func LoadNetworkDescBuilder ¶
func LoadNetworkDescBuilder() ([]interface{}, error)
Types ¶
type BaremetalNetworkDescBuilder ¶
type BaremetalNetworkDescBuilder struct {
// contains filtered or unexported fields
}
func NewBaremetalNetworkDescBuilder ¶
func NewBaremetalNetworkDescBuilder() *BaremetalNetworkDescBuilder
TODO:we should not new a object every time, the map memory leak, if want map was GCed, you must set b.data = nil and so on.
func (*BaremetalNetworkDescBuilder) GetKey ¶
func (b *BaremetalNetworkDescBuilder) GetKey() string
func (*BaremetalNetworkDescBuilder) GetNetworkDesc ¶
func (b *BaremetalNetworkDescBuilder) GetNetworkDesc(id string) ([]string, error)
type HostNetworkDescBuilder ¶
type HostNetworkDescBuilder struct {
// contains filtered or unexported fields
}
func NewHostNetworkDescBuilder ¶
func NewHostNetworkDescBuilder() *HostNetworkDescBuilder
func (*HostNetworkDescBuilder) GetKey ¶
func (b *HostNetworkDescBuilder) GetKey() string
func (*HostNetworkDescBuilder) GetNetworkDesc ¶
func (b *HostNetworkDescBuilder) GetNetworkDesc(id string) ([]string, error)
Click to show internal directories.
Click to hide internal directories.