boshinit

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 23, 2016 License: Apache-2.0 Imports: 10 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 NewAzureBosh added in v0.0.7

func NewAzureBosh(cfg BoshInitConfig) *enaml.DeploymentManifest

func NewAzureCloudProvider added in v0.0.7

func NewAzureCloudProvider(myazure cpi.Azure, cpiTemplate enaml.Template, pubip, keypath string, ntpProperty []string) enaml.CloudProvider

func NewAzureProperty added in v0.0.7

func NewAzureProperty(azureenv, subid, tenantid, clientid, clientsecret, resourcegroup, storageaccount, securitygroup, sshuser, sshkey string) cpi.Azure

func NewBoshDeploymentBase added in v0.0.7

func NewBoshDeploymentBase(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
	AzurePublicIP             string
	AzureVnet                 string
	AzureSubnet               string
	AzureSubscriptionID       string
	AzureTenantID             string
	AzureClientID             string
	AzureClientSecret         string
	AzureResourceGroup        string
	AzureStorageAccount       string
	AzureDefaultSecurityGroup string
	AzureSSHPubKey            string
	AzureSSHUser              string
	AzureEnvironment          string
	AzurePrivateKeyPath       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
cpi

Jump to

Keyboard shortcuts

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