Versions in this module Expand all Collapse all v0 v0.6.1 Jan 6, 2022 v0.6.0 Dec 31, 2021 v0.5.2 Nov 18, 2021 v0.5.1 Oct 22, 2021 v0.5.0 Sep 27, 2021 Changes in this version + const DefaultSealerRegistryURL + const FSDebugID + const NodeDebugPrefix + const PodDebugPrefix + const SealerDebugMotd + const TypeDebugNode + const TypeDebugPod + var CleanCMD = &cobra.Command + var ShowImagesCMD = &cobra.Command + func ContainerNameToRef(pod *corev1.Pod) map[string]*corev1.Container + func GetContainerStatusByName(pod *corev1.Pod, containerName string) *corev1.ContainerStatus + func GetSize(fd uintptr) *remotecommand.TerminalSize + func IsTerminal(i interface{}) bool + func NewDebugNodeCommand(options *DebuggerOptions) *cobra.Command + func NewDebugPodCommand(options *DebuggerOptions) *cobra.Command + func SetKubernetesDefaults(config *rest.Config) error + func WaitForContainer(ctx context.Context, client corev1client.PodsGetter, ...) (*corev1.Pod, error) + type CleanOptions struct + ContainerName string + Namespace string + PodName string + func NewDebugCleanOptions() *CleanOptions + type Cleaner struct + AdminKubeConfigPath string + func NewDebugCleaner() *Cleaner + func (cleaner *Cleaner) CompleteAndVerifyOptions(args []string) error + func (cleaner *Cleaner) ExitEphemeralContainer(config *restclient.Config) error + func (cleaner *Cleaner) RemovePod(ctx context.Context, kubeClientCorev1 corev1client.CoreV1Interface) error + func (cleaner *Cleaner) Run() error + type Connector struct + Command []string + Config *restclient.Config + ContainerName string + Motd string + NameSpace string + Pod *corev1.Pod + Stdin bool + TTY bool + func (connector *Connector) Connect() error + func (connector *Connector) ContainerToConnect() (*corev1.Container, error) + func (connector *Connector) DoConnect(method string, url *url.URL, terminalSizeQueue remotecommand.TerminalSizeQueue) error + func (connector *Connector) GetDefaultAttachFunc(containerToAttach *corev1.Container, sizeQueue remotecommand.TerminalSizeQueue) func() error + func (connector *Connector) GetDefaultExecFunc(containerToAttach *corev1.Container, sizeQueue remotecommand.TerminalSizeQueue) func() error + func (connector *Connector) SetTTY() TTY + type Debugger struct + Motd string + func NewDebugger(options *DebuggerOptions) *Debugger + func (debugger *Debugger) CompleteAndVerifyOptions(cmd *cobra.Command, args []string, imager ImagesManagement) error + func (debugger *Debugger) DebugNode(ctx context.Context) (*corev1.Pod, error) + func (debugger *Debugger) DebugPod(ctx context.Context) (*corev1.Pod, error) + func (debugger *Debugger) Run() (string, error) + type DebuggerOptions struct + AdminKubeConfigPath string + CheckList []string + Command []string + DebugContainerName string + Env []corev1.EnvVar + Image string + Interactive bool + Namespace string + PullPolicy string + TTY bool + TargetContainer string + TargetName string + Type string + func NewDebugOptions() *DebuggerOptions + type Handler struct + func Chain(handler *Handler, notify ...func()) *Handler + func New(final func(os.Signal), notify ...func()) *Handler + func (h *Handler) Close() + func (h *Handler) Run(fn func() error) error + func (h *Handler) Signal(s os.Signal) + type ImagesManagement interface + GetDefaultImage func() (string, error) + ShowDefaultImages func() error + type ImagesManager struct + DefaultImage string + DefaultImageKey string + DefaultImagesMap map[string]string + RegistryURL string + func NewDebugImagesManager() *ImagesManager + func (manager *ImagesManager) GetDefaultImage() (string, error) + func (manager *ImagesManager) ShowDefaultImages() error + type SafeFunc func() error + type TTY struct + In io.Reader + Out io.Writer + Parent *Handler + Raw bool + TryDev bool + func (t *TTY) MonitorSize(initialSizes ...*remotecommand.TerminalSize) remotecommand.TerminalSizeQueue + func (t TTY) GetSize() *remotecommand.TerminalSize + func (t TTY) IsTerminalIn() bool + func (t TTY) IsTerminalOut() bool + func (t TTY) Safe(fn SafeFunc) error