testing

package
v0.9.0-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

© 2021 Red Hat, Inc. and others

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const EvLocalEndpointCreated = "LocalEndpointCreated"
View Source
const EvLocalEndpointRemoved = "LocalEndpointRemoved"
View Source
const EvLocalEndpointUpdated = "LocalEndpointUpdated"
View Source
const EvNodeCreated = "NodeCreated"
View Source
const EvNodeRemoved = "NodeRemoved"
View Source
const EvNodeUpdated = "NodeUpdated"
View Source
const EvRemoteEndpointCreated = "RemoteEndpointCreated"
View Source
const EvRemoteEndpointRemoved = "RemoteEndpointRemoved"
View Source
const EvRemoteEndpointUpdated = "RemoteEndpointUpdated"
View Source
const EvStop = "Stop"
View Source
const EvTransitionToGateway = "TransitionToGateway"
View Source
const EvTransitionToNonGateway = "TransitionToNonGateway"

Variables

This section is empty.

Functions

This section is empty.

Types

type TestEvent

type TestEvent struct {
	Name      string
	Handler   string
	Parameter interface{}
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL