common

package
v0.6.21 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package common provides cache.TransformFunc's which are common to all types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUnstructured

func GetUnstructured(obj any) (*unstructured.Unstructured, bool, error)

GetUnstructured retrieves an unstructured object from the provided input. If this is a signal object (like cache.DeletedFinalStateUnknown), returns true, indicating that this wasn't an unstructured object, but doesn't need to be processed by our transform function

Types

type DefaultFields

type DefaultFields struct {
	Cache SummaryCache
}

DefaultFields produces a VirtualTransformFunc through GetTransform() that applies to all k8s types

func (*DefaultFields) TransformCommon

TransformCommon implements virtual.VirtualTransformFunc, and adds reserved fields/summary

type FakeSummaryCache

type FakeSummaryCache struct {
	SummarizedObject *summary.SummarizedObject
	Relationships    []summarycache.Relationship
}

func (*FakeSummaryCache) SummaryAndRelationship

type SummaryCache

type SummaryCache interface {
	SummaryAndRelationship(runtime.Object) (*wranglerSummary.SummarizedObject, []summarycache.Relationship)
}

SummaryCache provides an interface to get a summary/relationships for an object. Implemented by the summaryCache struct from pkg/summarycache

Jump to

Keyboard shortcuts

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