Documentation
¶
Index ¶
- func BackupServices(client *goss.Client, destDir string) (string, error)
- func BuildAndPushImage(dir, name string, reg RegistryConfig) (string, error)
- func GenerateCompose(imageRef, serviceName string, port int, hasDB bool) []byte
- func GetCertInfo(client *goss.Client, domain string) (string, error)
- func HealthCheck(client *goss.Client, name string, timeout int) error
- func InstallAlertRule(client *goss.Client, ruleFilePath string) error
- func InstallAlertmanager(client *goss.Client, cfg AlertmanagerConfig) error
- func InstallCaddy(client *goss.Client, cfg CaddyConfig) error
- func InstallPromtail(client *goss.Client, cfg PromtailConfig) error
- func ListServices(client *goss.Client) ([]string, error)
- func ListVersions(client *goss.Client, serviceName string) ([]string, error)
- func RestoreServices(client *goss.Client, backupPath 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 UninstallAlertmanager(client *goss.Client) error
- func UninstallCaddy(client *goss.Client) error
- func UninstallPromtail(client *goss.Client) error
- func UploadImage(client *goss.Client, serviceName, version string, imageTar []byte) (string, error)
- type AlertmanagerConfig
- type CaddyConfig
- type DeployResult
- type PromtailConfig
- 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 InstallAlertmanager ¶
func InstallAlertmanager(client *goss.Client, cfg AlertmanagerConfig) error
func InstallCaddy ¶
func InstallCaddy(client *goss.Client, cfg CaddyConfig) error
func InstallPromtail ¶
func InstallPromtail(client *goss.Client, cfg PromtailConfig) error
func RunService ¶
func RunService(client *goss.Client, cfg ServiceConfig) error
func UninstallAlertmanager ¶
func UninstallCaddy ¶
func UninstallPromtail ¶
Types ¶
type AlertmanagerConfig ¶
type AlertmanagerConfig struct {
SlackWebhookURL string
Email string
TelegramToken string
TelegramChatID string
}
func (AlertmanagerConfig) HasReceiver ¶
func (c AlertmanagerConfig) HasReceiver() bool
type CaddyConfig ¶
type DeployResult ¶
func UploadAndDeploy ¶
func UploadAndDeploy(client *goss.Client, cfg UploadConfig) (*DeployResult, error)
type PromtailConfig ¶
type RegistryConfig ¶
func DefaultRegistry ¶
func DefaultRegistry() RegistryConfig
type ServiceConfig ¶
Click to show internal directories.
Click to hide internal directories.