config

package
v0.0.0-...-df6de72 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: Apache-2.0 Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogFileLocation string       `yaml:"LogFileLocation" validate:"nonzero"`
	PidFile         string       `yaml:"PidFile" validate:"nonzero"`
	ChildPidFile    string       `yaml:"ChildPidFile" validate:"nonzero"`
	Db              DBHelper     `yaml:"Db"`
	Manager         StartManager `yaml:"Manager"`
	Upgrader        Upgrader     `yaml:"Upgrader"`
	Prestart        bool
	Logger          lager.Logger
}

func NewConfig

func NewConfig(osArgs []string) (*Config, error)

func (Config) Validate

func (c Config) Validate() error

type DBHelper

type DBHelper struct {
	DaemonPath         string              `yaml:"DaemonPath" validate:"nonzero"`
	UpgradePath        string              `yaml:"UpgradePath" validate:"nonzero"`
	User               string              `yaml:"User" validate:"nonzero"`
	Password           string              `yaml:"Password"`
	PreseededDatabases []PreseededDatabase `yaml:"PreseededDatabases"`
	PostStartSQLFiles  []string            `yaml:"PostStartSQLFiles"`
	Socket             string              `yaml:"Socket"`
}

type PreseededDatabase

type PreseededDatabase struct {
	DBName   string `yaml:"DBName" validate:"nonzero"`
	User     string `yaml:"User" validate:"nonzero"`
	Password string `yaml:"Password"`
}

type StartManager

type StartManager struct {
	StateFileLocation    string `yaml:"StateFileLocation" validate:"nonzero"`
	GrastateFileLocation string
	ClusterIps           []string `yaml:"ClusterIps" validate:"nonzero"`
	BootstrapNode        bool     `yaml:"BootstrapNode"`
	ClusterProbeTimeout  int      `yaml:"ClusterProbeTimeout" validate:"nonzero"`
}

type Upgrader

type Upgrader struct {
	PackageVersionFile      string `yaml:"PackageVersionFile" validate:"nonzero"`
	LastUpgradedVersionFile string `yaml:"LastUpgradedVersionFile" validate:"nonzero"`
}

Jump to

Keyboard shortcuts

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