Documentation
¶
Index ¶
- type Cloud
- type Cloud_Expecter
- type Cloud_GetInstanceAddresses_Call
- type K8s
- func (_m *K8s) Approve(ctx context.Context, r *v1.CertificateSigningRequest) error
- func (_m *K8s) CertificateSigningRequestsChan() (<-chan controller.Event, error)
- func (_m *K8s) Deny(ctx context.Context, r *v1.CertificateSigningRequest) error
- func (_m *K8s) EXPECT() *K8s_Expecter
- func (_m *K8s) Stop()
- type K8s_Approve_Call
- type K8s_CertificateSigningRequestsChan_Call
- type K8s_Deny_Call
- type K8s_Expecter
- func (_e *K8s_Expecter) Approve(ctx interface{}, r interface{}) *K8s_Approve_Call
- func (_e *K8s_Expecter) CertificateSigningRequestsChan() *K8s_CertificateSigningRequestsChan_Call
- func (_e *K8s_Expecter) Deny(ctx interface{}, r interface{}) *K8s_Deny_Call
- func (_e *K8s_Expecter) Stop() *K8s_Stop_Call
- type K8s_Stop_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cloud ¶
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
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 ¶
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 (_c *Cloud_GetInstanceAddresses_Call) Return(_a0 []net.IP, _a1 error) *Cloud_GetInstanceAddresses_Call
func (*Cloud_GetInstanceAddresses_Call) Run ¶
func (_c *Cloud_GetInstanceAddresses_Call) Run(run func(ctx context.Context, instanceName string)) *Cloud_GetInstanceAddresses_Call
type K8s ¶
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) CertificateSigningRequestsChan ¶
func (_m *K8s) CertificateSigningRequestsChan() (<-chan controller.Event, error)
CertificateSigningRequestsChan provides a mock function with given fields:
func (*K8s) EXPECT ¶
func (_m *K8s) EXPECT() *K8s_Expecter
type K8s_Approve_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 ¶
func (_c *K8s_Approve_Call) Run(run func(r *v1.CertificateSigningRequest)) *K8s_Approve_Call
type K8s_CertificateSigningRequestsChan_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 (_c *K8s_CertificateSigningRequestsChan_Call) Return(_a0 <-chan controller.Event, _a1 error) *K8s_CertificateSigningRequestsChan_Call
func (*K8s_CertificateSigningRequestsChan_Call) Run ¶
func (_c *K8s_CertificateSigningRequestsChan_Call) Run(run func()) *K8s_CertificateSigningRequestsChan_Call
type K8s_Deny_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 ¶
func (_c *K8s_Deny_Call) Run(run func(r *v1.CertificateSigningRequest)) *K8s_Deny_Call
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 ¶
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