route

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package route is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNsxtBroker

type MockNsxtBroker struct {
	// contains filtered or unexported fields
}

MockNsxtBroker is a mock of NsxtBroker interface

func NewMockNsxtBroker

func NewMockNsxtBroker(ctrl *gomock.Controller) *MockNsxtBroker

NewMockNsxtBroker creates a new mock instance

func (*MockNsxtBroker) CreateStaticRoute

func (m *MockNsxtBroker) CreateStaticRoute(routerPath, routeID string, route model.StaticRoutes) error

CreateStaticRoute mocks base method

func (*MockNsxtBroker) DeleteStaticRoute

func (m *MockNsxtBroker) DeleteStaticRoute(routerPath, routeID string) error

DeleteStaticRoute mocks base method

func (*MockNsxtBroker) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockNsxtBroker) ListRealizedEntities

func (m *MockNsxtBroker) ListRealizedEntities(path string) (model.GenericPolicyRealizedResourceListResult, error)

ListRealizedEntities mocks base method

func (*MockNsxtBroker) QueryEntities

func (m *MockNsxtBroker) QueryEntities(queryParam string) (model.SearchResponse, error)

QueryEntities mocks base method

type MockNsxtBrokerMockRecorder

type MockNsxtBrokerMockRecorder struct {
	// contains filtered or unexported fields
}

MockNsxtBrokerMockRecorder is the mock recorder for MockNsxtBroker

func (*MockNsxtBrokerMockRecorder) CreateStaticRoute

func (mr *MockNsxtBrokerMockRecorder) CreateStaticRoute(routerPath, routeID, route interface{}) *gomock.Call

CreateStaticRoute indicates an expected call of CreateStaticRoute

func (*MockNsxtBrokerMockRecorder) DeleteStaticRoute

func (mr *MockNsxtBrokerMockRecorder) DeleteStaticRoute(routerPath, routeID interface{}) *gomock.Call

DeleteStaticRoute indicates an expected call of DeleteStaticRoute

func (*MockNsxtBrokerMockRecorder) ListRealizedEntities

func (mr *MockNsxtBrokerMockRecorder) ListRealizedEntities(path interface{}) *gomock.Call

ListRealizedEntities indicates an expected call of ListRealizedEntities

func (*MockNsxtBrokerMockRecorder) QueryEntities

func (mr *MockNsxtBrokerMockRecorder) QueryEntities(queryParam interface{}) *gomock.Call

QueryEntities indicates an expected call of QueryEntities

type NsxtBroker

type NsxtBroker interface {
	QueryEntities(queryParam string) (model.SearchResponse, error)
	CreateStaticRoute(routerPath string, staticRouteID string, staticRoute model.StaticRoutes) error
	DeleteStaticRoute(routerPath string, staticRouteID string) error
	ListRealizedEntities(path string) (model.GenericPolicyRealizedResourceListResult, error)
}

NsxtBroker is an internal interface to access nsxt backend

func NewNsxtBroker

func NewNsxtBroker(connector client.Connector) (NsxtBroker, error)

NewNsxtBroker creates a new NsxtBroker to the NSXT API

type RoutesProvider

type RoutesProvider interface {
	cloudprovider.Routes
	AddNode(*v1.Node)
	DeleteNode(*v1.Node)
}

RoutesProvider is the interface for route functionality

func NewRouteProvider

func NewRouteProvider(cfg *config.Config, connector client.Connector) (RoutesProvider, error)

NewRouteProvider creates a new RouteProvider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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