Versions in this module Expand all Collapse all v1 v1.0.0 Dec 3, 2021 Changes in this version + const ContainerdScheme + const CpuFile + const DiskStatsFile + const DockerScheme + const K8NS + const KubectlDebugNS + const LoadavgFile + const MemFile + const StatFile + const SwapsFile + const UpTimeFile + var DebugAttacherImplementsAttacher kubeletremote.Attacher = (*DebugAttacher)(nil) + var DefaultConfig = Config + var LxcfsEnabled bool + var LxcfsHomeDir = "/var/lib/lxc/lxcfs" + var LxcfsProcFiles = []string + var LxcfsRootDir = "/var/lib/lxc" + var PushTracker = docker.NewInMemoryTracker() + func CheckLxcfsMount() error + func Display(w io.Writer, statuses []StatusInfo, start time.Time) + func GetIPCNamespace(pid int64) string + func GetNetworkNamespace(pid int64) string + func GetPIDNamespace(pid int64) string + func GetUserNamespace(pid int64) string + func HandleResizing(resize <-chan remotecommand.TerminalSize, ...) + type Config struct + Audit bool + AuditFifo string + AuditShim []string + ContainerdEndpoint string + DockerEndpoint string + ListenAddress string + RuntimeTimeout time.Duration + StreamCreationTimeout time.Duration + StreamIdleTimeout time.Duration + Verbosity int + func Load(s string) (*Config, error) + func LoadFile(filename string) (*Config, error) + type ContainerInfo struct + MountDestinations []string + Pid int64 + type ContainerRuntime interface + ContainerInfo func(ctx context.Context, cfg RunConfig) (ContainerInfo, error) + PullImage func(ctx context.Context, image string, skipTLS bool, authStr string, cfg RunConfig) error + RunDebugContainer func(cfg RunConfig) error + var ContainerdContainerRuntimeImplementsContainerRuntime ContainerRuntime = (*ContainerdContainerRuntime)(nil) + var DockerContainerRuntimeImplementsContainerRuntime ContainerRuntime = (*DockerContainerRuntime)(nil) + type ContainerRuntimeScheme string + type ContainerdContainerRuntime struct + func (c *ContainerdContainerRuntime) ContainerInfo(ctx context.Context, cfg RunConfig) (ContainerInfo, error) + func (c *ContainerdContainerRuntime) PullImage(ctx context.Context, image string, skipTLS bool, authStr string, cfg RunConfig) error + func (c *ContainerdContainerRuntime) RunDebugContainer(cfg RunConfig) error + type DebugAttacher struct + func (a *DebugAttacher) AttachContainer(name string, uid kubetype.UID, container string, in io.Reader, ...) error + func (m *DebugAttacher) DebugContainer(cfg RunConfig) error + func (m *DebugAttacher) SetContainerLxcfs(cfg RunConfig) error + type DockerContainerRuntime struct + func (c *DockerContainerRuntime) AttachToContainer(cfg RunConfig, container string) error + func (c *DockerContainerRuntime) CleanContainer(cfg RunConfig, id string) + func (c *DockerContainerRuntime) ContainerInfo(ctx context.Context, cfg RunConfig) (ContainerInfo, error) + func (c *DockerContainerRuntime) CreateContainer(cfg RunConfig) (*container.ContainerCreateCreatedBody, error) + func (c *DockerContainerRuntime) PullImage(ctx context.Context, image string, skipTLS bool, authStr string, cfg RunConfig) error + func (c *DockerContainerRuntime) RmContainer(cfg RunConfig, id string, force bool) error + func (c *DockerContainerRuntime) RunDebugContainer(cfg RunConfig) error + func (c *DockerContainerRuntime) StartContainer(cfg RunConfig, id string) error + type RunConfig struct + type RuntimeManager struct + func NewRuntimeManager(srvCfg Config, containerUri string, verbosity int, hstNm, usrNm string) (*RuntimeManager, error) + func (m *RuntimeManager) GetAttacher(image, authStr string, lxcfsEnabled, registrySkipTLS bool, command []string, ...) kubeletremote.Attacher + type Server struct + func NewServer(config *Config) (*Server, error) + func (s *Server) Healthz(w http.ResponseWriter, req *http.Request) + func (s *Server) Run() error + func (s *Server) ServeDebug(w http.ResponseWriter, req *http.Request) + type StatusInfo struct + Offset int64 + Ref string + StartedAt time.Time + Status string + Total int64 + UpdatedAt time.Time