mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigCallback

type ConfigCallback struct {
	mock.Mock
}

ConfigCallback is an autogenerated mock type for the ConfigCallback type

func (*ConfigCallback) Execute

func (_m *ConfigCallback) Execute(_a0 ygot.ValidatedGoStruct) error

Execute provides a mock function with given fields: _a0

type EscapeFunc

type EscapeFunc struct {
	mock.Mock
}

EscapeFunc is an autogenerated mock type for the EscapeFunc type

func (*EscapeFunc) Execute

func (_m *EscapeFunc) Execute(k string) string

Execute provides a mock function with given fields: k

type GNMIClient

type GNMIClient struct {
	mock.Mock
}

GNMIClient is an autogenerated mock type for the GNMIClient type

func (*GNMIClient) Capabilities

func (_m *GNMIClient) Capabilities(ctx context.Context, in *gnmi.CapabilityRequest, opts ...grpc.CallOption) (*gnmi.CapabilityResponse, error)

Capabilities provides a mock function with given fields: ctx, in, opts

func (*GNMIClient) Get

func (_m *GNMIClient) Get(ctx context.Context, in *gnmi.GetRequest, opts ...grpc.CallOption) (*gnmi.GetResponse, error)

Get provides a mock function with given fields: ctx, in, opts

func (*GNMIClient) Set

func (_m *GNMIClient) Set(ctx context.Context, in *gnmi.SetRequest, opts ...grpc.CallOption) (*gnmi.SetResponse, error)

Set provides a mock function with given fields: ctx, in, opts

func (*GNMIClient) Subscribe

func (_m *GNMIClient) Subscribe(ctx context.Context, opts ...grpc.CallOption) (gnmi.GNMI_SubscribeClient, error)

Subscribe provides a mock function with given fields: ctx, opts

type GNMIServer

type GNMIServer struct {
	mock.Mock
}

GNMIServer is an autogenerated mock type for the GNMIServer type

func (*GNMIServer) Capabilities

func (_m *GNMIServer) Capabilities(_a0 context.Context, _a1 *gnmi.CapabilityRequest) (*gnmi.CapabilityResponse, error)

Capabilities provides a mock function with given fields: _a0, _a1

func (*GNMIServer) Get

func (_m *GNMIServer) Get(_a0 context.Context, _a1 *gnmi.GetRequest) (*gnmi.GetResponse, error)

Get provides a mock function with given fields: _a0, _a1

func (*GNMIServer) Set

func (_m *GNMIServer) Set(_a0 context.Context, _a1 *gnmi.SetRequest) (*gnmi.SetResponse, error)

Set provides a mock function with given fields: _a0, _a1

func (*GNMIServer) Subscribe

func (_m *GNMIServer) Subscribe(_a0 gnmi.GNMI_SubscribeServer) error

Subscribe provides a mock function with given fields: _a0

type GNMI_SubscribeClient

type GNMI_SubscribeClient struct {
	mock.Mock
}

GNMI_SubscribeClient is an autogenerated mock type for the GNMI_SubscribeClient type

func (*GNMI_SubscribeClient) CloseSend

func (_m *GNMI_SubscribeClient) CloseSend() error

CloseSend provides a mock function with given fields:

func (*GNMI_SubscribeClient) Context

func (_m *GNMI_SubscribeClient) Context() context.Context

Context provides a mock function with given fields:

func (*GNMI_SubscribeClient) Header

func (_m *GNMI_SubscribeClient) Header() (metadata.MD, error)

Header provides a mock function with given fields:

func (*GNMI_SubscribeClient) Recv

Recv provides a mock function with given fields:

func (*GNMI_SubscribeClient) RecvMsg

func (_m *GNMI_SubscribeClient) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*GNMI_SubscribeClient) Send

Send provides a mock function with given fields: _a0

func (*GNMI_SubscribeClient) SendMsg

func (_m *GNMI_SubscribeClient) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*GNMI_SubscribeClient) Trailer

