ovsutils

package
v0.0.0-...-1f6a80c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package ovsutils is a generated GoMock package.

Package ovsutils is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	ovsclient.Client
	AddPort(ctx context.Context, bridgeName, portName, ifaceType string) error
	DelPort(ctx context.Context, bridgeName, portName string) error
	SetIfaceExternalIDs(ctx context.Context, name string, externalIDs map[string]string) error
	SetIfaceOptions(ctx context.Context, name string, options map[string]string) error
	IsIfaceInBr(ctx context.Context, bridgeName, portName string) (bool, error)
	SetPortExternalIDs(ctx context.Context, name string, externalIDs map[string]string) error
}

type Client

type Client struct {
	ovsclient.Client
}

func (*Client) AddPort

func (c *Client) AddPort(ctx context.Context, bridgeName, portName, ifaceType string) error

AddPort performing 3 operations Adding interface, adding port, attaching port to a bridge

func (*Client) DelPort

func (c *Client) DelPort(ctx context.Context, bridgeName, portName string) error

func (*Client) IsIfaceInBr

func (c *Client) IsIfaceInBr(ctx context.Context, bridgeName, portName string) (bool, error)

func (*Client) SetIfaceExternalIDs

func (c *Client) SetIfaceExternalIDs(ctx context.Context, name string, externalIDs map[string]string) error

func (*Client) SetIfaceOptions

func (c *Client) SetIfaceOptions(ctx context.Context, name string, options map[string]string) error

func (*Client) SetPortExternalIDs

func (c *Client) SetPortExternalIDs(ctx context.Context, name string, externalIDs map[string]string) error

type MockAPI

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

MockAPI is a mock of API interface.

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) AddPort

func (m *MockAPI) AddPort(ctx context.Context, bridgeName, portName, ifaceType string) error

AddPort mocks base method.

func (*MockAPI) Cache

func (m *MockAPI) Cache() *cache.TableCache

Cache mocks base method.

func (*MockAPI) Close

func (m *MockAPI) Close()

Close mocks base method.

func (*MockAPI) Connect

func (m *MockAPI) Connect(arg0 context.Context) error

Connect mocks base method.

func (*MockAPI) Connected

func (m *MockAPI) Connected() bool

Connected mocks base method.

func (*MockAPI) Create

func (m *MockAPI) Create(arg0 ...model.Model) ([]ovsdb.Operation, error)

Create mocks base method.

func (*MockAPI) CurrentEndpoint

func (m *MockAPI) CurrentEndpoint() string

CurrentEndpoint mocks base method.

func (*MockAPI) DelPort

func (m *MockAPI) DelPort(ctx context.Context, bridgeName, portName string) error

DelPort mocks base method.

func (*MockAPI) Disconnect

func (m *MockAPI) Disconnect()

Disconnect mocks base method.

func (*MockAPI) DisconnectNotify

func (m *MockAPI) DisconnectNotify() chan struct{}

DisconnectNotify mocks base method.

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

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

func (*MockAPI) Echo

func (m *MockAPI) Echo(arg0 context.Context) error

Echo mocks base method.

func (*MockAPI) Get

func (m *MockAPI) Get(arg0 context.Context, arg1 model.Model) error

Get mocks base method.

func (*MockAPI) IsIfaceInBr

func (m *MockAPI) IsIfaceInBr(ctx context.Context, bridgeName, portName string) (bool, error)

IsIfaceInBr mocks base method.

func (*MockAPI) List

func (m *MockAPI) List(ctx context.Context, result any) error

List mocks base method.

func (*MockAPI) Monitor

func (m *MockAPI) Monitor(arg0 context.Context, arg1 *client.Monitor) (client.MonitorCookie, error)

Monitor mocks base method.

func (*MockAPI) MonitorAll

func (m *MockAPI) MonitorAll(arg0 context.Context) (client.MonitorCookie, error)

MonitorAll mocks base method.

func (*MockAPI) MonitorCancel

func (m *MockAPI) MonitorCancel(ctx context.Context, cookie client.MonitorCookie) error

MonitorCancel mocks base method.

func (*MockAPI) NewMonitor

func (m *MockAPI) NewMonitor(arg0 ...client.MonitorOption) *client.Monitor

NewMonitor mocks base method.

func (*MockAPI) Schema

func (m *MockAPI) Schema() ovsdb.DatabaseSchema

Schema mocks base method.

func (*MockAPI) SetIfaceExternalIDs

func (m *MockAPI) SetIfaceExternalIDs(ctx context.Context, name string, externalIDs map[string]string) error

SetIfaceExternalIDs mocks base method.

func (*MockAPI) SetIfaceOptions

func (m *MockAPI) SetIfaceOptions(ctx context.Context, name string, options map[string]string) error

