Documentation
¶
Index ¶
- type ClientMock
- func (_m *ClientMock) CreateGatewaySecret(ctx context.Context, secret *v1.Secret) error
- func (_m *ClientMock) EXPECT() *ClientMock_Expecter
- func (_m *ClientMock) GetGatewaySecret(ctx context.Context) (*v1.Secret, error)
- func (_m *ClientMock) GetWatcherServingCert(ctx context.Context) (*certmanagerv1.Certificate, error)
- func (_m *ClientMock) UpdateGatewaySecret(ctx context.Context, secret *v1.Secret) error
- type ClientMock_CreateGatewaySecret_Call
- func (_c *ClientMock_CreateGatewaySecret_Call) Return(_a0 error) *ClientMock_CreateGatewaySecret_Call
- func (_c *ClientMock_CreateGatewaySecret_Call) Run(run func(ctx context.Context, secret *v1.Secret)) *ClientMock_CreateGatewaySecret_Call
- func (_c *ClientMock_CreateGatewaySecret_Call) RunAndReturn(run func(context.Context, *v1.Secret) error) *ClientMock_CreateGatewaySecret_Call
- type ClientMock_Expecter
- func (_e *ClientMock_Expecter) CreateGatewaySecret(ctx interface{}, secret interface{}) *ClientMock_CreateGatewaySecret_Call
- func (_e *ClientMock_Expecter) GetGatewaySecret(ctx interface{}) *ClientMock_GetGatewaySecret_Call
- func (_e *ClientMock_Expecter) GetWatcherServingCert(ctx interface{}) *ClientMock_GetWatcherServingCert_Call
- func (_e *ClientMock_Expecter) UpdateGatewaySecret(ctx interface{}, secret interface{}) *ClientMock_UpdateGatewaySecret_Call
- type ClientMock_GetGatewaySecret_Call
- func (_c *ClientMock_GetGatewaySecret_Call) Return(_a0 *v1.Secret, _a1 error) *ClientMock_GetGatewaySecret_Call
- func (_c *ClientMock_GetGatewaySecret_Call) Run(run func(ctx context.Context)) *ClientMock_GetGatewaySecret_Call
- func (_c *ClientMock_GetGatewaySecret_Call) RunAndReturn(run func(context.Context) (*v1.Secret, error)) *ClientMock_GetGatewaySecret_Call
- type ClientMock_GetWatcherServingCert_Call
- func (_c *ClientMock_GetWatcherServingCert_Call) Return(_a0 *certmanagerv1.Certificate, _a1 error) *ClientMock_GetWatcherServingCert_Call
- func (_c *ClientMock_GetWatcherServingCert_Call) Run(run func(ctx context.Context)) *ClientMock_GetWatcherServingCert_Call
- func (_c *ClientMock_GetWatcherServingCert_Call) RunAndReturn(run func(context.Context) (*certmanagerv1.Certificate, error)) *ClientMock_GetWatcherServingCert_Call
- type ClientMock_UpdateGatewaySecret_Call
- func (_c *ClientMock_UpdateGatewaySecret_Call) Return(_a0 error) *ClientMock_UpdateGatewaySecret_Call
- func (_c *ClientMock_UpdateGatewaySecret_Call) Run(run func(ctx context.Context, secret *v1.Secret)) *ClientMock_UpdateGatewaySecret_Call
- func (_c *ClientMock_UpdateGatewaySecret_Call) RunAndReturn(run func(context.Context, *v1.Secret) error) *ClientMock_UpdateGatewaySecret_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMock ¶
ClientMock is an autogenerated mock type for the Client type
func NewClientMock ¶
func NewClientMock(t interface { mock.TestingT Cleanup(func()) }) *ClientMock
NewClientMock creates a new instance of ClientMock. 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 (*ClientMock) CreateGatewaySecret ¶
CreateGatewaySecret provides a mock function with given fields: ctx, secret
func (*ClientMock) EXPECT ¶
func (_m *ClientMock) EXPECT() *ClientMock_Expecter
func (*ClientMock) GetGatewaySecret ¶
GetGatewaySecret provides a mock function with given fields: ctx
func (*ClientMock) GetWatcherServingCert ¶
func (_m *ClientMock) GetWatcherServingCert(ctx context.Context) (*certmanagerv1.Certificate, error)
GetWatcherServingCert provides a mock function with given fields: ctx
func (*ClientMock) UpdateGatewaySecret ¶
UpdateGatewaySecret provides a mock function with given fields: ctx, secret
type ClientMock_CreateGatewaySecret_Call ¶
ClientMock_CreateGatewaySecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateGatewaySecret'
func (*ClientMock_CreateGatewaySecret_Call) Return ¶
func (_c *ClientMock_CreateGatewaySecret_Call) Return(_a0 error) *ClientMock_CreateGatewaySecret_Call
func (*ClientMock_CreateGatewaySecret_Call) Run ¶
func (_c *ClientMock_CreateGatewaySecret_Call) Run(run func(ctx context.Context, secret *v1.Secret)) *ClientMock_CreateGatewaySecret_Call
func (*ClientMock_CreateGatewaySecret_Call) RunAndReturn ¶
func (_c *ClientMock_CreateGatewaySecret_Call) RunAndReturn(run func(context.Context, *v1.Secret) error) *ClientMock_CreateGatewaySecret_Call
type ClientMock_Expecter ¶
type ClientMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ClientMock_Expecter) CreateGatewaySecret ¶
func (_e *ClientMock_Expecter) CreateGatewaySecret(ctx interface{}, secret interface{}) *ClientMock_CreateGatewaySecret_Call
CreateGatewaySecret is a helper method to define mock.On call
- ctx context.Context
- secret *v1.Secret
func (*ClientMock_Expecter) GetGatewaySecret ¶
func (_e *ClientMock_Expecter) GetGatewaySecret(ctx interface{}) *ClientMock_GetGatewaySecret_Call
GetGatewaySecret is a helper method to define mock.On call
- ctx context.Context
func (*ClientMock_Expecter) GetWatcherServingCert ¶
func (_e *ClientMock_Expecter) GetWatcherServingCert(ctx interface{}) *ClientMock_GetWatcherServingCert_Call
GetWatcherServingCert is a helper method to define mock.On call
- ctx context.Context
func (*ClientMock_Expecter) UpdateGatewaySecret ¶
func (_e *ClientMock_Expecter) UpdateGatewaySecret(ctx interface{}, secret interface{}) *ClientMock_UpdateGatewaySecret_Call
UpdateGatewaySecret is a helper method to define mock.On call
- ctx context.Context
- secret *v1.Secret
type ClientMock_GetGatewaySecret_Call ¶
ClientMock_GetGatewaySecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGatewaySecret'
func (*ClientMock_GetGatewaySecret_Call) Return ¶
func (_c *ClientMock_GetGatewaySecret_Call) Return(_a0 *v1.Secret, _a1 error) *ClientMock_GetGatewaySecret_Call
func (*ClientMock_GetGatewaySecret_Call) Run ¶
func (_c *ClientMock_GetGatewaySecret_Call) Run(run func(ctx context.Context)) *ClientMock_GetGatewaySecret_Call
func (*ClientMock_GetGatewaySecret_Call) RunAndReturn ¶
func (_c *ClientMock_GetGatewaySecret_Call) RunAndReturn(run func(context.Context) (*v1.Secret, error)) *ClientMock_GetGatewaySecret_Call
type ClientMock_GetWatcherServingCert_Call ¶
ClientMock_GetWatcherServingCert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWatcherServingCert'
func (*ClientMock_GetWatcherServingCert_Call) Return ¶
func (_c *ClientMock_GetWatcherServingCert_Call) Return(_a0 *certmanagerv1.Certificate, _a1 error) *ClientMock_GetWatcherServingCert_Call
func (*ClientMock_GetWatcherServingCert_Call) Run ¶
func (_c *ClientMock_GetWatcherServingCert_Call) Run(run func(ctx context.Context)) *ClientMock_GetWatcherServingCert_Call
func (*ClientMock_GetWatcherServingCert_Call) RunAndReturn ¶
func (_c *ClientMock_GetWatcherServingCert_Call) RunAndReturn(run func(context.Context) (*certmanagerv1.Certificate, error)) *ClientMock_GetWatcherServingCert_Call
type ClientMock_UpdateGatewaySecret_Call ¶
ClientMock_UpdateGatewaySecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateGatewaySecret'
func (*ClientMock_UpdateGatewaySecret_Call) Return ¶
func (_c *ClientMock_UpdateGatewaySecret_Call) Return(_a0 error) *ClientMock_UpdateGatewaySecret_Call
func (*ClientMock_UpdateGatewaySecret_Call) Run ¶
func (_c *ClientMock_UpdateGatewaySecret_Call) Run(run func(ctx context.Context, secret *v1.Secret)) *ClientMock_UpdateGatewaySecret_Call
func (*ClientMock_UpdateGatewaySecret_Call) RunAndReturn ¶
func (_c *ClientMock_UpdateGatewaySecret_Call) RunAndReturn(run func(context.Context, *v1.Secret) error) *ClientMock_UpdateGatewaySecret_Call