Documentation ¶
Index ¶
Constants ¶
View Source
const ( ManagedVariableName = "managed" DependentVariableName = "dependent" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeletionBlock ¶
type DeletionBlock struct { Query string `json:"query,omitempty"` Managed GroupVersionKind `json:"managed,omitempty"` Dependent GroupVersionKind `json:"dependent,omitempty"` }
func (DeletionBlock) CheckIsDeletionAllowed ¶
func (dbr DeletionBlock) CheckIsDeletionAllowed(managed unstructured.Unstructured, dependents unstructured.UnstructuredList) (bool, error)
func (DeletionBlock) CheckIsDependent ¶
func (dbr DeletionBlock) CheckIsDependent(managed unstructured.Unstructured, dependent unstructured.Unstructured) (bool, error)
type GroupVersionKind ¶
type GroupVersionKind struct { Group string `json:"group,omitempty"` Version string `json:"version,omitempty"` Kind string `json:"kind,omitempty"` }
func (GroupVersionKind) GetSchemaGroupVersionKind ¶
func (k GroupVersionKind) GetSchemaGroupVersionKind() schema.GroupVersionKind
Click to show internal directories.
Click to hide internal directories.