Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Object ¶
func Object(obj *unstructured.Unstructured, rules []SortingRule) (*unstructured.Unstructured, error)
func Objects ¶
func Objects(objects []*unstructured.Unstructured, objectRules []SortingRule) ([]*unstructured.Unstructured, error)
Types ¶
type SortingRule ¶
type SortingRule struct { Kinds []string `yaml:"kinds,omitempty"` Path string `yaml:"path"` ByKey string `yaml:"byKey,omitempty"` ByValue *bool `yaml:"byValue,omitempty"` RBACRules *bool `yaml:"rbacRules,omitempty"` RBACSubjects *bool `yaml:"rbacSubjects,omitempty"` }
func (SortingRule) JSONPath ¶
func (r SortingRule) JSONPath() jsonpath.Path
func (SortingRule) Matches ¶
func (r SortingRule) Matches(obj *unstructured.Unstructured) bool
func (SortingRule) Validate ¶
func (r SortingRule) Validate() error
Click to show internal directories.
Click to hide internal directories.