attacher

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 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, namespace, name string, 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, namespace, name string, in *os.File, containerName, handshake string) error

Types

type AttachFunc

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

Jump to

Keyboard shortcuts

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