Versions in this module Expand all Collapse all v0 v0.4.0 Feb 27, 2026 Changes in this version type Client + func (c *Client) GetImageHistory(name string) (*ImageInspectHistory, error) + type ImageInspectHistory struct + History []image.HistoryResponseItem + Inspect image.InspectResponse v0.3.0 Feb 18, 2026 Changes in this version type ContainerSummary + Gateway string + IPAddress string + Networks map[string]string v0.2.0 Feb 18, 2026 Changes in this version type ContainerSummary + ComposeProject string + ComposeService string + IsCompose bool + Labels map[string]string v0.1.1 Feb 18, 2026 Changes in this version + type CPUStats struct + OnlineCPUs int + SystemUsage float64 + ThrottledPeriod uint64 + ThrottledTime uint64 + TotalUsage float64 + UsagePercent float64 + type Client struct + func NewContainerParser() (*Client, error) + func (c *Client) CreateScanJob(scanID, volumeName, path string) + func (c *Client) CreateVolume(req VolumeCreateRequest) (*Volume, error) + func (c *Client) GetAllScanJobs() map[string]*VolumeScanJob + func (c *Client) GetContainer(id string) (*Container, error) + func (c *Client) GetContainerLogs(id string, tail string, follow bool) (io.ReadCloser, error) + func (c *Client) GetContainerStats(id string) (*ContainerStats, error) + func (c *Client) GetScanJob(scanID string) *VolumeScanJob + func (c *Client) GetSystemInfo() (*SystemInfo, error) + func (c *Client) GetVolume(name string) (*VolumeDetail, error) + func (c *Client) GetVolumeContents(volumeName string, path string) (*VolumeContents, error) + func (c *Client) ListContainers(all bool) ([]ContainerSummary, error) + func (c *Client) ListVolumes() ([]VolumeSummary, error) + func (c *Client) PruneVolumes() (*VolumePruneReport, error) + func (c *Client) RemoveContainer(id string, force bool, removeVolumes bool) error + func (c *Client) RemoveVolume(name string, force bool) error + func (c *Client) RestartContainer(id string, timeout *int) error + func (c *Client) ScanVolumeHierarchy(volumeName, path string) (*VolumeCache, error) + func (c *Client) StartContainer(id string) error + func (c *Client) StopContainer(id string, timeout *int) error + func (c *Client) UpdateScanJob(scanID string, updateFunc func(*VolumeScanJob)) + type Container struct + Command string + Created time.Time + FinishedAt time.Time + ID string + Image string + Labels map[string]string + Mounts []Mount + Name string + NetworkSettings NetworkSettings + Ports []Port + StartedAt time.Time + State string + Status string + type ContainerStats struct + CPUUsage CPUStats + ContainerID string + DiskIOStats DiskStats + MemoryUsage MemStats + NetworkStats NetStats + PIDs int + Timestamp time.Time + Uptime string + type ContainerSummary struct + CPUPercent float64 + Created time.Time + ID string + Image string + MemPercent float64 + Name string + NetworkRx string + NetworkTx string + State string + Status string + Uptime string + type DiskStats struct + ReadBytes uint64 + ReadOps uint64 + WriteBytes uint64 + WriteOps uint64 + type MemStats struct + Cache uint64 + Limit uint64 + MaxUsage uint64 + Percent float64 + RSS uint64 + Usage uint64 + type Mount struct + Destination string + Mode string + Propagation string + RW bool + Source string + Type string + type NetStats struct + RxBytes uint64 + RxDropped uint64 + RxErrors uint64 + RxPackets uint64 + TxBytes uint64 + TxDropped uint64 + TxErrors uint64 + TxPackets uint64 + type Network struct + EndpointID string + Gateway string + GlobalIPv6 string + IPAddress string + IPv6Gateway string + MacAddress string + NetworkID string + PrefixLength int + type NetworkSettings struct + Gateway string + IPAddress string + MacAddress string + Networks map[string]Network + type Port struct + IP string + PrivatePort uint16 + PublicPort uint16 + Type string + type SystemInfo struct + Architecture string + CPUs int + ContainersPaused int + ContainersRunning int + ContainersStopped int + ContainersTotal int + DockerRootDir string + Images int + KernelVersion string + Memory uint64 + OSType string + ServerVersion string + Swap uint64 + type Volume struct + CreatedAt time.Time + Driver string + Labels map[string]string + Mountpoint string + Name string + Options map[string]string + Scope string + UsageData *VolumeUsageData + type VolumeCache struct + Entries []*VolumeCacheEntry + Path string + Scanning bool + Total int + UpdatedAt time.Time + VolumeName string + type VolumeCacheEntry struct + Children []*VolumeCacheEntry + IsDir bool + IsSymlink bool + Mode string + Modified time.Time + Name string + Path string + Size int64 + Type string + type VolumeContentEntry struct + IsDir bool + IsSymlink bool + Mode string + Modified time.Time + Name string + Path string + Size int64 + Type string + type VolumeContents struct + Contents []VolumeContentEntry + Name string + Path string + Total int + type VolumeCreateRequest struct + Driver string + DriverOpts map[string]string + Labels map[string]string + Name string + type VolumeDetail struct + Containers []VolumeMountInfo + Size string + type VolumeInspectResponse struct + Status map[string]interface{} + type VolumeListOptions struct + Filters map[string][]string + type VolumeMountInfo struct + ContainerID string + ContainerName string + MountPath string + Propagation string + ReadOnly bool + type VolumePruneReport struct + SpaceReclaimed uint64 + SpaceReclaimedFormatted string + VolumesDeleted []string + type VolumeScanJob struct + CompletedAt time.Time + Error string + Path string + Progress int + ScanID string + StartedAt time.Time + Status string + TotalItems int + VolumeName string + type VolumeScanRequest struct + Path string + VolumeName string + type VolumeScanResponse struct + Path string + ScanID string + StartedAt time.Time + Status string + VolumeName string + type VolumeScanStatus struct + CompletedAt time.Time + Error string + Path string + Progress int + ScanID string + StartedAt time.Time + Status string + TotalItems int + VolumeName string + type VolumeStats struct + CreatedAt time.Time + Driver string + Mountpoint string + Name string + RefCount int + SizeBytes int64 + type VolumeSummary struct + CreatedAt time.Time + Driver string + Labels map[string]string + Mountpoint string + Name string + RefCount int + Size string + type VolumeUsageData struct + RefCount int + SizeBytes int64