mocks

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) CreateConnectionSetting added in v1.3.0

func (_m *Client) CreateConnectionSetting(es edgeconnect.EnvironmentSetting) error

CreateConnectionSetting provides a mock function with given fields: es

func (*Client) CreateEdgeConnect

func (_m *Client) CreateEdgeConnect(request *edgeconnect.Request) (edgeconnect.CreateResponse, error)

CreateEdgeConnect provides a mock function with given fields: request

func (*Client) DeleteConnectionSetting added in v1.3.0

func (_m *Client) DeleteConnectionSetting(objectId string) error

DeleteConnectionSetting provides a mock function with given fields: objectId

func (*Client) DeleteEdgeConnect

func (_m *Client) DeleteEdgeConnect(edgeConnectId string) error

DeleteEdgeConnect provides a mock function with given fields: edgeConnectId

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetConnectionSettings added in v1.3.0

func (_m *Client) GetConnectionSettings() ([]edgeconnect.EnvironmentSetting, error)

GetConnectionSettings provides a mock function with given fields:

func (*Client) GetEdgeConnect

func (_m *Client) GetEdgeConnect(edgeConnectId string) (edgeconnect.GetResponse, error)

GetEdgeConnect provides a mock function with given fields: edgeConnectId

func (*Client) GetEdgeConnects

func (_m *Client) GetEdgeConnects(name string) (edgeconnect.ListResponse, error)

GetEdgeConnects provides a mock function with given fields: name

func (*Client) UpdateConnectionSetting added in v1.3.0

func (_m *Client) UpdateConnectionSetting(es edgeconnect.EnvironmentSetting) error

UpdateConnectionSetting provides a mock function with given fields: es

func (*Client) UpdateEdgeConnect

func (_m *Client) UpdateEdgeConnect(edgeConnectId string, request *edgeconnect.Request) error

UpdateEdgeConnect provides a mock function with given fields: edgeConnectId, request

type Client_CreateConnectionSetting_Call added in v1.3.0

type Client_CreateConnectionSetting_Call struct {
	*mock.Call
}

Client_CreateConnectionSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateConnectionSetting'

func (*Client_CreateConnectionSetting_Call) Return added in v1.3.0

func (*Client_CreateConnectionSetting_Call) Run added in v1.3.0

func (*Client_CreateConnectionSetting_Call) RunAndReturn added in v1.3.0

type Client_CreateEdgeConnect_Call

type Client_CreateEdgeConnect_Call struct {
	*mock.Call
}

Client_CreateEdgeConnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEdgeConnect'

func (*Client_CreateEdgeConnect_Call) Return

func (*Client_CreateEdgeConnect_Call) Run

func (*Client_CreateEdgeConnect_Call) RunAndReturn

type Client_DeleteConnectionSetting_Call added in v1.3.0

type Client_DeleteConnectionSetting_Call struct {
	*mock.Call
}

Client_DeleteConnectionSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteConnectionSetting'

func (*Client_DeleteConnectionSetting_Call) Return added in v1.3.0

func (*Client_DeleteConnectionSetting_Call) Run added in v1.3.0

func (*Client_DeleteConnectionSetting_Call) RunAndReturn added in v1.3.0

type Client_DeleteEdgeConnect_Call

type Client_DeleteEdgeConnect_Call struct {
	*mock.Call
}

Client_DeleteEdgeConnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteEdgeConnect'

func (*Client_DeleteEdgeConnect_Call) Return

func (*Client_DeleteEdgeConnect_Call) Run

func (_c *Client_DeleteEdgeConnect_Call) Run(run func(edgeConnectId string)) *Client_DeleteEdgeConnect_Call

func (*Client_DeleteEdgeConnect_Call) RunAndReturn

type Client_Expecter

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

func (*Client_Expecter) CreateConnectionSetting added in v1.3.0

func (_e *Client_Expecter) CreateConnectionSetting(es interface{}) *Client_CreateConnectionSetting_Call

CreateConnectionSetting is a helper method to define mock.On call

  • es edgeconnect.EnvironmentSetting

func (*Client_Expecter) CreateEdgeConnect

func (_e *Client_Expecter) CreateEdgeConnect(request interface{}) *Client_CreateEdgeConnect_Call

CreateEdgeConnect is a helper method to define mock.On call

  • request *edgeconnect.Request

