id

package
v0.0.0-...-25be970 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package id provides helper functions to create and parse ids

Index

Constants

View Source
const (
	// ExternalWorkloadKind is the fake kind for external Cilium workload.
	ExternalWorkloadKind = "Workload"
	// ExternalWorkloadNamespace is the fake namespace for external Cilium workload.
	ExternalWorkloadNamespace = "external"
)

Variables

This section is empty.

Functions

func GetExternalWorkloadID

func GetExternalWorkloadID(nodeName string) string

GetExternalWorkloadID retrieve the id for an external workload.

func GetK8sID

func GetK8sID(endpoint *flow.Endpoint) (string, error)

GetK8sID retrieve the id for a Kubernetes workload.

func ParseID

func ParseID(id string) (namespace, kind, name string, err error)

ParseID splits an id into it sub parts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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