mocks

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 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) CreateEdgeConnect

func (_m *Client) CreateEdgeConnect(name string, hostPatterns []string, oauthClientId string) (edgeconnect.CreateResponse, error)

CreateEdgeConnect provides a mock function with given fields: name, hostPatterns, oauthClientId

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) 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) UpdateEdgeConnect

func (_m *Client) UpdateEdgeConnect(edgeConnectId string, name string, hostPatterns []string, oauthClientId string) error

UpdateEdgeConnect provides a mock function with given fields: edgeConnectId, name, hostPatterns, oauthClientId

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 (_c *Client_CreateEdgeConnect_Call) Run(run func(name string, hostPatterns []string, oauthClientId string)) *Client_CreateEdgeConnect_Call

func (*Client_CreateEdgeConnect_Call) RunAndReturn

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) CreateEdgeConnect

func (_e *Client_Expecter) CreateEdgeConnect(name interface{}, hostPatterns interface{}, oauthClientId interface{}) *Client_CreateEdgeConnect_Call

CreateEdgeConnect is a helper method to define mock.On call

  • name string
  • hostPatterns []string
  • oauthClientId 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) 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) UpdateEdgeConnect

func (_e *Client_Expecter) UpdateEdgeConnect(edgeConnectId interface{}, name interface{}, hostPatterns interface{}, oauthClientId interface{}) *Client_UpdateEdgeConnect_Call

UpdateEdgeConnect is a helper method to define mock.On call

  • edgeConnectId string
  • name string
  • hostPatterns []string
  • oauthClientId string

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_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, name string, hostPatterns []string, oauthClientId string)) *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