config

package
v0.0.0-...-55fbde6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server   Server
	Projects []Project
	Mounts   []Mount
}

Config is the struct of the config file

func Load

func Load(path string) (*Config, error)

Load loads a config file and returns a pointer to a config struct

type Mount

type Mount struct {
	Kind      string
	ID        string
	FSType    string
	Server    string
	Endpoints string
	Path      string
	Name      string
	ReadOnly  bool
}

Mount is a struct in the config for Runtime mounts

type Project

type Project struct {
	Name            string   `json:"name"`
	MaestroConfPath string   `json:"confPath"`
	DeployBranches  []string `json:"deployBranches"`
}

Project is a struct in the config for each project for maestrod to spin up

type Server

type Server struct {
	Runtime             string
	RuntimePluginPath   string
	RuntimeTLSClient    bool
	RuntimeTLSServer    bool
	MaxBuilds           int
	DataStoreType       string
	DataStoreUser       string
	DataStorePWD        string
	DataStoreEnvIP      string
	DataStoreStaticIP   string
	DataStoreEnvPort    string
	DataStoreStaticPort string
	TargetProtocol      string
	TargetHost          string
	TargetPort          string
	TargetEnvHost       string
	TargetEnvPort       string
	ClientCertPath      string
	ClientKeyPath       string
	ServerCertPath      string
	ServerKeyPath       string
	MaestroVersion      string
	Host                string
	SecurePort          uint
	InsecurePort        uint
	StateComPort        uint
	WorkspaceDir        string
}

Server is a struct for the runtime server

Jump to

Keyboard shortcuts

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