Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployer ¶
type Deployer struct {
// contains filtered or unexported fields
}
Deployer handles deploying new functions that a user submits by unpacking the function data from a users request and then using a ContainerDeployer to build and push a container image for later invocation
func NewDeployer ¶
NewDeployer initializes a Deployer with a ContainerDeploy for building and pushing images
type DockerClient ¶
type DockerClient interface { ImageBuild(context.Context, io.Reader, types.ImageBuildOptions) (types.ImageBuildResponse, error) ImagePush(context.Context, string, types.ImagePushOptions) (io.ReadCloser, error) }
type DockerDeployer ¶
type DockerDeployer struct {
// contains filtered or unexported fields
}
DockerDeployer uses the Docker SDK to build and push images to a remote registry
func NewDockerDeployer ¶
func NewDockerDeployer(registryUsername string, registryPassword string) (*DockerDeployer, error)
NewDockerDeployer initializes a DockerDeployer with a Docker API version and credentials to access a Dockerhub registry
func (DockerDeployer) BuildImage ¶
func (d DockerDeployer) BuildImage(dockerfileTarReader io.Reader, tag string) error
BuildImage converts a directory to a tar file and uses the Docker SDK to build a Docker image
func (DockerDeployer) PushImage ¶
func (d DockerDeployer) PushImage(image string) error
PushImage takes a local Docker image and pushes it to a Dockerhub registry