Documentation
¶
Overview ¶
Package docker is a minimal dockerd API client for the two inspect calls imagegate needs. Those calls pass back through imagegate as GETs and are always allowed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is returned when dockerd answers 404.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client talks to dockerd over its Unix socket.
func (*Client) InspectContainer ¶
InspectContainer returns the container's image ID and creation reference.
type Container ¶
type Container struct {
ID string `json:"Id"`
// Image is the image ID the container was created from.
Image string `json:"Image"`
Config struct {
// Image is the reference the container was created with.
Image string `json:"Image"`
} `json:"Config"`
}
Container is the subset of GET /containers/{id}/json that imagegate uses.
Click to show internal directories.
Click to hide internal directories.