func (_m *GNMI_SubscribeClient) Trailer() metadata.MD

Trailer provides a mock function with given fields:

type GNMI_SubscribeServer

type GNMI_SubscribeServer struct {
	mock.Mock
}

GNMI_SubscribeServer is an autogenerated mock type for the GNMI_SubscribeServer type

func (*GNMI_SubscribeServer) Context

func (_m *GNMI_SubscribeServer) Context() context.Context

Context provides a mock function with given fields:

func (*GNMI_SubscribeServer) Recv

Recv provides a mock function with given fields:

func (*GNMI_SubscribeServer) RecvMsg

func (_m *GNMI_SubscribeServer) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*GNMI_SubscribeServer) Send

Send provides a mock function with given fields: _a0

func (*GNMI_SubscribeServer) SendHeader

func (_m *GNMI_SubscribeServer) SendHeader(_a0 metadata.MD) error

SendHeader provides a mock function with given fields: _a0

func (*GNMI_SubscribeServer) SendMsg

func (_m *GNMI_SubscribeServer) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*GNMI_SubscribeServer) SetHeader

func (_m *GNMI_SubscribeServer) SetHeader(_a0 metadata.MD) error

SetHeader provides a mock function with given fields: _a0

func (*GNMI_SubscribeServer) SetTrailer

func (_m *GNMI_SubscribeServer) SetTrailer(_a0 metadata.MD)

SetTrailer provides a mock function with given fields: _a0

type JSONUnmarshaler

type JSONUnmarshaler struct {
	mock.Mock
}

JSONUnmarshaler is an autogenerated mock type for the JSONUnmarshaler type

func (*JSONUnmarshaler) Execute

func (_m *JSONUnmarshaler) Execute(_a0 []byte, _a1 ygot.GoStruct, _a2 ...ytypes.UnmarshalOpt) error

Execute provides a mock function with given fields: _a0, _a1, _a2

type PrincipalNetworkDomain

type PrincipalNetworkDomain struct {
	mock.Mock
}

PrincipalNetworkDomain is an autogenerated mock type for the PrincipalNetworkDomain type

func (*PrincipalNetworkDomain) AddDevice

func (_m *PrincipalNetworkDomain) AddDevice(_a0 interface{}) error

AddDevice provides a mock function with given fields: _a0

func (*PrincipalNetworkDomain) AddSbi

func (_m *PrincipalNetworkDomain) AddSbi(_a0 interface{}) error

AddSbi provides a mock function with given fields: _a0

func (*PrincipalNetworkDomain) ContainsDevice

func (_m *PrincipalNetworkDomain) ContainsDevice(_a0 uuid.UUID) bool

ContainsDevice provides a mock function with given fields: _a0

func (*PrincipalNetworkDomain) Destroy

func (_m *PrincipalNetworkDomain) Destroy() error

Destroy provides a mock function with given fields:

func (*PrincipalNetworkDomain) GetDescription

func (_m *PrincipalNetworkDomain) GetDescription() string

GetDescription provides a mock function with given fields:

func (*PrincipalNetworkDomain) GetName

func (_m *PrincipalNetworkDomain) GetName() string

GetName provides a mock function with given fields:

func (*PrincipalNetworkDomain) GetSBIs

func (_m *PrincipalNetworkDomain) GetSBIs() interface{}

GetSBIs provides a mock function with given fields:

func (*PrincipalNetworkDomain) ID

func (_m *PrincipalNetworkDomain) ID() uuid.UUID

Id provides a mock function with given fields:

func (*PrincipalNetworkDomain) MarshalDevice

func (_m *PrincipalNetworkDomain) MarshalDevice(_a0 uuid.UUID) (string, error)

MarshalDevice provides a mock function with given fields: _a0

func (*PrincipalNetworkDomain) RemoveDevice

func (_m *PrincipalNetworkDomain) RemoveDevice(_a0 uuid.UUID) error

RemoveDevice provides a mock function with given fields: _a0

func (*PrincipalNetworkDomain) RemoveSbi

