Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { dockerclient.ContainerAPIClient dockerclient.ImageAPIClient }
Client specifies the Docker client API interface required by docker driver
type Driver ¶
type Driver struct { // ExternalHost is a ip/hostname that function containers will be exposed with, and that is reachable to Dispatch. ExternalHost string // RetryTimeout specifies the maximum amount of time we should spend retrying calls to docker. RetryTimeout time.Duration // contains filtered or unexported fields }
Driver implements a FaaSDriver using Docker daemon. It's a simple driver without scaling or fault tolerance and is not recommended for production usage. It's goal is to provide a simple driver for demos, PoCs, and development use cases.
func (*Driver) Create ¶
Create creates new Docker container for a particular function. Currently, there is 1:1 mapping for a function.
func (*Driver) GetRunnable ¶
func (d *Driver) GetRunnable(e *functions.FunctionExecution) functions.Runnable
GetRunnable creates runnable representation of the function
Click to show internal directories.
Click to hide internal directories.