Documentation
¶
Overview ¶
Package dargo enables applications to deploy themselves to a Docker engine.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Enable bool
Enable determines if we should deploy when Deploy() is called
Functions ¶
func Deploy ¶
func Deploy(o DeployOptions) error
Deploy deploys to the Docker engine reachable via environment variables and defaults.
func DeployAndExit ¶
func DeployAndExit(o DeployOptions)
DeployAndExit checks to see if we're Enabled, then calls Deploy, logging Fatal errors, then exiting
Example ¶
package main
import (
"fmt"
"github.com/brimstone/dargo"
)
func main() {
dargo.DeployAndExit(dargo.DeployOptions{
Tags: []string{"hello-dargo"},
})
fmt.Println("Hello world!")
}
Types ¶
type DeployOptions ¶
DeployOptions control attributes about the resulting Docker Image
Click to show internal directories.
Click to hide internal directories.