config

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertTlsConfig added in v1.4.2

type CertTlsConfig struct {
	Ca          string `json:"ca"`
	Certificate string `json:"certificate"`
	PrivateKey  string `json:"private_key"`
}

type CommandFlags

type CommandFlags struct {
	ConfigPath       string
	IsRestore        bool
	ArtifactFilePath string
}

func ParseFlags

func ParseFlags() (CommandFlags, error)

type ConnectionConfig

type ConnectionConfig struct {
	Username string     `json:"username"`
	Password string     `json:"password"`
	Port     int        `json:"port"`
	Adapter  string     `json:"adapter"`
	Host     string     `json:"host"`
	Database string     `json:"database"`
	Tables   []string   `json:"tables"`
	Tls      *TlsConfig `json:"tls"`
}

func ParseAndValidateConnectionConfig

func ParseAndValidateConnectionConfig(configPath string) (ConnectionConfig, error)

type TempFolderManager added in v1.5.0

type TempFolderManager struct {
	// contains filtered or unexported fields
}

func NewTempFolderManager added in v1.5.0

func NewTempFolderManager() (TempFolderManager, error)

func (TempFolderManager) Cleanup added in v1.5.0

func (m TempFolderManager) Cleanup() error

func (TempFolderManager) WriteTempFile added in v1.5.0

func (m TempFolderManager) WriteTempFile(contents string) (string, error)

type TlsConfig added in v1.4.2

type TlsConfig struct {
	SkipHostVerify bool          `json:"skip_host_verify"`
	Cert           CertTlsConfig `json:"cert"`
}

type UtilitiesConfig

type UtilitiesConfig struct {
	Postgres96 UtilityPaths
	Postgres94 UtilityPaths
	Postgres10 UtilityPaths
	Postgres11 UtilityPaths
	Mariadb    UtilityPaths
	Mysql55    UtilityPaths
	Mysql56    UtilityPaths
	Mysql57    UtilityPaths
}

func GetUtilitiesConfigFromEnv

func GetUtilitiesConfigFromEnv() UtilitiesConfig

type UtilityPaths

type UtilityPaths struct {
	Client  string
	Dump    string
	Restore string
}

Jump to

Keyboard shortcuts

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