manifest

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Path       string
	Index      int
	Object     *unstructured.Unstructured
	RootObject *unstructured.Unstructured
}

func DecodeDocumentRoots

func DecodeDocumentRoots(path string, reader io.Reader) ([]Document, error)

func DecodeDocuments

func DecodeDocuments(path string, reader io.Reader) ([]Document, error)

type Identity

type Identity struct {
	Group     string `json:"group" yaml:"group"`
	Kind      string `json:"kind" yaml:"kind"`
	Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	Name      string `json:"name" yaml:"name"`
}

func IdentityOf

func IdentityOf(obj *unstructured.Unstructured) Identity

func (Identity) String

func (i Identity) String() string

type ResourceFilter

type ResourceFilter struct {
	SkipKinds   []string
	SkipCRDs    bool
	SkipSecrets bool
}

ResourceFilter describes rendered Kubernetes resources that should be dropped.

func (ResourceFilter) Drop

Drop reports whether obj should be excluded by the filter.

func (ResourceFilter) Empty

func (f ResourceFilter) Empty() bool

Empty reports whether the filter has no effective drop rules.

type SettingsResourceFilter

type SettingsResourceFilter struct {
	Exclusions []config.ResourceFilterRule
	Inclusions []config.ResourceFilterRule
}

func (SettingsResourceFilter) Drop

func (f SettingsResourceFilter) Drop(id Identity, cluster string) bool

Jump to

Keyboard shortcuts

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