cmd

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 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"`
}

Jump to

Keyboard shortcuts

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