suspender

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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