SetIfaceOptions mocks base method.

func (*MockAPI) SetOption

func (m *MockAPI) SetOption(arg0 client.Option) error

SetOption mocks base method.

func (*MockAPI) SetPortExternalIDs

func (m *MockAPI) SetPortExternalIDs(ctx context.Context, name string, externalIDs map[string]string) error

SetPortExternalIDs mocks base method.

func (*MockAPI) Transact

func (m *MockAPI) Transact(arg0 context.Context, arg1 ...ovsdb.Operation) ([]ovsdb.OperationResult, error)

Transact mocks base method.

func (*MockAPI) UpdateEndpoints

func (m *MockAPI) UpdateEndpoints(arg0 []string)

UpdateEndpoints mocks base method.

func (*MockAPI) Where

func (m *MockAPI) Where(arg0 ...model.Model) client.ConditionalAPI

Where mocks base method.

func (*MockAPI) WhereAll

func (m *MockAPI) WhereAll(arg0 model.Model, arg1 ...model.Condition) client.ConditionalAPI

WhereAll mocks base method.

func (*MockAPI) WhereAny

func (m *MockAPI) WhereAny(arg0 model.Model, arg1 ...model.Condition) client.ConditionalAPI

WhereAny mocks base method.

func (*MockAPI) WhereCache

func (m *MockAPI) WhereCache(predicate any) client.ConditionalAPI

WhereCache mocks base method.

type MockAPIMockRecorder

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

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) AddPort

func (mr *MockAPIMockRecorder) AddPort(ctx, bridgeName, portName, ifaceType any) *gomock.Call

AddPort indicates an expected call of AddPort.

func (*MockAPIMockRecorder) Cache

func (mr *MockAPIMockRecorder) Cache() *gomock.Call

Cache indicates an expected call of Cache.

func (*MockAPIMockRecorder) Close

func (mr *MockAPIMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockAPIMockRecorder) Connect

func (mr *MockAPIMockRecorder) Connect(arg0 any) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockAPIMockRecorder) Connected

func (mr *MockAPIMockRecorder) Connected() *gomock.Call

Connected indicates an expected call of Connected.

func (*MockAPIMockRecorder) Create

func (mr *MockAPIMockRecorder) Create(arg0 ...any) *gomock.Call

Create indicates an expected call of Create.

func (*MockAPIMockRecorder) CurrentEndpoint

func (mr *MockAPIMockRecorder) CurrentEndpoint() *gomock.Call

CurrentEndpoint indicates an expected call of CurrentEndpoint.

func (*MockAPIMockRecorder) DelPort

func (mr *MockAPIMockRecorder) DelPort(ctx, bridgeName, portName any) *gomock.Call

DelPort indicates an expected call of DelPort.

func (*MockAPIMockRecorder) Disconnect

func (mr *MockAPIMockRecorder) Disconnect() *gomock.Call

Disconnect indicates an expected call of Disconnect.

func (*MockAPIMockRecorder) DisconnectNotify

func (mr *MockAPIMockRecorder) DisconnectNotify() *gomock.Call

DisconnectNotify indicates an expected call of DisconnectNotify.

func (*MockAPIMockRecorder) Echo

func (mr *MockAPIMockRecorder) Echo(arg0 any) *gomock.Call

Echo indicates an expected call of Echo.

func (*MockAPIMockRecorder) Get

func (mr *MockAPIMockRecorder) Get(arg0, arg1 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockAPIMockRecorder) IsIfaceInBr

func (mr *MockAPIMockRecorder) IsIfaceInBr(ctx, bridgeName, portName any) *gomock.Call

IsIfaceInBr indicates an expected call of IsIfaceInBr.

func (*MockAPIMockRecorder) List

func (mr *MockAPIMockRecorder) List(ctx, result any) *gomock.Call

List indicates an expected call of List.

func (*MockAPIMockRecorder) Monitor

func (mr *MockAPIMockRecorder) Monitor(arg0, arg1 any) *gomock.Call

Monitor indicates an expected call of Monitor.

func (*MockAPIMockRecorder) MonitorAll

func (mr *MockAPIMockRecorder) MonitorAll(arg0 any) *gomock.Call

MonitorAll indicates an expected call of MonitorAll.

func (*MockAPIMockRecorder) MonitorCancel

func (mr *MockAPIMockRecorder) MonitorCancel(ctx, cookie any) *gomock.Call

MonitorCancel indicates an expected call of MonitorCancel.

func (*MockAPIMockRecorder) NewMonitor

func (mr *MockAPIMockRecorder) NewMonitor(arg0 ...any) *gomock.Call

NewMonitor indicates an expected call of NewMonitor.

