{"modulePath":"github.com/Coding/drone","version":"v0.4.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package docker\n\n## Functions\n\n```go\nfunc FromContext(c context.Context) runner.Engine\n```\nFromContext returns the Engine associated with this context.\n\n```go\nfunc MustEnv() runner.Engine\n```\nMustEnv returns a new Docker engine from the DOCKER\\_HOST and DOCKER\\_CERT\\_PATH environment variables. Errors creating the Docker engine will panic.\n\n```go\nfunc New(client dockerclient.Client) runner.Engine\n```\nNew returns a new Docker engine using the provided Docker client.\n\n```go\nfunc NewEnv() (runner.Engine, error)\n```\nNewEnv returns a new Docker engine from the DOCKER\\_HOST and DOCKER\\_CERT\\_PATH environment variables.\n\n```go\nfunc ToContext(c Setter, d runner.Engine)\n```\nToContext adds the Engine to this context if it supports the Setter interface.\n\n## Types\n\n```go\ntype Setter interface {\n\tSet(string, interface{})\n}\n```\nSetter defines a context that enables setting values.\n\n","path":"github.com/Coding/drone/engine/runner/docker","name":"docker","synopsis":"","isRedistributable":true}
