Documentation ¶
Index ¶
- func GetAuditTimeOfConstraint(constraint unstructured.Unstructured) (time.Time, error)
- func GetNameOfConstraint(constraint unstructured.Unstructured) (string, error)
- func GetResourceFQNOfConstraint(constraint unstructured.Unstructured) (schema.GroupVersionResource, error)
- func GetViolationsOfConstraint(constraint unstructured.Unstructured) ([]audit.StatusViolation, error)
- func ListConstraints(ctx context.Context, kc client.Client, kind string) (unstructured.UnstructuredList, error)
- func ListTemplates(ctx context.Context, kc client.Client) (unstructured.UnstructuredList, error)
- type Storage
- func (r *Storage) Create(ctx context.Context, obj runtime.Object, _ rest.ValidateObjectFunc, ...) (runtime.Object, error)
- func (r *Storage) Destroy()
- func (r *Storage) GroupVersionKind(_ schema.GroupVersion) schema.GroupVersionKind
- func (r *Storage) NamespaceScoped() bool
- func (r *Storage) New() runtime.Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuditTimeOfConstraint ¶
func GetAuditTimeOfConstraint(constraint unstructured.Unstructured) (time.Time, error)
func GetNameOfConstraint ¶
func GetNameOfConstraint(constraint unstructured.Unstructured) (string, error)
func GetResourceFQNOfConstraint ¶ added in v0.0.22
func GetResourceFQNOfConstraint(constraint unstructured.Unstructured) (schema.GroupVersionResource, error)
func GetViolationsOfConstraint ¶
func GetViolationsOfConstraint(constraint unstructured.Unstructured) ([]audit.StatusViolation, error)
func ListConstraints ¶
func ListConstraints(ctx context.Context, kc client.Client, kind string) (unstructured.UnstructuredList, error)
func ListTemplates ¶
func ListTemplates(ctx context.Context, kc client.Client) (unstructured.UnstructuredList, error)
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) GroupVersionKind ¶
func (r *Storage) GroupVersionKind(_ schema.GroupVersion) schema.GroupVersionKind
func (*Storage) NamespaceScoped ¶
Click to show internal directories.
Click to hide internal directories.