Documentation ¶
Index ¶
- Constants
- func ControllerDependenciesFulfilled(fedObject fedcorev1a1.GenericFederatedObject, controllerName string) (bool, error)
- func SetPendingControllers(fedObject fedcorev1a1.GenericFederatedObject, controllers PendingControllers) (updated bool, err error)
- func UpdatePendingControllers(fedObject fedcorev1a1.GenericFederatedObject, toRemove string, ...) (updated bool, err error)
- type PendingControllers
Constants ¶
View Source
const (
PendingControllersAnnotation = common.DefaultPrefix + "pending-controllers"
)
Variables ¶
This section is empty.
Functions ¶
func ControllerDependenciesFulfilled ¶
func ControllerDependenciesFulfilled(fedObject fedcorev1a1.GenericFederatedObject, controllerName string) (bool, error)
func SetPendingControllers ¶
func SetPendingControllers( fedObject fedcorev1a1.GenericFederatedObject, controllers PendingControllers, ) (updated bool, err error)
func UpdatePendingControllers ¶
func UpdatePendingControllers( fedObject fedcorev1a1.GenericFederatedObject, toRemove string, shouldSetDownstream bool, allControllers PendingControllers, ) (updated bool, err error)
Types ¶
type PendingControllers ¶
type PendingControllers [][]string
func GetDownstreamControllers ¶
func GetDownstreamControllers(allControllers PendingControllers, current string) PendingControllers
func GetPendingControllers ¶
func GetPendingControllers(fedObject fedcorev1a1.GenericFederatedObject) (PendingControllers, error)
func NormalizeControllers ¶
func NormalizeControllers(controllers PendingControllers) PendingControllers
Returns a deep copy of controllers, with 0-length inner slices removed. The outer slice is guaranteed to be non-nil if empty for less ambiguity.
Click to show internal directories.
Click to hide internal directories.