debugreport

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseComposeDiagnostics

func ParseComposeDiagnostics(data []byte) ([]ComposeServiceImage, []BindMountDiagnostics, error)

func ParseMemInfo

func ParseMemInfo(data string) (memoryBytes int64, swapBytes int64, err error)

Types

type BindMountDiagnostics

type BindMountDiagnostics struct {
	Service        string
	Source         string
	Target         string
	AvailableBytes int64
	Issue          string
}

type ComposeDiagnostics

type ComposeDiagnostics struct {
	ComposePath string
	Services    []ComposeServiceImage
	BindMounts  []BindMountDiagnostics
	Issues      []string
}

func CollectComposeDiagnostics

func CollectComposeDiagnostics(runCtx context.Context, ctxCfg *config.Context) ComposeDiagnostics

func CollectComposeDiagnosticsWithSession

func CollectComposeDiagnosticsWithSession(runCtx context.Context, ctxCfg *config.Context, session *Session) ComposeDiagnostics

type ComposeServiceImage

type ComposeServiceImage struct {
	Service string
	Image   string
}

func ParseComposeServiceImages

func ParseComposeServiceImages(data []byte) ([]ComposeServiceImage, error)

type HostDiagnostics

type HostDiagnostics struct {
	CPUCount           int
	MemoryBytes        int64
	SwapBytes          int64
	DiskAvailableBytes int64
	OSVersion          string
	Issues             []string
}

func CollectHostDiagnostics

func CollectHostDiagnostics(runCtx context.Context, ctxCfg *config.Context) HostDiagnostics

func CollectHostDiagnosticsWithSession

func CollectHostDiagnosticsWithSession(runCtx context.Context, ctxCfg *config.Context, session *Session) HostDiagnostics

type Session

type Session struct {
	// contains filtered or unexported fields
}

func NewSession

func NewSession(ctxCfg *config.Context) (*Session, error)

func (*Session) Close

func (s *Session) Close() error

func (*Session) DockerClient

func (s *Session) DockerClient() (*docker.DockerClient, error)

func (*Session) RunQuietCommandContext

func (s *Session) RunQuietCommandContext(runCtx context.Context, cmd *exec.Cmd) (string, error)

Jump to

Keyboard shortcuts

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