func (_m *PrincipalNetworkDomain) RemoveSbi(_a0 uuid.UUID) error

RemoveSbi provides a mock function with given fields: _a0

func (*PrincipalNetworkDomain) Request

func (_m *PrincipalNetworkDomain) Request(_a0 uuid.UUID, _a1 string) error

Request provides a mock function with given fields: _a0, _a1

func (*PrincipalNetworkDomain) RequestAll

func (_m *PrincipalNetworkDomain) RequestAll(_a0 string) error

RequestAll provides a mock function with given fields: _a0

type PublishFunc

type PublishFunc struct {
	mock.Mock
}

PublishFunc is an autogenerated mock type for the PublishFunc type

func (*PublishFunc) Execute

func (_m *PublishFunc) Execute(addr string, message protoiface.MessageV1)

Execute provides a mock function with given fields: addr, message

type SBIGreeter

type SBIGreeter struct {
	mock.Mock
}

SBIGreeter is an autogenerated mock type for the SBIGreeter type

func (*SBIGreeter) SBIHello

func (_m *SBIGreeter) SBIHello()

SBIHello provides a mock function with given fields:

type SouthboundInterface

type SouthboundInterface struct {
	mock.Mock
}

SouthboundInterface is an autogenerated mock type for the SouthboundInterface type

func (*SouthboundInterface) ID

func (_m *SouthboundInterface) ID() uuid.UUID

Id provides a mock function with given fields:

func (*SouthboundInterface) SbiIdentifier

func (_m *SouthboundInterface) SbiIdentifier() string

SbiIdentifier provides a mock function with given fields:

func (*SouthboundInterface) Schema

func (_m *SouthboundInterface) Schema() *ytypes.Schema

Schema provides a mock function with given fields:

func (*SouthboundInterface) SetNode

func (_m *SouthboundInterface) SetNode() func(*yang.Entry, interface{}, *gnmi.Path, interface{}, []ytypes.SetNodeOpt) error

SetNode provides a mock function with given fields:

type Storable

type Storable struct {
	mock.Mock
}

Storable is an autogenerated mock type for the Storable type

func (*Storable) ID

func (_m *Storable) ID() uuid.UUID

Id provides a mock function with given fields:

type Transport

type Transport struct {
	mock.Mock
}

Transport is an autogenerated mock type for the Transport type

func (*Transport) Get

func (_m *Transport) Get(ctx context.Context, params ...string) (interface{}, error)

Get provides a mock function with given fields: ctx, params

func (*Transport) GetOptions

func (_m *Transport) GetOptions() interface{}

GetOptions provides a mock function with given fields:

func (*Transport) ProcessResponse

func (_m *Transport) ProcessResponse(resp interface{}, root interface{}, models *ytypes.Schema) error

ProcessResponse provides a mock function with given fields: resp, root, models

func (*Transport) Set

func (_m *Transport) Set(ctx context.Context, params ...interface{}) (interface{}, error)

Set provides a mock function with given fields: ctx, params

func (*Transport) Subscribe

func (_m *Transport) Subscribe(ctx context.Context, params ...string) error

Subscribe provides a mock function with given fields: ctx, params

func (*Transport) Type

func (_m *Transport) Type() string

Type provides a mock function with given fields:

type TransportOptions

type TransportOptions struct {
	mock.Mock
}

TransportOptions is an autogenerated mock type for the TransportOptions type

func (*TransportOptions) GetAddress

func (_m *TransportOptions) GetAddress() string

GetAddress provides a mock function with given fields:

func (*TransportOptions) GetPassword

func (_m *TransportOptions) GetPassword() string

GetPassword provides a mock function with given fields:

func (*TransportOptions) GetUsername

func (_m *TransportOptions) GetUsername() string

GetUsername provides a mock function with given fields:

func (*TransportOptions) IsTransportOption

func (_m *TransportOptions) IsTransportOption()

IsTransportOption provides a mock function with given fields:

Jump to

Keyboard shortcuts

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