Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerEvent ¶
type DockerEvent struct {
EventType DockerEventType
DockerReqObject interface{}
DockerRespObjectChan chan *DockerRespObject
}
DockerEvent struct contains data and response to communicate to Docker client
type DockerEventType ¶
type DockerEventType string
DockerEventType defines DockerEvents
const ( DockerContainerListEvent DockerEventType = "CONTAINERLIST" DockerCheckNetworkListEvent DockerEventType = "NETWORKLIST" DockerGetOptsAllNetworksEvent DockerEventType = "CONTAINERINSPECT" DockerNetworkIDInspectEvent DockerEventType = "NETWORKINSPECT" DockerNetworkConnectEvent DockerEventType = "NETWORKCONNECT" DockerPoolIDNetworkOptsEvent DockerEventType = "NETWORKOPTS" )
Docker Event definitions
type DockerRespObject ¶
type DockerRespObject struct {
DockerData interface{}
Error error
}
DockerRespObject is a response object from docker event
func DockerChanRequest ¶
func DockerChanRequest(receiver chan *DockerEvent, event DockerEventType, params interface{}) *DockerRespObject
DockerChanRequest make a request on VRS Channel
type NuageLibNetworkChannels ¶
type NuageLibNetworkChannels struct {
Stop chan bool
VRSChannel chan *VRSEvent
VSDChannel chan *VSDEvent
DockerChannel chan *DockerEvent
}
NuageLibNetworkChannels struct contains the channels used for communication
type VRSEvent ¶
type VRSEvent struct {
EventType VRSEventType
VRSReqObject interface{}
VRSRespObjectChan chan *VRSRespObject
}
VRSEvent struct contains data and response to communicate to VRS client
type VRSEventType ¶
type VRSEventType string
VRSEventType defines VRS events
const ( VRSAddEvent VRSEventType = "ADD" VRSUpdateEvent VRSEventType = "UPDATE" VRSDeleteEvent VRSEventType = "DELETE" VRSAuditEvent VRSEventType = "AUDIT" VRSPoolIDNetworkOptsEvent VRSEventType = "NETWORKOPTS" )
VRS event definitions
type VRSRespObject ¶
type VRSRespObject struct {
VRSData interface{}
Error error
}
VRSRespObject is a response object from VRS event
func VRSChanRequest ¶
func VRSChanRequest(receiver chan *VRSEvent, event VRSEventType, params interface{}) *VRSRespObject
VRSChanRequest make a request on VRS Channel
type VSDEvent ¶
type VSDEvent struct {
EventType VSDEventType
VSDReqObject interface{}
VSDRespObjectChan chan *VSDRespObject
}
VSDEvent struct contains data and response to communicate to VSD client
type VSDEventType ¶
type VSDEventType string
VSDEventType defines VSD events
const ( VSDAddObjectsEvent VSDEventType = "ADDVSDOBJECTS" VSDDeleteObjectsEvent VSDEventType = "DELVSDOBJECTS" VSDAddContainerEvent VSDEventType = "ADDCONTAINER" VSDUpdateContainerEvent VSDEventType = "UPDATECONTAINER" VSDDeleteContainerEvent VSDEventType = "DELETECONTAINER" VSDUpdateVportEvent VSDEventType = "UPDATEVPORT" VSDAuditContainersEvent VSDEventType = "AUDITVSDCONTAINERS" VSDGetContainerInfoEvent VSDEventType = "GETCONTAINERMAC" VSDAuditEvent VSDEventType = "AUDIT" )
VSD Event definitions
type VSDRespObject ¶
type VSDRespObject struct {
VSDData interface{}
Error error
}
VSDRespObject is a response object from VSD event
func VSDChanRequest ¶
func VSDChanRequest(receiver chan *VSDEvent, event VSDEventType, params interface{}) *VSDRespObject
VSDChanRequest make a request on VSD Channel