func (*MockAPIMockRecorder) Schema

func (mr *MockAPIMockRecorder) Schema() *gomock.Call

Schema indicates an expected call of Schema.

func (*MockAPIMockRecorder) SetIfaceExternalIDs

func (mr *MockAPIMockRecorder) SetIfaceExternalIDs(ctx, name, externalIDs any) *gomock.Call

SetIfaceExternalIDs indicates an expected call of SetIfaceExternalIDs.

func (*MockAPIMockRecorder) SetIfaceOptions

func (mr *MockAPIMockRecorder) SetIfaceOptions(ctx, name, options any) *gomock.Call

SetIfaceOptions indicates an expected call of SetIfaceOptions.

func (*MockAPIMockRecorder) SetOption

func (mr *MockAPIMockRecorder) SetOption(arg0 any) *gomock.Call

SetOption indicates an expected call of SetOption.

func (*MockAPIMockRecorder) SetPortExternalIDs

func (mr *MockAPIMockRecorder) SetPortExternalIDs(ctx, name, externalIDs any) *gomock.Call

SetPortExternalIDs indicates an expected call of SetPortExternalIDs.

func (*MockAPIMockRecorder) Transact

func (mr *MockAPIMockRecorder) Transact(arg0 any, arg1 ...any) *gomock.Call

Transact indicates an expected call of Transact.

func (*MockAPIMockRecorder) UpdateEndpoints

func (mr *MockAPIMockRecorder) UpdateEndpoints(arg0 any) *gomock.Call

UpdateEndpoints indicates an expected call of UpdateEndpoints.

func (*MockAPIMockRecorder) Where

func (mr *MockAPIMockRecorder) Where(arg0 ...any) *gomock.Call

Where indicates an expected call of Where.

func (*MockAPIMockRecorder) WhereAll

func (mr *MockAPIMockRecorder) WhereAll(arg0 any, arg1 ...any) *gomock.Call

WhereAll indicates an expected call of WhereAll.

func (*MockAPIMockRecorder) WhereAny

func (mr *MockAPIMockRecorder) WhereAny(arg0 any, arg1 ...any) *gomock.Call

WhereAny indicates an expected call of WhereAny.

func (*MockAPIMockRecorder) WhereCache

func (mr *MockAPIMockRecorder) WhereCache(predicate any) *gomock.Call

WhereCache indicates an expected call of WhereCache.

type MockConditionalAPI

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

MockConditionalAPI is a mock of ConditionalAPI interface.

func NewMockConditionalAPI

func NewMockConditionalAPI(ctrl *gomock.Controller) *MockConditionalAPI

NewMockConditionalAPI creates a new mock instance.

func (*MockConditionalAPI) Delete

func (m *MockConditionalAPI) Delete() ([]ovsdb.Operation, error)

Delete mocks base method.

func (*MockConditionalAPI) EXPECT

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

func (*MockConditionalAPI) List

func (m *MockConditionalAPI) List(ctx context.Context, result any) error

List mocks base method.

func (*MockConditionalAPI) Mutate

func (m *MockConditionalAPI) Mutate(arg0 model.Model, arg1 ...model.Mutation) ([]ovsdb.Operation, error)

Mutate mocks base method.

func (*MockConditionalAPI) Update

func (m *MockConditionalAPI) Update(arg0 model.Model, arg1 ...any) ([]ovsdb.Operation, error)

Update mocks base method.

func (*MockConditionalAPI) Wait

func (m *MockConditionalAPI) Wait(arg0 ovsdb.WaitCondition, arg1 *int, arg2 model.Model, arg3 ...any) ([]ovsdb.Operation, error)

Wait mocks base method.

type MockConditionalAPIMockRecorder

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

MockConditionalAPIMockRecorder is the mock recorder for MockConditionalAPI.

func (*MockConditionalAPIMockRecorder) Delete

Delete indicates an expected call of Delete.

func (*MockConditionalAPIMockRecorder) List

func (mr *MockConditionalAPIMockRecorder) List(ctx, result any) *gomock.Call

List indicates an expected call of List.

func (*MockConditionalAPIMockRecorder) Mutate

func (mr *MockConditionalAPIMockRecorder) Mutate(arg0 any, arg1 ...any) *gomock.Call

Mutate indicates an expected call of Mutate.

func (*MockConditionalAPIMockRecorder) Update

func (mr *MockConditionalAPIMockRecorder) Update(arg0 any, arg1 ...any) *gomock.Call

Update indicates an expected call of Update.

func (*MockConditionalAPIMockRecorder) Wait

func (mr *MockConditionalAPIMockRecorder) Wait(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call

Wait indicates an expected call of Wait.

Jump to

Keyboard shortcuts

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