mocks

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpSession

type OpSession struct {
	mock.Mock
}

OpSession is an autogenerated mock type for the OpSession type

func (*OpSession) Close

func (_m *OpSession) Close()

Close provides a mock function with given fields:

func (*OpSession) CloseSession

func (_m *OpSession) CloseSession() error

CloseSession provides a mock function with given fields:

func (*OpSession) CopyConfig

func (_m *OpSession) CopyConfig(source ops.CfgDsOpt, target ops.CfgDsOpt) error

CopyConfig provides a mock function with given fields: source, target

func (*OpSession) DeleteConfig

func (_m *OpSession) DeleteConfig(target ops.CfgDsOpt) error

DeleteConfig provides a mock function with given fields: target

func (*OpSession) Discard

func (_m *OpSession) Discard() error

Discard provides a mock function with given fields:

func (*OpSession) EditConfig

func (_m *OpSession) EditConfig(target string, config ops.ConfigOption, options ...ops.EditOption) error

EditConfig provides a mock function with given fields: target, config, options

func (*OpSession) EditConfigCfg

func (_m *OpSession) EditConfigCfg(target string, config interface{}, options ...ops.EditOption) error

EditConfigCfg provides a mock function with given fields: target, config, options

func (*OpSession) Execute

func (_m *OpSession) Execute(req common.Request) (*common.RPCReply, error)

Execute provides a mock function with given fields: req

func (*OpSession) ExecuteAsync

func (_m *OpSession) ExecuteAsync(req common.Request, rchan chan *common.RPCReply) error

ExecuteAsync provides a mock function with given fields: req, rchan

func (*OpSession) GetConfigSubtree

func (_m *OpSession) GetConfigSubtree(filter interface{}, source string, result interface{}) error

GetConfigSubtree provides a mock function with given fields: filter, source, result

func (*OpSession) GetConfigXpath

func (_m *OpSession) GetConfigXpath(xpath string, nslist []ops.Namespace, source string, result interface{}) error

GetConfigXpath provides a mock function with given fields: xpath, nslist, source, result

func (*OpSession) GetSchema

func (_m *OpSession) GetSchema(id string, version string, fmt string) (string, error)

GetSchema provides a mock function with given fields: id, version, fmt

func (*OpSession) GetSchemas

func (_m *OpSession) GetSchemas() ([]ops.Schema, error)

GetSchemas provides a mock function with given fields:

func (*OpSession) GetSubtree

func (_m *OpSession) GetSubtree(filter interface{}, result interface{}) error

GetSubtree provides a mock function with given fields: filter, result

func (*OpSession) GetXpath

func (_m *OpSession) GetXpath(xpath string, nslist []ops.Namespace, result interface{}) error

GetXpath provides a mock function with given fields: xpath, nslist, result

func (*OpSession) ID

func (_m *OpSession) ID() uint64

ID provides a mock function with given fields:

func (*OpSession) KillSession

func (_m *OpSession) KillSession(id uint64) error

KillSession provides a mock function with given fields: id

func (*OpSession) Lock

func (_m *OpSession) Lock(target string) error

Lock provides a mock function with given fields: target

func (*OpSession) ServerCapabilities

func (_m *OpSession) ServerCapabilities() []string

ServerCapabilities provides a mock function with given fields:

func (*OpSession) Subscribe

func (_m *OpSession) Subscribe(req common.Request, nchan chan *common.Notification) (*common.RPCReply, error)

Subscribe provides a mock function with given fields: req, nchan

func (*OpSession) Unlock

func (_m *OpSession) Unlock(target string) error

Unlock provides a mock function with given fields: target

Jump to

Keyboard shortcuts

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