rules

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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