Documentation
¶
Index ¶
- Variables
- type ResourcePath
- func APIVersionLayerGeneralItem(apiVersion string) ResourcePath
- func Autoscaler(clusterName string) ResourcePath
- func CSMClientAccess(podNamespace string, podName string) ResourcePath
- func CSMServerAccess(podNamespace string, podName string, containerName string) ResourcePath
- func CSMServiceClientAccess(serviceNamespace string, serviceName string) ResourcePath
- func CSMServiceServerAccess(serviceNamespace string, serviceName string) ResourcePath
- func Cluster(name string) ResourcePath
- func Condition(statusOwner ResourcePath, statusName string) ResourcePath
- func Container(namespace string, name string, containerName string) ResourcePath
- func ControllerManagerControlplaneComponent(cluster string, controllerName string) ResourcePath
- func ControlplaneComponent(cluster string, component string) ResourcePath
- func EndpointSlice(namespace string, name string) ResourcePath
- func EndpointSliceChildPod(endpointSliceNamespace string, endpointSliceName string, podNamespace string, ...) ResourcePath
- func FromK8sOperation(op model.KubernetesObjectOperation) ResourcePath
- func GCPResource(resourceName string) ResourcePath
- func KindLayerGeneralItem(apiVersion, kind string) ResourcePath
- func Mig(clusterName string, nodepoolName string, migName string) ResourcePath
- func NameLayerGeneralItem(apiVersion, kind, namespace, name string) ResourcePath
- func NamespaceLayerGeneralItem(apiVersion, kind, namespace string) ResourcePath
- func NetworkEndpointGroup(negNamespace string, negName string) ResourcePath
- func NetworkEndpointGroupUnderResource(parent ResourcePath, negNamespace string, negName string) ResourcePath
- func Node(name string) ResourcePath
- func NodeBinding(nodeName string, podNamespace string, podName string) ResourcePath
- func NodeComponent(nodeName string, syslogIdentifier string) ResourcePath
- func NodeSerialport(nodeName, port string) ResourcePath
- func Nodepool(clusterName string, nodepoolName string) ResourcePath
- func Operation(operationOwner ResourcePath, operationMethod string, operationId string) ResourcePath
- func OwnerSubresource(ownerPath ResourcePath, ownedResourceName string, ownedResourceKind string) ResourcePath
- func Pod(namespace string, name string) ResourcePath
- func PodEndpointSlice(endpointSliceNamespace string, endpointSliceName string, podNamespace string, ...) ResourcePath
- func PodPhase(nodeName string, podNamespace, podName, uid string) ResourcePath
- func Service(namespace string, name string) ResourcePath
- func ServiceEndpointSlice(namespace string, endpointSliceName string, serviceName string) ResourcePath
- func SubresourceLayerGeneralItem(apiVersion, kind, namespace, name, subresource string) ResourcePath
Constants ¶
This section is empty.
Variables ¶
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 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 FromK8sOperation ¶
func FromK8sOperation(op model.KubernetesObjectOperation) 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 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.