cmd

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIEndpoint string
View Source
var CmdSSHKey string
View Source
var ProjectName string
View Source
var RsyncArguments string
View Source
var SSHHost string
View Source
var SSHKey string
View Source
var SSHPort string
View Source
var SSHSkipAgent bool
View Source
var SSHVerbose bool
View Source
var ServiceName string
View Source
var ShowDebug bool
View Source
var SyncerType string

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func LoadLagoonConfig

func LoadLagoonConfig(lagoonYamlPath string) ([]byte, error)

func PrintConfigOut

func PrintConfigOut() []byte

func Version

func Version() string

Version Read version from /assets/.version, this will get updated automatically on release.

Types

type Configuration

type Configuration struct {
	Version           string                              `json:"version"`
	LagoonSyncPath    string                              `json:"lagoon-sync-path"`
	EnvPrerequisite   []prerequisite.GatheredPrerequisite `json:"env-config"`
	RysncPrerequisite []prerequisite.GatheredPrerequisite `json:"rsync-config"`
	OtherPrerequisite []prerequisite.GatheredPrerequisite `json:"other-config"`
	SyncConfigFiles   SyncConfigFiles                     `json:"sync-config-files"`
	SSHConfig         synchers.SSHOptions                 `json:"ssh"`
}

type SyncConfigFiles

type SyncConfigFiles struct {
	ConfigFileActive             string `json:"config-file-active"`
	LagoonSyncConfigFile         string `json:"lagoon-sync-path"`
	LagoonSyncDefaultsConfigFile string `json:"lagoon-sync-defaults-path"`
}

type SyncResult added in v0.9.0

type SyncResult struct {
	Task     SyncTask
	Success  bool
	Error    error
	Duration string // optional, for future use
}

SyncResult holds the outcome of a single sync task

type SyncTask added in v0.9.0

type SyncTask struct {
	Type       string // "mariadb", "postgres", "files"
	Service    utils.Service
	VolumePath string // only populated for files
	Label      string // human-readable label for display
}

SyncTask represents a single resource (DB or volume) to be synced

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL