inventory

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const EventTimeFormat = "2006-01-02 15:04:05"

Variables

This section is empty.

Functions

func GetClient

func GetClient(clientConfig *rest.Config) (client.Client, error)

func GetNamespaceResources

func GetNamespaceResources(ctx context.Context, clientConfig *rest.Config, namespace string) ([]unstructured.Unstructured, error)

func PrintResourcesStatus

func PrintResourcesStatus(ctx context.Context, opts InventoryOptions, clientConfig *rest.Config, writers []io.Writer, objs ...client.Object)

Types

type InventoryOptions

type InventoryOptions struct {
	SkipReadyResources bool
}

type NoopWarningLogger

type NoopWarningLogger struct{}

func (NoopWarningLogger) HandleWarningHeader

func (NoopWarningLogger) HandleWarningHeader(code int, agent string, message string)

type ResourcesMap

type ResourcesMap map[types.UID]*unstructuredNode

func GetResourcesMap

func GetResourcesMap(ctx context.Context, namespaces []string, clientConfig *rest.Config) (ResourcesMap, error)

type TimeSortableEvents

type TimeSortableEvents []*eventv1.Event

func (TimeSortableEvents) Len

func (events TimeSortableEvents) Len() int

func (TimeSortableEvents) Less

func (events TimeSortableEvents) Less(a, b int) bool

func (TimeSortableEvents) Swap

func (events TimeSortableEvents) Swap(a, b int)

Jump to

Keyboard shortcuts

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