key

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(s string) (podNamespace, podName, containerType, containerName string, ok bool)

Decode parses the given string into {pod namespace, pod name, container type, container name}, returns false if not a valid key, e.g. default/coredns-64897985d-6x2jm/container/coredns. Valid container types have `initContainer`, `ephemeralContainer`, `container`.

func Encode

func Encode(podNamespace, podName, containerType, containerName string) string

Encode constructs the given {pod namespace, pod name, container type, container name} into a valid key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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