Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildPayload ¶ added in v0.0.8
type BuildPayload struct {
CallbackURL string `json:"callback_url"`
PushData PushData `json:"push_data"`
Repository Repository `json:"repository"`
}
type Config ¶ added in v0.0.8
type Config struct {
ContainerConfig *container.Config `json:"container_config"`
HostConfig *container.HostConfig `json:"host_config"`
NetworkConfig *network.NetworkingConfig `json:"network_config"`
}
type ImageContainer ¶
ImageContainer represents a Docker image and its running container
type Manager ¶
Manager handles the lifecycle of Docker images and their containers
func NewManager ¶
NewManager creates a new ImageManager instance
func (*Manager) RemoveImage ¶
RemoveImage removes an image and stops its container
func (*Manager) UpgradeImage ¶
func (m *Manager) UpgradeImage(ctx context.Context, build BuildPayload) error
UpgradeImage pulls the latest version of the image and replaces the running container
type RemoveRequest ¶ added in v0.0.8
type RemoveRequest struct {
ImageName string `json:"image_name"`
}
type Repository ¶ added in v0.0.8
type Repository struct {
CommentCount int `json:"comment_count"`
DateCreated float32 `json:"date_created"`
Description string `json:"description"`
Dockerfile string `json:"dockerfile"`
FullDescription string `json:"full_description"`
IsOfficial bool `json:"is_official"`
IsPrivate bool `json:"is_private"`
IsTrusted bool `json:"is_trusted"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Owner string `json:"owner"`
RepoName string `json:"repo_name"`
RepoURL string `json:"repo_url"`
StarCount int `json:"star_count"`
Status string `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.