mirror of
https://github.com/zix99/traefik-lazyload.git
synced 2025-12-21 13:23:04 +01:00
20 lines
519 B
Go
20 lines
519 B
Go
package containers
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/docker/docker/api/types"
|
|
"github.com/docker/docker/api/types/container"
|
|
)
|
|
|
|
type Host interface {
|
|
ContainerList(ctx context.Context, clo types.ContainerListOptions) ([]types.Container, error)
|
|
|
|
ContainerStart(ctx context.Context, id string, opt types.ContainerStartOptions) error
|
|
ContainerStop(ctx context.Context, id string, opt container.StopOptions) error
|
|
|
|
ContainerStatsOneShot(ctx context.Context, id string) (types.ContainerStats, error)
|
|
|
|
Close() error
|
|
}
|