sort

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Jump to

Keyboard shortcuts

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