Documentation ¶
Index ¶
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 DeleteDockNet ¶
DeleteDockNet deletes a network in docker daemon
func GetDocknetName ¶
GetDocknetName trims default tenant from network 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 (*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.