reports

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 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) GetSingularName added in v0.0.40

func (r *Storage) GetSingularName() string

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