Documentation ¶
Index ¶
- Variables
- func CreateImage(opts CreateImageOptions, files ...FileLike) error
- func ImageExists(imageName string) (bool, error)
- func PushImage(in PushImageOptions) error
- func RegisterWithIron(imageNameVersion string) error
- func RunImageWithPayload(imageName string, payload string) error
- type CreateImageOptions
- type FileLike
- type PushImageOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorNoFiles = errors.New("No files to add to image")
Functions ¶
func CreateImage ¶
func CreateImage(opts CreateImageOptions, files ...FileLike) error
Creates a docker image called `name`, using `base` as the base image. `handler` is the runtime-specific name to use for a lambda invocation (i.e. <module>.<function> for nodejs). `files` should be a list of files+dirs *relative to the current directory* that are to be included in the image.
func ImageExists ¶
func PushImage ¶
func PushImage(in PushImageOptions) error
func RegisterWithIron ¶
Registers public docker image named `imageNameVersion` as a IronWorker called `imageName`. For example,
RegisterWithIron("foo/myimage:1", credentials.NewEnvCredentials()) will register a worker called "foo/myimage" that will use Docker Image "foo/myimage:1".
func RunImageWithPayload ¶
Types ¶
type CreateImageOptions ¶
Click to show internal directories.
Click to hide internal directories.