Documentation ¶
Overview ¶
Package types contains common types used and exposed by the component-operator-runtime framework.
Index ¶
Constants ¶
View Source
const ( LabelKeySuffixOwnerId = "owner-id" AnnotationKeySuffixDigest = "digest" AnnotationKeySuffixReconcilePolicy = "reconcile-policy" AnnotationKeySuffixUpdatePolicy = "update-policy" AnnotationKeySuffixOrder = "order" AnnotationKeySuffixPurgeOrder = "purge-order" AnnotationKeySuffixOwnerId = "owner-id" )
View Source
const ( ReconcilePolicyOnObjectChange = "on-object-change" ReconcilePolicyOnObjectOrComponentChange = "on-object-or-component-change" ReconcilePolicyOnce = "once" )
View Source
const ( UpdatePolicyDefault = "default" UpdatePolicyRecreate = "recreate" )
Variables ¶
This section is empty.
Functions ¶
func ObjectKeyToString ¶
Return a string representation of an ObjectKey.
Types ¶
type ObjectKey ¶
type ObjectKey interface { GetObjectKind() schema.ObjectKind GetNamespace() string GetName() string }
Represents types which have TypeMeta, and a namespace and a name. All types implementing controller-runtime's client.Object obviously implement ObjectKey as well.
type RetriableError ¶ added in v0.2.3
type RetriableError struct {
// contains filtered or unexported fields
}
func NewRetriableError ¶ added in v0.2.3
func NewRetriableError(err error, retryAfter *time.Duration) RetriableError
func (RetriableError) Cause ¶ added in v0.2.3
func (e RetriableError) Cause() error
func (RetriableError) Error ¶ added in v0.2.3
func (e RetriableError) Error() string
func (RetriableError) RetryAfter ¶ added in v0.2.3
func (e RetriableError) RetryAfter() *time.Duration
func (RetriableError) Unwrap ¶ added in v0.2.3
func (e RetriableError) Unwrap() error
type SchemeBuilder ¶ added in v0.2.3
SchemeBuilder interface.
type Unstructurable ¶
Unstructurable represents objects which can be converted into a string-keyed map. All Kubernetes API types, as well as all JSON objects could be modelled as Unstructurable objects.
type UnstructurableMap ¶
UnstructurableMap is a string-keyed map, implementing the Unstructurable interface in the natural way.
func (UnstructurableMap) ToUnstructured ¶
func (m UnstructurableMap) ToUnstructured() map[string]any
ToUnstructured() just returns the map itself.
Click to show internal directories.
Click to hide internal directories.