Documentation ¶
Index ¶
- func BuildImage(tarfile *os.File, name string) (types.ImageBuildResponse, error)
- func ContainerLogs(name string) (io.ReadCloser, error)
- func CreateApplication(c echo.Context) error
- func CreateContainer(containerConfig container.Config, hostConfig container.HostConfig, ...) (container.ContainerCreateCreatedBody, error)
- func DeleteApplication(c echo.Context) error
- func DeployApplication(c echo.Context) error
- func GetApplication(c echo.Context) error
- func GetApplications(c echo.Context) error
- func GetLogs(c echo.Context) error
- func InitDocker()
- func InspectContainer(name string) (types.ContainerJSON, error)
- func ListContainers() ([]types.Container, error)
- func PullImage(name string) error
- func RemoveContainer(name string) error
- func RemoveImage(name string) ([]types.ImageDeleteResponseItem, error)
- func StartApplication(c echo.Context) error
- func StartContainer(id string) error
- func StopApplication(c echo.Context) error
- func StopContainer(id string) error
- type Application
- type Docker
- type KeyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImage ¶
BuildImage builds an image from a tar stream
func ContainerLogs ¶
func ContainerLogs(name string) (io.ReadCloser, error)
ContainerLogs returns log of a container
func CreateApplication ¶
CreateApplication creates a new application
func CreateContainer ¶
func CreateContainer( containerConfig container.Config, hostConfig container.HostConfig, networkConfig network.NetworkingConfig, containerName string, ) (container.ContainerCreateCreatedBody, error)
CreateContainer creates a container
func DeleteApplication ¶
DeleteApplication deletes the application
func DeployApplication ¶
DeployApplication deploys an application
func GetApplication ¶
GetApplication returns a current application
func GetApplications ¶
GetApplications returns a list of all applications
func InspectContainer ¶
func InspectContainer(name string) (types.ContainerJSON, error)
InspectContainer inspects a container
func ListContainers ¶
ListContainers retrieves a list of all containers running on the system
func RemoveImage ¶
func RemoveImage(name string) ([]types.ImageDeleteResponseItem, error)
RemoveImage removes an image
func StartApplication ¶
StartApplication starts an application
func StartContainer ¶
StartContainer starts the container with id
func StopApplication ¶
StopApplication starts an application
Types ¶
type Application ¶
type Application struct { Type string `json:"type"` Message string `json:"message"` Extended []KeyValue `json:"extended,omitempty"` }
Application stores information about the application