Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeSuspender ¶
type FakeSuspender struct {
SuspendComponentFunc func(v1alpha1.Cluster, v1alpha1.MemberType) (bool, error)
}
func NewFakeSuspender ¶
func NewFakeSuspender() *FakeSuspender
func (*FakeSuspender) SuspendComponent ¶
func (s *FakeSuspender) SuspendComponent(cluster v1alpha1.Cluster, comp v1alpha1.MemberType) (bool, error)
type Suspender ¶
type Suspender interface { // SuspendComponent suspends the component if needed. // // Returns true if the component is needed to be suspended, and the reconciliation should be skipped. SuspendComponent(v1alpha1.Cluster, v1alpha1.MemberType) (bool, error) }
func NewSuspender ¶
func NewSuspender(deps *controller.Dependencies) Suspender
Click to show internal directories.
Click to hide internal directories.