virtual

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package virtual provides functions/resources to define virtual fields (fields which don't exist in k8s but should be visible in the API) on resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransformBuilder

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

TransformBuilder builds transform functions for specified GVKs through GetTransformFunc

func NewTransformBuilder

func NewTransformBuilder(cache common.SummaryCache) *TransformBuilder

NewTransformBuilder returns a TransformBuilder using the given summary cache

func (*TransformBuilder) GetTransformFunc

func (t *TransformBuilder) GetTransformFunc(gvk schema.GroupVersionKind) cache.TransformFunc

GetTransformFunc returns the func to transform a raw object into a fixed object, if needed

Directories

Path Synopsis
Package common provides cache.TransformFunc's which are common to all types
Package common provides cache.TransformFunc's which are common to all types
Package common provides cache.TransformFunc's for /v1 Event objects
Package common provides cache.TransformFunc's for /v1 Event objects

Jump to

Keyboard shortcuts

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