Documentation ¶
Index ¶
- Constants
- type TestEvent
- type TestHandler
- func (t *TestHandler) GetName() string
- func (t *TestHandler) GetNetworkPlugins() []string
- func (t *TestHandler) Init() error
- func (t *TestHandler) LocalEndpointCreated(endpoint *v1.Endpoint) error
- func (t *TestHandler) LocalEndpointRemoved(endpoint *v1.Endpoint) error
- func (t *TestHandler) LocalEndpointUpdated(endpoint *v1.Endpoint) error
- func (t *TestHandler) NodeCreated(node *v12.Node) error
- func (t *TestHandler) NodeRemoved(node *v12.Node) error
- func (t *TestHandler) NodeUpdated(node *v12.Node) error
- func (t *TestHandler) RemoteEndpointCreated(endpoint *v1.Endpoint) error
- func (t *TestHandler) RemoteEndpointRemoved(endpoint *v1.Endpoint) error
- func (t *TestHandler) RemoteEndpointUpdated(endpoint *v1.Endpoint) error
- func (t *TestHandler) Stop(uninstall bool) error
- func (t *TestHandler) TransitionToGateway() error
- func (t *TestHandler) TransitionToNonGateway() error
Constants ¶
View Source
const ( EvTransitionToNonGateway = "TransitionToNonGateway" EvTransitionToGateway = "TransitionToGateway" EvLocalEndpointCreated = "LocalEndpointCreated" EvLocalEndpointUpdated = "LocalEndpointUpdated" EvLocalEndpointRemoved = "LocalEndpointRemoved" EvRemoteEndpointCreated = "RemoteEndpointCreated" EvRemoteEndpointUpdated = "RemoteEndpointUpdated" EvRemoteEndpointRemoved = "RemoteEndpointRemoved" EvNodeCreated = "NodeCreated" EvNodeUpdated = "NodeUpdated" EvNodeRemoved = "NodeRemoved" EvStop = "Stop" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestHandler ¶
type TestHandler struct { event.HandlerBase Name string NetworkPlugin string FailOnEvent error Events chan TestEvent Initialized bool }
func NewTestHandler ¶
func NewTestHandler(name, networkPlugin string, events chan TestEvent) *TestHandler
func (*TestHandler) GetName ¶
func (t *TestHandler) GetName() string
func (*TestHandler) GetNetworkPlugins ¶
func (t *TestHandler) GetNetworkPlugins() []string
func (*TestHandler) Init ¶
func (t *TestHandler) Init() error
func (*TestHandler) LocalEndpointCreated ¶
func (t *TestHandler) LocalEndpointCreated(endpoint *v1.Endpoint) error
func (*TestHandler) LocalEndpointRemoved ¶
func (t *TestHandler) LocalEndpointRemoved(endpoint *v1.Endpoint) error
func (*TestHandler) LocalEndpointUpdated ¶
func (t *TestHandler) LocalEndpointUpdated(endpoint *v1.Endpoint) error
func (*TestHandler) NodeCreated ¶
func (t *TestHandler) NodeCreated(node *v12.Node) error
func (*TestHandler) NodeRemoved ¶
func (t *TestHandler) NodeRemoved(node *v12.Node) error
func (*TestHandler) NodeUpdated ¶
func (t *TestHandler) NodeUpdated(node *v12.Node) error
func (*TestHandler) RemoteEndpointCreated ¶
func (t *TestHandler) RemoteEndpointCreated(endpoint *v1.Endpoint) error
func (*TestHandler) RemoteEndpointRemoved ¶
func (t *TestHandler) RemoteEndpointRemoved(endpoint *v1.Endpoint) error
func (*TestHandler) RemoteEndpointUpdated ¶
func (t *TestHandler) RemoteEndpointUpdated(endpoint *v1.Endpoint) error
func (*TestHandler) Stop ¶
func (t *TestHandler) Stop(uninstall bool) error
func (*TestHandler) TransitionToGateway ¶
func (t *TestHandler) TransitionToGateway() error
func (*TestHandler) TransitionToNonGateway ¶
func (t *TestHandler) TransitionToNonGateway() error
Click to show internal directories.
Click to hide internal directories.