manager

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmephemeralContainerManager

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

func NewEmephemeralContainerManager

func NewEmephemeralContainerManager(podGetter typedcorev1.PodsGetter) *EmephemeralContainerManager

func (*EmephemeralContainerManager) ContainerName

func (e *EmephemeralContainerManager) ContainerName() string

func (*EmephemeralContainerManager) EnsurePodManaged

func (e *EmephemeralContainerManager) EnsurePodManaged(ctx context.Context, ns, pod, dbgimg, target string, pullPolicy corev1.PullPolicy) (*corev1.Pod, error)

Create or connect to an ephemeral manager container in a pod

func (*EmephemeralContainerManager) ManagerPort

func (e *EmephemeralContainerManager) ManagerPort(ctx context.Context, podclient typedcorev1.PodInterface, podObj *corev1.Pod) (uint16, error)

type Manager

type Manager interface {
	GetListeneningPorts(ctx context.Context) ([]uint16, error)
	RedirectIncomingTraffic(ctx context.Context, podPort, localPort uint16) error
	RedirectOutgoingTraffic(ctx context.Context, podPort, localPort uint16) error
}

func NewManager

func NewManager(
	ctx context.Context,
	RESTConfig *rest.Config,
	clientset *kubernetes.Clientset,
	Out io.Writer,
	ErrOut io.Writer, podname, podnamespace, container string) (Manager, error)

Jump to

Keyboard shortcuts

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