resourcepath

package
v0.55.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PlaceholderForEmptyField = "unknown"

Functions

This section is empty.

Types

type ResourcePath

type ResourcePath struct {
	// Path is the the raw resource path represented in string like `A#B#C`. This means `the C under the B under the A at the root`.
	// KHI uses `#` as the delimiter of resource paths, this is because the root element(API version) can contain `.` or `/`.
	Path string

	// ParentRelationship explains between the location represented with this ResourcePath and its parent.
	// KHI shows various resources in a single history with mixing many types of children. It's not only like child-parent relationship, but also pseudo relationship like node-node's component relationship.
	ParentRelationship enum.ParentRelationship
}

ResourcePath contains the path representing location of a timeline in the history.

func APIVersionLayerGeneralItem

func APIVersionLayerGeneralItem(apiVersion string) ResourcePath

func Autoscaler

func Autoscaler(clusterName string) ResourcePath

func CSMClientAccess

func CSMClientAccess(podNamespace string, podName string) ResourcePath

func CSMServerAccess

func CSMServerAccess(podNamespace string, podName string, containerName string) ResourcePath

func CSMServiceClientAccess

func CSMServiceClientAccess(serviceNamespace string, serviceName string) ResourcePath

func CSMServiceServerAccess

func CSMServiceServerAccess(serviceNamespace string, serviceName string) ResourcePath

func Cluster

func Cluster(name string) ResourcePath

func Condition added in v0.50.0

func Condition(statusOwner ResourcePath, statusName string) ResourcePath

Condition returns a ResourcePath for the pseudo status timeline under the given name layer resource.

func Container

func Container(namespace string, name string, containerName string) ResourcePath

func ControllerManagerControlplaneComponent

func ControllerManagerControlplaneComponent(cluster string, controllerName string) ResourcePath

func ControlplaneComponent

func ControlplaneComponent(cluster string, component string) ResourcePath

func EndpointSlice added in v0.50.0

func EndpointSlice(namespace string, name string) ResourcePath

func EndpointSliceChildPod added in v0.50.0

func EndpointSliceChildPod(endpointSliceNamespace string, endpointSliceName string, podNamespace string, podName string) ResourcePath

func GCPResource added in v0.54.0

func GCPResource(resourceName string) ResourcePath

GCPResource returns the ResourcePath for a generic GCP resource. It parses resource names like "projects/(project)/locations/(location)/(type)/(name)" or "projects/(project)/regions/(region)/(type)/(name)" and generates a ResourcePath under "@GCP" pseudo API version.

func KindLayerGeneralItem

func KindLayerGeneralItem(apiVersion, kind string) ResourcePath

func Mig

func Mig(clusterName string, nodepoolName string, migName string) ResourcePath

func NameLayerGeneralItem

func NameLayerGeneralItem(apiVersion, kind, namespace, name string) ResourcePath

func NamespaceLayerGeneralItem

func NamespaceLayerGeneralItem(apiVersion, kind, namespace string) ResourcePath

func NetworkEndpointGroup

func NetworkEndpointGroup(negNamespace string, negName string) ResourcePath

NetworkEndpointGroup returns the ResourcePath of timeline for NEG.

func NetworkEndpointGroupUnderResource

func NetworkEndpointGroupUnderResource(parent ResourcePath, negNamespace string, negName string) ResourcePath

NetworkEndpointGroupUnderResource returns the pseudo neg timeline under the given name layer resource.

func Node

func Node(name string) ResourcePath

func NodeBinding

func NodeBinding(nodeName string, podNamespace string, podName string) ResourcePath

NodeBinding returns a ResourcePath for the pseudo binding timeline under nodes.

func NodeComponent

func NodeComponent(nodeName string, syslogIdentifier string) ResourcePath

func NodeSerialport

func NodeSerialport(nodeName, port string) ResourcePath

NodeSerialport returns a ResourcePath for the pseudo serial port timeline under nodes.

func Nodepool

func Nodepool(clusterName string, nodepoolName string) ResourcePath

func Operation

func Operation(operationOwner ResourcePath, operationMethod string, operationId string) ResourcePath

Operation returns a ResourcePath for the pseudo operation timeline under the given name layer resource.

func OwnerSubresource

func OwnerSubresource(ownerPath ResourcePath, ownedResourceName string, ownedResourceKind string) ResourcePath

OwnerSubresource returns a ResourcePath for the pseudo owner reference timeline under the given owner resource timeline at the name layer.

func Pod

func Pod(namespace string, name string) ResourcePath

func PodEndpointSlice

func PodEndpointSlice(endpointSliceNamespace string, endpointSliceName string, podNamespace string, podName string) ResourcePath

PodEndpointSlice returns a ResourcePath for the pseudo endpointslice timeline under pods.

func PodPhase added in v0.50.0

func PodPhase(nodeName string, podNamespace, podName, uid string) ResourcePath

func Service

func Service(namespace string, name string) ResourcePath

func ServiceEndpointSlice

func ServiceEndpointSlice(namespace string, endpointSliceName string, serviceName string) ResourcePath

ServiceEndpointSlice returns a ResourcePath for the pseudo endpointslice timeline under services.

func SubresourceLayerGeneralItem

func SubresourceLayerGeneralItem(apiVersion, kind, namespace, name, subresource string) ResourcePath

func (*ResourcePath) GetParentPathString

func (p *ResourcePath) GetParentPathString() string

GetParentPathString returns the string representation of the parent path.

Jump to

Keyboard shortcuts

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