Documentation ¶
Index ¶
- Constants
- func Create(opts CreateOptions) error
- func Inspect(id string) (string, error)
- func Kill(id string) error
- func List() ([]*entities.ListPodsReport, error)
- func Pause(id string) error
- func Prune() ([]string, error)
- func Remove(id string) ([]string, error)
- func Restart(id string) error
- func Start(id string) error
- func Stop(id string) error
- func Top(id string) ([][]string, error)
- func Unpause(id string) error
- type CreateOptions
- type StatReporter
- type StatsOptions
Constants ¶
View Source
const ( StatSortByPodID = 0 + iota StatSortByContainerName StatSortByCPUPerc StatSortByMemPerc )
Stats sort options.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOptions ¶
type CreateOptions struct { Name string NoHost bool Labels map[string]string DNSServer []string DNSOptions []string DNSSearchDomain []string Infra bool InfraCommand string InfraImage string Hostname string IPAddress string MacAddress string AddHost []string Network string Publish []string SecurityOpts []string }
CreateOptions implements pods create spec options.
type StatReporter ¶ added in v0.2.0
type StatReporter struct {
entities.PodStatsReport
}
StatReporter implements pod stats metrics.
func Stats ¶ added in v0.2.0
func Stats(opts *StatsOptions) ([]StatReporter, error)
Stats returns resource-usage statistics of a pod.
type StatsOptions ¶ added in v0.2.0
StatsOptions pod stats query option.
Click to show internal directories.
Click to hide internal directories.