mocks

package
v0.0.0-...-4e7ef3e Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloud

type Cloud struct {
	mock.Mock
}

Cloud is an autogenerated mock type for the cloud type

func NewCloud

func NewCloud(t mockConstructorTestingTNewCloud) *Cloud

NewCloud creates a new instance of Cloud. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Cloud) EXPECT

func (_m *Cloud) EXPECT() *Cloud_Expecter

func (*Cloud) GetInstanceAddresses

func (_m *Cloud) GetInstanceAddresses(ctx context.Context, instanceName string) ([]net.IP, error)

GetInstanceAddresses provides a mock function with given fields: instanceName

type Cloud_Expecter

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

func (*Cloud_Expecter) GetInstanceAddresses

func (_e *Cloud_Expecter) GetInstanceAddresses(ctx interface{}, instanceName interface{}) *Cloud_GetInstanceAddresses_Call

GetInstanceAddresses is a helper method to define mock.On call

  • ctx context.Context
  • instanceName string

type Cloud_GetInstanceAddresses_Call

type Cloud_GetInstanceAddresses_Call struct {
	*mock.Call
}

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

func (*Cloud_GetInstanceAddresses_Call) Return

func (*Cloud_GetInstanceAddresses_Call) Run

type K8s

type K8s struct {
	mock.Mock
}

K8s is an autogenerated mock type for the k8s type

func NewK8s

func NewK8s(t mockConstructorTestingTNewK8s) *K8s

NewK8s creates a new instance of K8s. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*K8s) Approve

func (_m *K8s) Approve(ctx context.Context, r *v1.CertificateSigningRequest) error

Approve provides a mock function with given fields: r

func (*K8s) CertificateSigningRequestsChan

func (_m *K8s) CertificateSigningRequestsChan() (<-chan controller.Event, error)

CertificateSigningRequestsChan provides a mock function with given fields:

func (*K8s) Deny

Deny provides a mock function with given fields: r

func (*K8s) EXPECT

func (_m *K8s) EXPECT() *K8s_Expecter

func (*K8s) Stop

func (_m *K8s) Stop()

Stop provides a mock function with given fields:

type K8s_Approve_Call

type K8s_Approve_Call struct {
	*mock.Call
}

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

func (*K8s_Approve_Call) Return

func (_c *K8s_Approve_Call) Return(_a0 error) *K8s_Approve_Call

func (*K8s_Approve_Call) Run

type K8s_CertificateSigningRequestsChan_Call

type K8s_CertificateSigningRequestsChan_Call struct {
	*mock.Call
}

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

func (*K8s_CertificateSigningRequestsChan_Call) Return

func (*K8s_CertificateSigningRequestsChan_Call) Run

type K8s_Deny_Call

type K8s_Deny_Call struct {
	*mock.Call
}

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

func (*K8s_Deny_Call) Return

func (_c *K8s_Deny_Call) Return(_a0 error) *K8s_Deny_Call

func (*K8s_Deny_Call) Run

type K8s_Expecter

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

func (*K8s_Expecter) Approve

func (_e *K8s_Expecter) Approve(ctx interface{}, r interface{}) *K8s_Approve_Call

Approve is a helper method to define mock.On call

  • ctx context.Context
  • r *v1.CertificateSigningRequest

func (*K8s_Expecter) CertificateSigningRequestsChan

func (_e *K8s_Expecter) CertificateSigningRequestsChan() *K8s_CertificateSigningRequestsChan_Call

CertificateSigningRequestsChan is a helper method to define mock.On call

func (*K8s_Expecter) Deny

func (_e *K8s_Expecter) Deny(ctx interface{}, r interface{}) *K8s_Deny_Call

Deny is a helper method to define mock.On call

  • ctx context.Context
  • r *v1.CertificateSigningRequest

func (*K8s_Expecter) Stop

func (_e *K8s_Expecter) Stop() *K8s_Stop_Call

Stop is a helper method to define mock.On call

type K8s_Stop_Call

type K8s_Stop_Call struct {
	*mock.Call
}

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

func (*K8s_Stop_Call) Return

func (_c *K8s_Stop_Call) Return() *K8s_Stop_Call

func (*K8s_Stop_Call) Run

func (_c *K8s_Stop_Call) Run(run func()) *K8s_Stop_Call

Jump to

Keyboard shortcuts

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