reports

package
v0.0.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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)

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(kc client.Client) *Storage

func (*Storage) Create

func (*Storage) Destroy

func (r *Storage) Destroy()

func (*Storage) GroupVersionKind

func (r *Storage) GroupVersionKind(_ schema.GroupVersion) schema.GroupVersionKind

func (*Storage) NamespaceScoped

func (r *Storage) NamespaceScoped() bool

func (*Storage) New

func (r *Storage) New() runtime.Object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL