Documentation
¶
Index ¶
- Variables
- type Amount
- type BuildCacheInfo
- type BuildCacheSummary
- type ContainerInfo
- type ContainerSummary
- type DeleteRequest
- type DeleteResult
- type Handler
- type ImageInfo
- type ImageSummary
- type MaintenanceInfo
- type NetworkInfo
- type NetworkSummary
- type PruneRequest
- type PruneResult
- type Removal
- type Service
- type SystemInfo
- type VolumeInfo
- type VolumeSummary
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("maintenance", fx.Provide(NewService), fx.Provide(NewHandler), )
Functions ¶
This section is empty.
Types ¶
type BuildCacheInfo ¶
type BuildCacheInfo struct {
ID string `json:"id"`
Type string `json:"type"`
Description string `json:"description"`
Size int64 `json:"size"`
Created time.Time `json:"created"`
LastUsed *time.Time `json:"last_used"`
UsageCount int `json:"usage_count"`
InUse bool `json:"in_use"`
Removal Removal `json:"removal"`
}
type BuildCacheSummary ¶
type BuildCacheSummary struct {
Total Amount `json:"total"`
Cache []BuildCacheInfo `json:"cache"`
}
type ContainerInfo ¶
type ContainerSummary ¶
type ContainerSummary struct {
Total Amount `json:"total"`
RunningCount int `json:"running_count"`
Containers []ContainerInfo `json:"containers"`
}
type DeleteRequest ¶
type DeleteResult ¶
type ImageSummary ¶
type MaintenanceInfo ¶
type MaintenanceInfo struct {
SystemInfo SystemInfo `json:"system_info"`
ImageSummary ImageSummary `json:"image_summary"`
ContainerSummary ContainerSummary `json:"container_summary"`
VolumeSummary VolumeSummary `json:"volume_summary"`
NetworkSummary NetworkSummary `json:"network_summary"`
BuildCacheSummary BuildCacheSummary `json:"build_cache_summary"`
SystemCleanupCovers []string `json:"system_cleanup_covers"`
LastUpdated time.Time `json:"last_updated"`
}
type NetworkInfo ¶
type NetworkInfo struct {
ID string `json:"id"`
Name string `json:"name"`
Driver string `json:"driver"`
Scope string `json:"scope"`
Created time.Time `json:"created"`
Internal bool `json:"internal"`
Labels map[string]string `json:"labels"`
Unused bool `json:"unused"`
Subnet string `json:"subnet"`
Removal Removal `json:"removal"`
}
type NetworkSummary ¶
type NetworkSummary struct {
TotalCount int `json:"total_count"`
UnusedCount int `json:"unused_count"`
Networks []NetworkInfo `json:"networks"`
}
type PruneRequest ¶
type PruneResult ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) DeleteResource ¶
func (s *Service) DeleteResource(ctx context.Context, req *DeleteRequest) (*DeleteResult, error)
func (*Service) GetSystemInfo ¶
func (s *Service) GetSystemInfo(ctx context.Context) (*MaintenanceInfo, error)
func (*Service) PruneDocker ¶
func (s *Service) PruneDocker(ctx context.Context, req *PruneRequest) (*PruneResult, error)
type SystemInfo ¶
type SystemInfo struct {
Version string `json:"version"`
APIVersion string `json:"api_version"`
Architecture string `json:"architecture"`
OS string `json:"os"`
KernelVersion string `json:"kernel_version"`
TotalMemory int64 `json:"total_memory"`
NCPU int `json:"ncpu"`
StorageDriver string `json:"storage_driver"`
DockerRootDir string `json:"docker_root_dir"`
}
type VolumeInfo ¶
type VolumeInfo struct {
Name string `json:"name"`
Driver string `json:"driver"`
Mountpoint string `json:"mountpoint"`
Created time.Time `json:"created"`
Size int64 `json:"size"`
Labels map[string]string `json:"labels"`
Anonymous bool `json:"anonymous"`
Unused bool `json:"unused"`
Removal Removal `json:"removal"`
}
type VolumeSummary ¶
type VolumeSummary struct {
Total Amount `json:"total"`
Unused Amount `json:"unused"`
Volumes []VolumeInfo `json:"volumes"`
}
Click to show internal directories.
Click to hide internal directories.