Documentation ¶
Index ¶
- Constants
- func GetByName(name string) (*types.Container, error)
- func ImageBuild(opts ImageBuildOptions) (*types.ImageSummary, error)
- func ImageList(listFilters []string) ([]types.ImageSummary, error)
- func ImageRemove(id string, force bool) (err error)
- func Kill(containerID string) (err error)
- func List(listFilters []string) (list []types.Container, err error)
- func Remove(containerID string, forceRemove bool) (err error)
- func Start(opts ContainerStartOptions) (*types.Container, error)
- type ContainerCreated
- type ContainerEvent
- type ContainerStartOptions
- type CreateOptions
- type ExecOptions
- type ExecResult
- type ImageBuildOptions
Constants ¶
View Source
const CmdEnvKey = "MUFAASSOURCECMD"
View Source
const DefaultLabel = "mufaas"
DefaultLabel for containers
Variables ¶
This section is empty.
Functions ¶
func ImageBuild ¶
func ImageBuild(opts ImageBuildOptions) (*types.ImageSummary, error)
ImageBuild builds a docker image from the image directory
Types ¶
type ContainerCreated ¶
type ContainerEvent ¶
ContainerEvent store a container event
type ContainerStartOptions ¶
type CreateOptions ¶
type ExecOptions ¶
type ExecOptions struct { Name string Cmd []string Env []string Stdin []byte Args []string Privileged bool // Timeout in second to stop the container Timeout int64 Remove bool }
ExecOptions control how a container is executed
type ExecResult ¶
ExecResult return the execution results
func Exec ¶
func Exec(opts ExecOptions) (*ExecResult, error)
Exec spawn a container and wait for its output
Click to show internal directories.
Click to hide internal directories.