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 Checker ¶
type Checker struct { Store CRDStore KnownTypes map[schema.GroupKind]ObjectStatusChecker }
func (*Checker) CheckStatus ¶
func (c *Checker) CheckStatus(obj *unstructured.Unstructured) ObjectStatusResult
type Interface ¶
type Interface interface {
CheckStatus(*unstructured.Unstructured) ObjectStatusResult
}
type ObjectStatusChecker ¶
type ObjectStatusChecker func(runtime.Object) ObjectStatusResult
ObjectStatusChecker checks object's status. Function is responsible for handling different versions of objects by itself.
type ObjectStatusError ¶
func (ObjectStatusError) StatusType ¶
func (o ObjectStatusError) StatusType() ObjectStatusType
type ObjectStatusInProgress ¶
type ObjectStatusInProgress struct {
Message string
}
func (ObjectStatusInProgress) StatusType ¶
func (o ObjectStatusInProgress) StatusType() ObjectStatusType
type ObjectStatusReady ¶
type ObjectStatusReady struct {
Message string
}
func (ObjectStatusReady) StatusType ¶
func (o ObjectStatusReady) StatusType() ObjectStatusType
type ObjectStatusResult ¶
type ObjectStatusResult interface {
StatusType() ObjectStatusType
}
type ObjectStatusType ¶
type ObjectStatusType string
const ( ObjectStatusTypeReady ObjectStatusType = "Ready" ObjectStatusTypeUnknown ObjectStatusType = "Unknown" ObjectStatusTypeInProgress ObjectStatusType = "InProgress" ObjectStatusTypeError ObjectStatusType = "Error" )
type ObjectStatusUnknown ¶
type ObjectStatusUnknown struct {
Details string
}
func (ObjectStatusUnknown) StatusType ¶
func (o ObjectStatusUnknown) StatusType() ObjectStatusType
Click to show internal directories.
Click to hide internal directories.