boshinit

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAWSBosh

func NewAWSBosh(cfg BoshInitConfig) *enaml.DeploymentManifest

func NewAWSCloudProvider

func NewAWSCloudProvider(awsElasticIP, awsPEMFilePath string, awsProperty aws_cpi.Aws, ntpProperty []string) enaml.CloudProvider

func NewBoshDeployment

func NewBoshDeployment(cfg BoshInitConfig, cpiname string, ntpProperty []string) *enaml.DeploymentManifest

func NewHealthMonitor

func NewHealthMonitor(resurrectorEnabled bool) health_monitor.Hm

func NewNTP

func NewNTP(ntp ...string) []string

func NewNats

func NewNats(user, pass string) director.Nats

Types

type Ar

type Ar aws_cpi.Registry

type BoshInitConfig

type BoshInitConfig struct {
	Name                  string
	BoshReleaseVersion    string
	BoshReleaseSHA        string
	BoshPrivateIP         string
	BoshCPIReleaseVersion string
	BoshCPIReleaseSHA     string
	GoAgentVersion        string
	GoAgentSHA            string
	BoshAvailabilityZone  string
	BoshInstanceSize      string
	BoshDirectorName      string
	AWSSubnet             string
	AWSElasticIP          string
	AWSPEMFilePath        string
	AWSAccessKeyID        string
	AWSSecretKey          string
	AWSRegion             string
	AWSSecurityGroups     []string
}

type DirectorProperty

type DirectorProperty struct {
	director.Director `yaml:",inline"`
	Address           string
}

func NewDirectorProperty

func NewDirectorProperty(name, cpijob string, db *director.Db) DirectorProperty

type PgSql

type PgSql struct {
	User     string
	Host     string
	Password string
	Database string
	Adapter  string
}

func NewPostgres

func NewPostgres(user, host, pass, database, adapter string) (psql *PgSql)

func (*PgSql) GetDirectorDB

func (s *PgSql) GetDirectorDB() *director.Db

func (*PgSql) GetPostgresDB

func (s *PgSql) GetPostgresDB() postgres.Postgres

func (*PgSql) GetRegistryDB

func (s *PgSql) GetRegistryDB() *registry.Db

type Postgres

type Postgres interface {
	GetDirectorDB() *director.Db
	GetRegistryDB() *registry.Db
	GetPostgresDB() postgres.Postgres
}

type RegistryProperty

type RegistryProperty struct {
	Rr      `yaml:",inline"`
	Ar      `yaml:",inline"`
	Address string `yaml:"address"`
}

func GetRegistry

func GetRegistry(cfg BoshInitConfig, postgresDB *PgSql) RegistryProperty

type Rr

type Rr registry.Registry

Directories

Path Synopsis
enaml-gen

Jump to

Keyboard shortcuts

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