Documentation
¶
Index ¶
- func CreatePodFromSpec(ctx context.Context, s *specgen.PodSpecGenerator) (*entities.PodCreateReport, error)
- func Exists(ctx context.Context, nameOrID string) (bool, error)
- func Inspect(ctx context.Context, nameOrID string) (*entities.PodInspectReport, error)
- func Kill(ctx context.Context, nameOrID string, signal *string) (*entities.PodKillReport, error)
- func List(ctx context.Context, filters map[string][]string) ([]*entities.ListPodsReport, error)
- func Pause(ctx context.Context, nameOrID string) (*entities.PodPauseReport, error)
- func Prune(ctx context.Context) error
- func Remove(ctx context.Context, nameOrID string, force *bool) (*entities.PodRmReport, error)
- func Restart(ctx context.Context, nameOrID string) (*entities.PodRestartReport, error)
- func Start(ctx context.Context, nameOrID string) (*entities.PodStartReport, error)
- func Stats() error
- func Stop(ctx context.Context, nameOrID string, timeout *int) (*entities.PodStopReport, error)
- func Top(ctx context.Context, nameOrID string, descriptors []string) ([]string, error)
- func Unpause(ctx context.Context, nameOrID string) (*entities.PodUnpauseReport, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePodFromSpec ¶ added in v1.9.0
func CreatePodFromSpec(ctx context.Context, s *specgen.PodSpecGenerator) (*entities.PodCreateReport, error)
func Kill ¶
Kill sends a SIGTERM to all the containers in a pod. The optional signal parameter can be used to override SIGTERM.
func List ¶
List returns all pods in local storage. The optional filters parameter can be used to refine which pods should be listed.
func Remove ¶
Remove deletes a Pod from from local storage. The optional force parameter denotes that the Pod can be removed even if in a running state.
func Stop ¶
Stop stops all containers in a Pod. The optional timeout parameter can be used to override the timeout before the container is killed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.