resources

package
v0.0.0-...-d0b8644 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReadResourcesFileHandle = os.ReadFile

Functions

This section is empty.

Types

type Resource

type Resource struct {
	ResourceMeta
	GVK schema.GroupVersionKind
}

type ResourceConfiguration

type ResourceConfiguration struct {
	GroupVersionKind schema.GroupVersionKind
	ControlledList   []ResourceMeta
}

type ResourceMeta

type ResourceMeta struct {
	Name      string
	Namespace string
}

type ResourcesFinder

type ResourcesFinder struct {
	// contains filtered or unexported fields
}

func NewResourcesFinderFromConfigYaml

func NewResourcesFinderFromConfigYaml(ctx context.Context, client client.Client, logger logr.Logger, path string) (*ResourcesFinder, error)

func (*ResourcesFinder) FindUserCreatedResources

func (i *ResourcesFinder) FindUserCreatedResources(isResourceRelevant resourceCondition) ([]Resource, error)

Jump to

Keyboard shortcuts

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