grapple

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTCPConnection

func CheckTCPConnection(host string, port int) (*net.TCPAddr, error)

func FindFreePort

func FindFreePort(host string) (int, error)

func TryCall

func TryCall(tries int, waitBetweenAttempts time.Duration, f func(i int) error) error

func ValidateImage

func ValidateImage(d v1.Deployment, container string, image, tag *string) error

func ValidatePath

func ValidatePath(wd string, p *string) error

Types

type Grapple

type Grapple struct {
	// contains filtered or unexported fields
}

func NewGrapple

func NewGrapple(l *logrus.Entry, namespace, deployment string) (*Grapple, error)

func (Grapple) Attach

func (g Grapple) Attach(namespace, deployment, container, bin, arch, host string, port int, debug bool) error

func (Grapple) Delve

func (g Grapple) Delve(pod, container, sourcePath string, binArgs []string, host string,
	port int, vscode, delveContinue bool) error

func (Grapple) DeploymentConfigMapName

func (g Grapple) DeploymentConfigMapName() string

func (Grapple) Patch

func (g Grapple) Patch(image, container string, mounts []Mount) error

func (*Grapple) Rollback

func (g *Grapple) Rollback() error

func (Grapple) Shell

func (g Grapple) Shell(pod string) error

type Mount

type Mount struct {
	HostPath  string
	MountPath string
}

func ValidateMounts

func ValidateMounts(wd string, ms []string) ([]Mount, error)

Jump to

Keyboard shortcuts

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