attacher

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(out io.Writer, cfg rest.Config, pod *corev1.Pod, in *os.File, handshake, containerName string) error

Attach appropriates the behaviour of 'kubectl attach', adding a workaround for https://github.com/kubernetes/kubernetes/issues/27264. A 'handshake string' is sent, to inform the runner on the pod that the client has attached and, only then, will the runner invoke the process.

func FakeAttach

func FakeAttach(out io.Writer, cfg rest.Config, pod *corev1.Pod, in *os.File, containerName, handshake string) error

Types

type AttachFunc

type AttachFunc func(io.Writer, rest.Config, *corev1.Pod, *os.File, string, string) error

Jump to

Keyboard shortcuts

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