utils

package
v0.5.19 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteSquashDeployment added in v0.4.0

func DeleteSquashDeployment(kc *kubernetes.Clientset, namespace, name string) error

func DeleteSquashDeployments added in v0.4.0

func DeleteSquashDeployments(kc *kubernetes.Clientset, deps []appsv1.Deployment) (int, error)

func ExpectPortToBeFree added in v0.4.0

func ExpectPortToBeFree(port int) error

IsPortFree checks if the given port is available for use

func FindAnyFreePort added in v0.4.0

func FindAnyFreePort(port *int) error

FindAnyFreePort returns a random port that is not in use. It does so by claiming a random open port, then closing it.

func GetAllDebugAttachments added in v0.4.0

func GetAllDebugAttachments(ctx context.Context, daClient squashv1.DebugAttachmentClient, nsList []string) (squashv1.DebugAttachmentList, error)

func GetBasicDebugAttachmentClient added in v0.5.13

func GetBasicDebugAttachmentClient(ctx context.Context) (v1.DebugAttachmentClient, error)

func GetCmdArgsByPid

func GetCmdArgsByPid(pid int) ([]string, error)

GetCmdArgsByPid gets comand line arguments of the running process by PID

func GetDebugAttachmentClientWithRegistration added in v0.5.13

func GetDebugAttachmentClientWithRegistration(ctx context.Context) (v1.DebugAttachmentClient, error)

func ListDebugAttachments added in v0.4.0

func ListDebugAttachments(ctx context.Context, daClient squashv1.DebugAttachmentClient, nsList []string) ([]string, error)

func ListSquashDeployments added in v0.4.0

func ListSquashDeployments(kc *kubernetes.Clientset, nsList []string) ([]appsv1.Deployment, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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