Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockHibernationActuator
- func (m *MockHibernationActuator) CanHandle(cd *v1.ClusterDeployment) bool
- func (m *MockHibernationActuator) EXPECT() *MockHibernationActuatorMockRecorder
- func (m *MockHibernationActuator) MachinesRunning(cd *v1.ClusterDeployment, hiveClient client.Client, logger logrus.FieldLogger) (bool, []string, error)
- func (m *MockHibernationActuator) MachinesStopped(cd *v1.ClusterDeployment, hiveClient client.Client, logger logrus.FieldLogger) (bool, []string, error)
- func (m *MockHibernationActuator) StartMachines(cd *v1.ClusterDeployment, hiveClient client.Client, logger logrus.FieldLogger) error
- func (m *MockHibernationActuator) StopMachines(cd *v1.ClusterDeployment, hiveClient client.Client, logger logrus.FieldLogger) error
- type MockHibernationActuatorMockRecorder
- func (mr *MockHibernationActuatorMockRecorder) CanHandle(cd interface{}) *gomock.Call
- func (mr *MockHibernationActuatorMockRecorder) MachinesRunning(cd, hiveClient, logger interface{}) *gomock.Call
- func (mr *MockHibernationActuatorMockRecorder) MachinesStopped(cd, hiveClient, logger interface{}) *gomock.Call
- func (mr *MockHibernationActuatorMockRecorder) StartMachines(cd, hiveClient, logger interface{}) *gomock.Call
- func (mr *MockHibernationActuatorMockRecorder) StopMachines(cd, hiveClient, logger interface{}) *gomock.Call
- type MockHibernationPreemptibleMachines
- type MockHibernationPreemptibleMachinesMockRecorder
- type MockcsrHelper
- func (m *MockcsrHelper) Approve(client kubernetes.Interface, csr *v1.CertificateSigningRequest) error
- func (m *MockcsrHelper) Authorize(machines []v1beta1.Machine, nodes kubernetes.Interface, ...) error
- func (m *MockcsrHelper) EXPECT() *MockcsrHelperMockRecorder
- func (m *MockcsrHelper) IsApproved(csr *v1.CertificateSigningRequest) bool
- func (m *MockcsrHelper) Parse(obj *v1.CertificateSigningRequest) (*x509.CertificateRequest, error)
- type MockcsrHelperMockRecorder
- func (mr *MockcsrHelperMockRecorder) Approve(client, csr interface{}) *gomock.Call
- func (mr *MockcsrHelperMockRecorder) Authorize(machines, nodes, req, csr interface{}) *gomock.Call
- func (mr *MockcsrHelperMockRecorder) IsApproved(csr interface{}) *gomock.Call
- func (mr *MockcsrHelperMockRecorder) Parse(obj interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHibernationActuator ¶
type MockHibernationActuator struct {
// contains filtered or unexported fields
}
MockHibernationActuator is a mock of HibernationActuator interface
func NewMockHibernationActuator ¶
func NewMockHibernationActuator(ctrl *gomock.Controller) *MockHibernationActuator
NewMockHibernationActuator creates a new mock instance
func (*MockHibernationActuator) CanHandle ¶
func (m *MockHibernationActuator) CanHandle(cd *v1.ClusterDeployment) bool
CanHandle mocks base method
func (*MockHibernationActuator) EXPECT ¶
func (m *MockHibernationActuator) EXPECT() *MockHibernationActuatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHibernationActuator) MachinesRunning ¶
func (m *MockHibernationActuator) MachinesRunning(cd *v1.ClusterDeployment, hiveClient client.Client, logger logrus.FieldLogger) (bool, []string, error)
MachinesRunning mocks base method
func (*MockHibernationActuator) MachinesStopped ¶
func (m *MockHibernationActuator) MachinesStopped(cd *v1.ClusterDeployment, hiveClient client.Client, logger logrus.FieldLogger) (bool, []string, error)
MachinesStopped mocks base method
func (*MockHibernationActuator) StartMachines ¶
func (m *MockHibernationActuator) StartMachines(cd *v1.ClusterDeployment, hiveClient client.Client, logger logrus.FieldLogger) error
StartMachines mocks base method
func (*MockHibernationActuator) StopMachines ¶
func (m *MockHibernationActuator) StopMachines(cd *v1.ClusterDeployment, hiveClient client.Client, logger logrus.FieldLogger) error
StopMachines mocks base method
type MockHibernationActuatorMockRecorder ¶
type MockHibernationActuatorMockRecorder struct {
// contains filtered or unexported fields
}
MockHibernationActuatorMockRecorder is the mock recorder for MockHibernationActuator
func (*MockHibernationActuatorMockRecorder) CanHandle ¶
func (mr *MockHibernationActuatorMockRecorder) CanHandle(cd interface{}) *gomock.Call
CanHandle indicates an expected call of CanHandle
func (*MockHibernationActuatorMockRecorder) MachinesRunning ¶
func (mr *MockHibernationActuatorMockRecorder) MachinesRunning(cd, hiveClient, logger interface{}) *gomock.Call
MachinesRunning indicates an expected call of MachinesRunning
func (*MockHibernationActuatorMockRecorder) MachinesStopped ¶
func (mr *MockHibernationActuatorMockRecorder) MachinesStopped(cd, hiveClient, logger interface{}) *gomock.Call
MachinesStopped indicates an expected call of MachinesStopped
func (*MockHibernationActuatorMockRecorder) StartMachines ¶
func (mr *MockHibernationActuatorMockRecorder) StartMachines(cd, hiveClient, logger interface{}) *gomock.Call
StartMachines indicates an expected call of StartMachines
func (*MockHibernationActuatorMockRecorder) StopMachines ¶
func (mr *MockHibernationActuatorMockRecorder) StopMachines(cd, hiveClient, logger interface{}) *gomock.Call
StopMachines indicates an expected call of StopMachines
type MockHibernationPreemptibleMachines ¶ added in v1.1.10
type MockHibernationPreemptibleMachines struct {
// contains filtered or unexported fields
}
MockHibernationPreemptibleMachines is a mock of HibernationPreemptibleMachines interface
func NewMockHibernationPreemptibleMachines ¶ added in v1.1.10
func NewMockHibernationPreemptibleMachines(ctrl *gomock.Controller) *MockHibernationPreemptibleMachines
NewMockHibernationPreemptibleMachines creates a new mock instance
func (*MockHibernationPreemptibleMachines) EXPECT ¶ added in v1.1.10
func (m *MockHibernationPreemptibleMachines) EXPECT() *MockHibernationPreemptibleMachinesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHibernationPreemptibleMachines) ReplaceMachines ¶ added in v1.1.10
func (m *MockHibernationPreemptibleMachines) ReplaceMachines(cd *v1.ClusterDeployment, remoteClient client.Client, logger logrus.FieldLogger) (bool, error)
ReplaceMachines mocks base method
type MockHibernationPreemptibleMachinesMockRecorder ¶ added in v1.1.10
type MockHibernationPreemptibleMachinesMockRecorder struct {
// contains filtered or unexported fields
}
MockHibernationPreemptibleMachinesMockRecorder is the mock recorder for MockHibernationPreemptibleMachines
func (*MockHibernationPreemptibleMachinesMockRecorder) ReplaceMachines ¶ added in v1.1.10
func (mr *MockHibernationPreemptibleMachinesMockRecorder) ReplaceMachines(cd, remoteClient, logger interface{}) *gomock.Call
ReplaceMachines indicates an expected call of ReplaceMachines
type MockcsrHelper ¶
type MockcsrHelper struct {
// contains filtered or unexported fields
}
MockcsrHelper is a mock of csrHelper interface
func NewMockcsrHelper ¶
func NewMockcsrHelper(ctrl *gomock.Controller) *MockcsrHelper
NewMockcsrHelper creates a new mock instance
func (*MockcsrHelper) Approve ¶
func (m *MockcsrHelper) Approve(client kubernetes.Interface, csr *v1.CertificateSigningRequest) error
Approve mocks base method
func (*MockcsrHelper) Authorize ¶
func (m *MockcsrHelper) Authorize(machines []v1beta1.Machine, nodes kubernetes.Interface, req *v1.CertificateSigningRequest, csr *x509.CertificateRequest) error
Authorize mocks base method
func (*MockcsrHelper) EXPECT ¶
func (m *MockcsrHelper) EXPECT() *MockcsrHelperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockcsrHelper) IsApproved ¶
func (m *MockcsrHelper) IsApproved(csr *v1.CertificateSigningRequest) bool
IsApproved mocks base method
func (*MockcsrHelper) Parse ¶
func (m *MockcsrHelper) Parse(obj *v1.CertificateSigningRequest) (*x509.CertificateRequest, error)
Parse mocks base method
type MockcsrHelperMockRecorder ¶
type MockcsrHelperMockRecorder struct {
// contains filtered or unexported fields
}
MockcsrHelperMockRecorder is the mock recorder for MockcsrHelper
func (*MockcsrHelperMockRecorder) Approve ¶
func (mr *MockcsrHelperMockRecorder) Approve(client, csr interface{}) *gomock.Call
Approve indicates an expected call of Approve
func (*MockcsrHelperMockRecorder) Authorize ¶
func (mr *MockcsrHelperMockRecorder) Authorize(machines, nodes, req, csr interface{}) *gomock.Call
Authorize indicates an expected call of Authorize
func (*MockcsrHelperMockRecorder) IsApproved ¶
func (mr *MockcsrHelperMockRecorder) IsApproved(csr interface{}) *gomock.Call
IsApproved indicates an expected call of IsApproved
func (*MockcsrHelperMockRecorder) Parse ¶
func (mr *MockcsrHelperMockRecorder) Parse(obj interface{}) *gomock.Call
Parse indicates an expected call of Parse