Documentation ¶
Overview ¶
Package types is a generated GoMock package.
Index ¶
- type CategoryProvider
- type MockRegister
- func (m *MockRegister) Default(arg0 context.Context, arg1 runtime.Object) error
- func (m *MockRegister) EXPECT() *MockRegisterMockRecorder
- func (m *MockRegister) GetCategory() string
- func (m *MockRegister) GetWebhookConfigurations() ([]v1.MutatingWebhook, []v1.ValidatingWebhook)
- func (m *MockRegister) ValidateCreate(arg0 context.Context, arg1 runtime.Object) (admission.Warnings, error)
- func (m *MockRegister) ValidateDelete(arg0 context.Context, arg1 runtime.Object) (admission.Warnings, error)
- func (m *MockRegister) ValidateUpdate(arg0 context.Context, arg1, arg2 runtime.Object) (admission.Warnings, error)
- type MockRegisterMockRecorder
- func (mr *MockRegisterMockRecorder) Default(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRegisterMockRecorder) GetCategory() *gomock.Call
- func (mr *MockRegisterMockRecorder) GetWebhookConfigurations() *gomock.Call
- func (mr *MockRegisterMockRecorder) ValidateCreate(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRegisterMockRecorder) ValidateDelete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRegisterMockRecorder) ValidateUpdate(arg0, arg1, arg2 interface{}) *gomock.Call
- type Register
- type RegisterConfig
- type WebhookConfigurationProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryProvider ¶
type CategoryProvider interface {
GetCategory() string
}
type MockRegister ¶
type MockRegister struct {
// contains filtered or unexported fields
}
MockRegister is a mock of Register interface.
func NewMockRegister ¶
func NewMockRegister(ctrl *gomock.Controller) *MockRegister
NewMockRegister creates a new mock instance.
func (*MockRegister) EXPECT ¶
func (m *MockRegister) EXPECT() *MockRegisterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRegister) GetCategory ¶
func (m *MockRegister) GetCategory() string
GetCategory mocks base method.
func (*MockRegister) GetWebhookConfigurations ¶
func (m *MockRegister) GetWebhookConfigurations() ([]v1.MutatingWebhook, []v1.ValidatingWebhook)
GetWebhookConfigurations mocks base method.
func (*MockRegister) ValidateCreate ¶
func (m *MockRegister) ValidateCreate(arg0 context.Context, arg1 runtime.Object) (admission.Warnings, error)
ValidateCreate mocks base method.
func (*MockRegister) ValidateDelete ¶
func (m *MockRegister) ValidateDelete(arg0 context.Context, arg1 runtime.Object) (admission.Warnings, error)
ValidateDelete mocks base method.
func (*MockRegister) ValidateUpdate ¶
func (m *MockRegister) ValidateUpdate(arg0 context.Context, arg1, arg2 runtime.Object) (admission.Warnings, error)
ValidateUpdate mocks base method.
type MockRegisterMockRecorder ¶
type MockRegisterMockRecorder struct {
// contains filtered or unexported fields
}
MockRegisterMockRecorder is the mock recorder for MockRegister.
func (*MockRegisterMockRecorder) Default ¶
func (mr *MockRegisterMockRecorder) Default(arg0, arg1 interface{}) *gomock.Call
Default indicates an expected call of Default.
func (*MockRegisterMockRecorder) GetCategory ¶
func (mr *MockRegisterMockRecorder) GetCategory() *gomock.Call
GetCategory indicates an expected call of GetCategory.
func (*MockRegisterMockRecorder) GetWebhookConfigurations ¶
func (mr *MockRegisterMockRecorder) GetWebhookConfigurations() *gomock.Call
GetWebhookConfigurations indicates an expected call of GetWebhookConfigurations.
func (*MockRegisterMockRecorder) ValidateCreate ¶
func (mr *MockRegisterMockRecorder) ValidateCreate(arg0, arg1 interface{}) *gomock.Call
ValidateCreate indicates an expected call of ValidateCreate.
func (*MockRegisterMockRecorder) ValidateDelete ¶
func (mr *MockRegisterMockRecorder) ValidateDelete(arg0, arg1 interface{}) *gomock.Call
ValidateDelete indicates an expected call of ValidateDelete.
func (*MockRegisterMockRecorder) ValidateUpdate ¶
func (mr *MockRegisterMockRecorder) ValidateUpdate(arg0, arg1, arg2 interface{}) *gomock.Call
ValidateUpdate indicates an expected call of ValidateUpdate.
type Register ¶
type Register interface { admission.CustomDefaulter admission.CustomValidator WebhookConfigurationProvider CategoryProvider }
Register is the interface for webhook registers
type RegisterConfig ¶
type RegisterConfig struct { *fctx.ControllerContext WebhookSvcNs string WebhookSvcName string CaBundle []byte }
RegisterConfig is the configuration for webhook registers
type WebhookConfigurationProvider ¶
type WebhookConfigurationProvider interface {
GetWebhookConfigurations() ([]admissionregv1.MutatingWebhook, []admissionregv1.ValidatingWebhook)
}
WebhookConfigurationProvider interface for webhook configurations