Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
ListContainer(ctx context.Context, all bool) ([]*Container, error) // Show all containers (default shows just running)
ListImage(ctx context.Context, all bool) ([]*Image, error) // Show all images (default hides intermediate images)
ListNetwork(ctx context.Context) ([]*Network, error)
Logs(ctx context.Context, containerId string) (io.ReadCloser, error)
Terminal(ctx *gin.Context, containerId string, user, cmd string) error
Close()
}
type Container ¶
type Container struct {
ID string `json:"id"`
Name string `json:"name"`
Image string `json:"image"`
ImageID string `json:"imageId"`
Command string `json:"command"`
Created int64 `json:"created"`
Ports []types.Port `json:"ports"`
Status string `json:"status"`
State string `json:"state"`
NetworkMode string `json:"networkMode"`
Mounts []Mount `json:"mounts"`
Runtime string `json:"runtime"`
}
Click to show internal directories.
Click to hide internal directories.