aboutsummaryrefslogtreecommitdiff
path: root/pkg/domain/entities/system.go
blob: de93a382f5d72207ad605ec1c79bf71c1ebf40d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package entities

import (
	"time"

	"github.com/spf13/cobra"
)

// ServiceOptions provides the input for starting an API Service
type ServiceOptions struct {
	URI     string         // Path to unix domain socket service should listen on
	Timeout time.Duration  // duration of inactivity the service should wait before shutting down
	Command *cobra.Command // CLI command provided. Used in V1 code
}

// SystemPruneOptions provides options to prune system.
type SystemPruneOptions struct {
	All    bool
	Volume bool
}

// SystemPruneReport provides report after system prune is executed.
type SystemPruneReport struct {
	PodPruneReport []*PodPruneReport
	*ContainerPruneReport
	*ImagePruneReport
	VolumePruneReport []*VolumePruneReport
}