Documentation ¶
Index ¶
- func DeleteSquashDeployment(kc *kubernetes.Clientset, namespace, name string) error
- func DeleteSquashDeployments(kc *kubernetes.Clientset, deps []appsv1.Deployment) (int, error)
- func ExpectPortToBeFree(port int) error
- func FindAnyFreePort(port *int) error
- func GetAllDebugAttachments(ctx context.Context, daClient squashv1.DebugAttachmentClient, nsList []string) (squashv1.DebugAttachmentList, error)
- func GetCmdArgsByPid(pid int) ([]string, error)
- func GetDebugAttachmentClient(ctx context.Context) (v1.DebugAttachmentClient, error)
- func ListDebugAttachments(ctx context.Context, daClient squashv1.DebugAttachmentClient, nsList []string) ([]string, error)
- func ListSquashDeployments(kc *kubernetes.Clientset, nsList []string) ([]appsv1.Deployment, error)
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
IsPortFree checks if the given port is available for use
func FindAnyFreePort ¶ added in v0.4.0
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 GetCmdArgsByPid ¶
GetCmdArgsByPid gets comand line arguments of the running process by PID
func GetDebugAttachmentClient ¶ added in v0.4.0
func GetDebugAttachmentClient(ctx context.Context) (v1.DebugAttachmentClient, error)
func ListDebugAttachments ¶ added in v0.4.0
func ListSquashDeployments ¶ added in v0.4.0
func ListSquashDeployments(kc *kubernetes.Clientset, nsList []string) ([]appsv1.Deployment, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.