Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrdStore ¶
type CrdStore interface {
Get(resource schema.GroupKind) (*apiext_v1b1.CustomResourceDefinition, error)
}
CrdStore gets a CRD definition for a Group and Kind of the resource (CRD instance). Returns nil if CRD definition was not found.
type IsObjectReady ¶
type IsObjectReady func(*unstructured.Unstructured) (isReady, retriableError bool, e error)
IsObjectReady checks if an object is Ready. Each function is responsible for handling different versions of objects itself.
type ReadyChecker ¶
type ReadyChecker struct { Store CrdStore KnownTypes map[schema.GroupKind]IsObjectReady }
func New ¶
func New(store CrdStore, kts ...map[schema.GroupKind]IsObjectReady) *ReadyChecker
func (*ReadyChecker) IsReady ¶
func (rc *ReadyChecker) IsReady(obj *unstructured.Unstructured) (isReady, retriableError bool, e error)
Click to show internal directories.
Click to hide internal directories.