Documentation ¶
Overview ¶
Package ovsutils is a generated GoMock package.
Package ovsutils is a generated GoMock package.
Index ¶
- type API
- type Client
- func (c *Client) AddPort(ctx context.Context, bridgeName, portName, ifaceType string) error
- func (c *Client) DelPort(ctx context.Context, bridgeName, portName string) error
- func (c *Client) IsIfaceInBr(ctx context.Context, bridgeName, portName string) (bool, error)
- func (c *Client) SetIfaceExternalIDs(ctx context.Context, name string, externalIDs map[string]string) error
- func (c *Client) SetIfaceOptions(ctx context.Context, name string, options map[string]string) error
- func (c *Client) SetPortExternalIDs(ctx context.Context, name string, externalIDs map[string]string) error
- type MockAPI
- func (m *MockAPI) AddPort(ctx context.Context, bridgeName, portName, ifaceType string) error
- func (m *MockAPI) Cache() *cache.TableCache
- func (m *MockAPI) Close()
- func (m *MockAPI) Connect(arg0 context.Context) error
- func (m *MockAPI) Connected() bool
- func (m *MockAPI) Create(arg0 ...model.Model) ([]ovsdb.Operation, error)
- func (m *MockAPI) CurrentEndpoint() string
- func (m *MockAPI) DelPort(ctx context.Context, bridgeName, portName string) error
- func (m *MockAPI) Disconnect()
- func (m *MockAPI) DisconnectNotify() chan struct{}
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) Echo(arg0 context.Context) error
- func (m *MockAPI) Get(arg0 context.Context, arg1 model.Model) error
- func (m *MockAPI) IsIfaceInBr(ctx context.Context, bridgeName, portName string) (bool, error)
- func (m *MockAPI) List(ctx context.Context, result any) error
- func (m *MockAPI) Monitor(arg0 context.Context, arg1 *client.Monitor) (client.MonitorCookie, error)
- func (m *MockAPI) MonitorAll(arg0 context.Context) (client.MonitorCookie, error)
- func (m *MockAPI) MonitorCancel(ctx context.Context, cookie client.MonitorCookie) error
- func (m *MockAPI) NewMonitor(arg0 ...client.MonitorOption) *client.Monitor
- func (m *MockAPI) Schema() ovsdb.DatabaseSchema
- func (m *MockAPI) SetIfaceExternalIDs(ctx context.Context, name string, externalIDs map[string]string) error
- func (m *MockAPI) SetIfaceOptions(ctx context.Context, name string, options map[string]string) error
- func (m *MockAPI) SetOption(arg0 client.Option) error
- func (m *MockAPI) SetPortExternalIDs(ctx context.Context, name string, externalIDs map[string]string) error
- func (m *MockAPI) Transact(arg0 context.Context, arg1 ...ovsdb.Operation) ([]ovsdb.OperationResult, error)
- func (m *MockAPI) UpdateEndpoints(arg0 []string)
- func (m *MockAPI) Where(arg0 ...model.Model) client.ConditionalAPI
- func (m *MockAPI) WhereAll(arg0 model.Model, arg1 ...model.Condition) client.ConditionalAPI
- func (m *MockAPI) WhereAny(arg0 model.Model, arg1 ...model.Condition) client.ConditionalAPI
- func (m *MockAPI) WhereCache(predicate any) client.ConditionalAPI
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) AddPort(ctx, bridgeName, portName, ifaceType any) *gomock.Call
- func (mr *MockAPIMockRecorder) Cache() *gomock.Call
- func (mr *MockAPIMockRecorder) Close() *gomock.Call
- func (mr *MockAPIMockRecorder) Connect(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) Connected() *gomock.Call
- func (mr *MockAPIMockRecorder) Create(arg0 ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) CurrentEndpoint() *gomock.Call
- func (mr *MockAPIMockRecorder) DelPort(ctx, bridgeName, portName any) *gomock.Call
- func (mr *MockAPIMockRecorder) Disconnect() *gomock.Call
- func (mr *MockAPIMockRecorder) DisconnectNotify() *gomock.Call
- func (mr *MockAPIMockRecorder) Echo(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) Get(arg0, arg1 any) *gomock.Call
- func (mr *MockAPIMockRecorder) IsIfaceInBr(ctx, bridgeName, portName any) *gomock.Call
- func (mr *MockAPIMockRecorder) List(ctx, result any) *gomock.Call
- func (mr *MockAPIMockRecorder) Monitor(arg0, arg1 any) *gomock.Call
- func (mr *MockAPIMockRecorder) MonitorAll(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) MonitorCancel(ctx, cookie any) *gomock.Call
- func (mr *MockAPIMockRecorder) NewMonitor(arg0 ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) Schema() *gomock.Call
- func (mr *MockAPIMockRecorder) SetIfaceExternalIDs(ctx, name, externalIDs any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetIfaceOptions(ctx, name, options any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetOption(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetPortExternalIDs(ctx, name, externalIDs any) *gomock.Call
- func (mr *MockAPIMockRecorder) Transact(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) UpdateEndpoints(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) Where(arg0 ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) WhereAll(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) WhereAny(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) WhereCache(predicate any) *gomock.Call
- type MockConditionalAPI
- func (m *MockConditionalAPI) Delete() ([]ovsdb.Operation, error)
- func (m *MockConditionalAPI) EXPECT() *MockConditionalAPIMockRecorder
- func (m *MockConditionalAPI) List(ctx context.Context, result any) error
- func (m *MockConditionalAPI) Mutate(arg0 model.Model, arg1 ...model.Mutation) ([]ovsdb.Operation, error)
- func (m *MockConditionalAPI) Update(arg0 model.Model, arg1 ...any) ([]ovsdb.Operation, error)
- func (m *MockConditionalAPI) Wait(arg0 ovsdb.WaitCondition, arg1 *int, arg2 model.Model, arg3 ...any) ([]ovsdb.Operation, error)
- type MockConditionalAPIMockRecorder
- func (mr *MockConditionalAPIMockRecorder) Delete() *gomock.Call
- func (mr *MockConditionalAPIMockRecorder) List(ctx, result any) *gomock.Call
- func (mr *MockConditionalAPIMockRecorder) Mutate(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockConditionalAPIMockRecorder) Update(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockConditionalAPIMockRecorder) Wait(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call
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 ¶
func (*Client) AddPort ¶
AddPort performing 3 operations Adding interface, adding port, attaching port to a bridge
func (*Client) IsIfaceInBr ¶
func (*Client) SetIfaceExternalIDs ¶
func (*Client) SetIfaceOptions ¶
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) CurrentEndpoint ¶
CurrentEndpoint 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) IsIfaceInBr ¶
IsIfaceInBr mocks base method.
func (*MockAPI) MonitorAll ¶
MonitorAll mocks base method.
func (*MockAPI) MonitorCancel ¶
MonitorCancel mocks base method.
func (*MockAPI) NewMonitor ¶
func (m *MockAPI) NewMonitor(arg0 ...client.MonitorOption) *client.Monitor
NewMonitor 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) 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 ¶
UpdateEndpoints mocks base method.
func (*MockAPI) Where ¶
func (m *MockAPI) Where(arg0 ...model.Model) client.ConditionalAPI
Where 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 ¶
func (m *MockConditionalAPI) EXPECT() *MockConditionalAPIMockRecorder
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.
type MockConditionalAPIMockRecorder ¶
type MockConditionalAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockConditionalAPIMockRecorder is the mock recorder for MockConditionalAPI.
func (*MockConditionalAPIMockRecorder) Delete ¶
func (mr *MockConditionalAPIMockRecorder) Delete() *gomock.Call
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.