func (*Client_Expecter) DeleteConnectionSetting added in v1.3.0

func (_e *Client_Expecter) DeleteConnectionSetting(objectId interface{}) *Client_DeleteConnectionSetting_Call

DeleteConnectionSetting is a helper method to define mock.On call

  • objectId string

func (*Client_Expecter) DeleteEdgeConnect

func (_e *Client_Expecter) DeleteEdgeConnect(edgeConnectId interface{}) *Client_DeleteEdgeConnect_Call

DeleteEdgeConnect is a helper method to define mock.On call

  • edgeConnectId string

func (*Client_Expecter) GetConnectionSettings added in v1.3.0

func (_e *Client_Expecter) GetConnectionSettings() *Client_GetConnectionSettings_Call

GetConnectionSettings is a helper method to define mock.On call

func (*Client_Expecter) GetEdgeConnect

func (_e *Client_Expecter) GetEdgeConnect(edgeConnectId interface{}) *Client_GetEdgeConnect_Call

GetEdgeConnect is a helper method to define mock.On call

  • edgeConnectId string

func (*Client_Expecter) GetEdgeConnects

func (_e *Client_Expecter) GetEdgeConnects(name interface{}) *Client_GetEdgeConnects_Call

GetEdgeConnects is a helper method to define mock.On call

  • name string

func (*Client_Expecter) UpdateConnectionSetting added in v1.3.0

func (_e *Client_Expecter) UpdateConnectionSetting(es interface{}) *Client_UpdateConnectionSetting_Call

UpdateConnectionSetting is a helper method to define mock.On call

  • es edgeconnect.EnvironmentSetting

func (*Client_Expecter) UpdateEdgeConnect

func (_e *Client_Expecter) UpdateEdgeConnect(edgeConnectId interface{}, request interface{}) *Client_UpdateEdgeConnect_Call

UpdateEdgeConnect is a helper method to define mock.On call

  • edgeConnectId string
  • request *edgeconnect.Request

type Client_GetConnectionSettings_Call added in v1.3.0

type Client_GetConnectionSettings_Call struct {
	*mock.Call
}

Client_GetConnectionSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConnectionSettings'

func (*Client_GetConnectionSettings_Call) Return added in v1.3.0

func (*Client_GetConnectionSettings_Call) Run added in v1.3.0

func (*Client_GetConnectionSettings_Call) RunAndReturn added in v1.3.0

type Client_GetEdgeConnect_Call

type Client_GetEdgeConnect_Call struct {
	*mock.Call
}

Client_GetEdgeConnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEdgeConnect'

func (*Client_GetEdgeConnect_Call) Return

func (*Client_GetEdgeConnect_Call) Run

func (_c *Client_GetEdgeConnect_Call) Run(run func(edgeConnectId string)) *Client_GetEdgeConnect_Call

func (*Client_GetEdgeConnect_Call) RunAndReturn

type Client_GetEdgeConnects_Call

type Client_GetEdgeConnects_Call struct {
	*mock.Call
}

Client_GetEdgeConnects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEdgeConnects'

func (*Client_GetEdgeConnects_Call) Return

func (*Client_GetEdgeConnects_Call) Run

func (*Client_GetEdgeConnects_Call) RunAndReturn

type Client_UpdateConnectionSetting_Call added in v1.3.0

type Client_UpdateConnectionSetting_Call struct {
	*mock.Call
}

Client_UpdateConnectionSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateConnectionSetting'

func (*Client_UpdateConnectionSetting_Call) Return added in v1.3.0

func (*Client_UpdateConnectionSetting_Call) Run added in v1.3.0

func (*Client_UpdateConnectionSetting_Call) RunAndReturn added in v1.3.0

type Client_UpdateEdgeConnect_Call

type Client_UpdateEdgeConnect_Call struct {
	*mock.Call
}

Client_UpdateEdgeConnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEdgeConnect'

func (*Client_UpdateEdgeConnect_Call) Return

func (*Client_UpdateEdgeConnect_Call) Run

func (_c *Client_UpdateEdgeConnect_Call) Run(run func(edgeConnectId string, request *edgeconnect.Request)) *Client_UpdateEdgeConnect_Call

func (*Client_UpdateEdgeConnect_Call) RunAndReturn

Jump to

Keyboard shortcuts

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