Documentation ¶
Index ¶
- func FileExists(path string) bool
- func GetCpuAndMemoryQuantity(pod v1beta1.PodMetrics) (cpu *resource.Quantity, memory *resource.Quantity)
- func HandlePanic(title string)
- func IsPodRunning(kubeClient contracts.K8s, namespace, podName string) (running bool, notRunningReason string)
- func K8sClientByClusterID[T ~int | ~int8 | ~int32 | ~int64](id T) contracts.K8s
- func RandomString(length int) string
- func TracingChildOfFn(ctx context.Context, name string, fn func())
- func TracingFromCtx(ctx context.Context, name string) func()
- type Closeable
- type CopyFileToPodResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func GetCpuAndMemoryQuantity ¶
func HandlePanic ¶
func HandlePanic(title string)
func IsPodRunning ¶
func K8sClientByClusterID ¶
func RandomString ¶
func TracingChildOfFn ¶
func TracingFromCtx ¶
Types ¶
type Closeable ¶ added in v0.0.46
type Closeable struct {
// contains filtered or unexported fields
}
type CopyFileToPodResult ¶
type CopyFileToPodResult struct { TargetDir string ErrOut string StdOut string ContainerPath string FileName string }
func CopyFileToPod ¶
func CopyFileToPod(kubeClient kubernetes.Interface, restConfig *restclient.Config, namespace, pod, container, fpath, targetContainerDir string) (*CopyFileToPodResult, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.