Documentation ¶
Index ¶
- func CreateDockNet(tenantName, networkName, serviceName string, nwCfg *mastercfg.CfgNetworkState) error
- func CreateDockNetState(tenantName, networkName, serviceName, docknetID string) error
- func DeleteDockNet(tenantName, networkName, serviceName string) error
- func DeleteDockNetState(tenantName, networkName, serviceName string) error
- func GetDocknetName(tenantName, networkName, epgName string) string
- func UpdateDockerV2PluginName(netDriver string, ipamDriver string)
- type DnetOperState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDockNet ¶
func CreateDockNet(tenantName, networkName, serviceName string, nwCfg *mastercfg.CfgNetworkState) error
CreateDockNet Creates a network in docker daemon
func CreateDockNetState ¶
CreateDockNetState creates an entry in the docknet state store
func DeleteDockNet ¶
DeleteDockNet deletes a network in docker daemon
func DeleteDockNetState ¶
DeleteDockNetState delete the docknet entry from state store
func GetDocknetName ¶
GetDocknetName trims default tenant from network name
func UpdateDockerV2PluginName ¶
UpdateDockerV2PluginName update the docker v2 plugin name
Types ¶
type DnetOperState ¶
type DnetOperState struct { core.CommonState TenantName string `json:"tenantName"` NetworkName string `json:"networkName"` ServiceName string `json:"serviceName"` DocknetUUID string `json:"docknetUUID"` }
DnetOperState has oper state of docker network
func FindDocknetByUUID ¶
func FindDocknetByUUID(dnetID string) (*DnetOperState, error)
FindDocknetByUUID find the docknet by UUID
func GetDocknetState ¶
func GetDocknetState(tenantName, networkName, serviceName string) (*DnetOperState, error)
GetDocknetState gets the docknet entry from state store
func (*DnetOperState) Read ¶
func (s *DnetOperState) Read(id string) error
Read the state for a given identifier
func (*DnetOperState) ReadAll ¶
func (s *DnetOperState) ReadAll() ([]core.State, error)
ReadAll state and return the collection.
func (*DnetOperState) WatchAll ¶
func (s *DnetOperState) WatchAll(rsps chan core.WatchState) error
WatchAll state transitions and send them through the channel.
Click to show internal directories.
Click to hide internal directories.