mocks

package
v2.0.52 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 added in v2.0.10

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) EXPECT added in v2.0.10

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Get

func (_mock *Client) Get(ctx context.Context, tCtx webapi.GetContext) (webapi.Resource, error)

Get provides a mock function for the type Client

func (*Client) Status

func (_mock *Client) Status(ctx context.Context, tCtx webapi.StatusContext) (core.PhaseInfo, error)

Status provides a mock function for the type Client

type Client_Expecter added in v2.0.10

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

func (*Client_Expecter) Get added in v2.0.10

func (_e *Client_Expecter) Get(ctx interface{}, tCtx interface{}) *Client_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • tCtx webapi.GetContext

func (*Client_Expecter) Status added in v2.0.10

func (_e *Client_Expecter) Status(ctx interface{}, tCtx interface{}) *Client_Status_Call

Status is a helper method to define mock.On call

  • ctx context.Context
  • tCtx webapi.StatusContext

type Client_Get_Call added in v2.0.10

type Client_Get_Call struct {
	*mock.Call
}

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

func (*Client_Get_Call) Return added in v2.0.10

func (_c *Client_Get_Call) Return(latest webapi.Resource, err error) *Client_Get_Call

func (*Client_Get_Call) Run added in v2.0.10

func (_c *Client_Get_Call) Run(run func(ctx context.Context, tCtx webapi.GetContext)) *Client_Get_Call

func (*Client_Get_Call) RunAndReturn added in v2.0.10

func (_c *Client_Get_Call) RunAndReturn(run func(ctx context.Context, tCtx webapi.GetContext) (webapi.Resource, error)) *Client_Get_Call

type Client_Status_Call added in v2.0.10

type Client_Status_Call struct {
	*mock.Call
}

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

func (*Client_Status_Call) Return added in v2.0.10

func (_c *Client_Status_Call) Return(phase core.PhaseInfo, err error) *Client_Status_Call

func (*Client_Status_Call) Run added in v2.0.10

func (*Client_Status_Call) RunAndReturn added in v2.0.10

func (_c *Client_Status_Call) RunAndReturn(run func(ctx context.Context, tCtx webapi.StatusContext) (core.PhaseInfo, error)) *Client_Status_Call

Jump to

Keyboard shortcuts

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