Documentation
¶
Index ¶
- func BuildAndPushImage(dir, name string, reg RegistryConfig) (string, error)
- func GenerateCompose(imageRef, serviceName string, port int, hasDB bool) []byte
- func HealthCheck(client *goss.Client, name string, timeout int) error
- func ListServices(client *goss.Client) ([]string, error)
- func ListVersions(client *goss.Client, serviceName string) ([]string, error)
- func Rollback(client *goss.Client, serviceName string) error
- func RunService(client *goss.Client, cfg ServiceConfig) error
- func ServiceLogs(client *goss.Client, name string, tail int, follow bool) error
- func ServiceStatus(client *goss.Client, name string) (string, error)
- func UploadImage(client *goss.Client, serviceName, version string, imageTar []byte) (string, error)
- type DeployResult
- type RegistryConfig
- type ServiceConfig
- type UploadConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAndPushImage ¶
func BuildAndPushImage(dir, name string, reg RegistryConfig) (string, error)
BuildAndPushImage builds a Go binary locally, wraps in minimal Docker image, pushes to registry
func GenerateCompose ¶
GenerateCompose generates a docker-compose.yml with optional postgres sidecar
func RunService ¶
func RunService(client *goss.Client, cfg ServiceConfig) error
Types ¶
type DeployResult ¶
func UploadAndDeploy ¶
func UploadAndDeploy(client *goss.Client, cfg UploadConfig) (*DeployResult, error)
type RegistryConfig ¶
func DefaultRegistry ¶
func DefaultRegistry() RegistryConfig
type ServiceConfig ¶
Click to show internal directories.
Click to hide internal directories.