Documentation ¶
Index ¶
- func BuildImage(tags []string, dockerFile string) (types.ImageBuildResponse, error)
- func ContainerExists(name string) (string, bool)
- func Init(config *config.Registry)
- func ListImages() []types.ImageSummary
- func PullImage(image string, config *config.Registry) error
- func PushImage(tag string) (io.ReadCloser, error)
- func RunContainer(name, image string, job *api.Job, config *config.Config, env []string, ...) error
- func StopContainer(name string) error
- func StreamImageEvents(out chan<- jsonmessage.JSONMessage, events io.ReadCloser)
- type ImageBuildOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImage ¶
func BuildImage(tags []string, dockerFile string) (types.ImageBuildResponse, error)
BuildImage builds the docker image.
func ContainerExists ¶
ContainerExists finds container by name and if exists returns id.
func PushImage ¶
func PushImage(tag string) (io.ReadCloser, error)
PushImage pushes image to the registry.
func RunContainer ¶
func RunContainer(name, image string, job *api.Job, config *config.Config, env []string, dir string, logch chan<- []byte) error
RunContainer runs container.
func StreamImageEvents ¶
func StreamImageEvents(out chan<- jsonmessage.JSONMessage, events io.ReadCloser)
StreamImageEvents streams output of an operation on image to a given out channel passed as a parameter.
Types ¶
type ImageBuildOutput ¶
type ImageBuildOutput struct {
Stream string `json:"stream"`
}
ImageBuildOutput defines log output when building image.
Click to show internal directories.
Click to hide internal directories.