attach

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package attach provides the container attach command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAttach

func NewCmdAttach(f *cmdutil.Factory, runF func(context.Context, *AttachOptions) error) *cobra.Command

NewCmdAttach creates a new attach command.

Types

type AttachOptions

type AttachOptions struct {
	IOStreams      *iostreams.IOStreams
	Client         func(context.Context) (*docker.Client, error)
	ProjectManager func() (project.ProjectManager, error)
	HostProxy      func() hostproxy.HostProxyService
	Logger         func() (*logger.Logger, error)

	Agent      bool // treat argument as agent name(resolves to clawker.<project>.<agent>)
	NoStdin    bool
	SigProxy   bool
	DetachKeys string
	// contains filtered or unexported fields
}

AttachOptions holds options for the attach command.

Jump to

Keyboard shortcuts

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