Documentation ¶
Index ¶
- func DecodeUnstructured(data []byte) (*unstructured.Unstructured, error)
- func GetEnforcementAction(obj *unstructured.Unstructured) (string, error)
- func Prepare(resources []kruntime.Object) error
- func SetControllerReferences(resources []kruntime.Object, owner metav1.Object) error
- type GVRResolver
- type Interface
- type UnstructuredObj
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeUnstructured ¶
func DecodeUnstructured(data []byte) (*unstructured.Unstructured, error)
func GetEnforcementAction ¶
func GetEnforcementAction(obj *unstructured.Unstructured) (string, error)
Types ¶
type GVRResolver ¶
type GVRResolver interface { Refresh() error Resolve(groupKind, optionalVersion string) (*schema.GroupVersionResource, error) }
func NewGVRResolver ¶
type Interface ¶
type Interface interface { Refresh() error EnsureDeleted(ctx context.Context, groupKind, namespace, name string) error EnsureDeletedGVR(ctx context.Context, groupKind, namespace, name, optionalVersion string) error Ensure(ctx context.Context, objs ...kruntime.Object) error IsConstraintTemplateReady(ctx context.Context, name string) (bool, error) }
type UnstructuredObj ¶
type UnstructuredObj struct {
*unstructured.Unstructured
}
this is specifically for the Guardrails
func (*UnstructuredObj) DeepCopyObject ¶
func (o *UnstructuredObj) DeepCopyObject() kruntime.Object
Source Files ¶
Click to show internal directories.
Click to hide internal directories.