Documentation
¶
Index ¶
- func NewAWSBosh(cfg BoshInitConfig) *enaml.DeploymentManifest
- func NewAWSCloudProvider(awsElasticIP, awsPEMFilePath string, awsProperty aws_cpi.Aws, ...) enaml.CloudProvider
- func NewAzureBosh(cfg BoshInitConfig) *enaml.DeploymentManifest
- func NewAzureCloudProvider(myazure cpi.Azure, cpiTemplate enaml.Template, pubip, keypath string, ...) enaml.CloudProvider
- func NewAzureProperty(azureenv, subid, tenantid, clientid, clientsecret, resourcegroup, ... string) cpi.Azure
- func NewBoshDeploymentBase(cfg BoshInitConfig, cpiname string, ntpProperty []string) *enaml.DeploymentManifest
- func NewHealthMonitor(resurrectorEnabled bool) health_monitor.Hm
- func NewNTP(ntp ...string) []string
- func NewNats(user, pass string) director.Nats
- func NewVSphereBosh(cfg BoshInitConfig) *enaml.DeploymentManifest
- func NewVSphereCloudProvider(directorIP string, vcenterProperty vsphere_cpi.Vcenter, ntpProperty []string) enaml.CloudProvider
- type Ar
- type BoshInitConfig
- type DirectorProperty
- type Network
- type PgSql
- type Postgres
- type RegistryProperty
- type Rr
- type VSphereDatacenter
- type VSphereDatacenters
- type VSpherecloudpropertiesNetwork
- type VSpherecloudpropertiesResourcePool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAWSBosh ¶
func NewAWSBosh(cfg BoshInitConfig) *enaml.DeploymentManifest
func NewAWSCloudProvider ¶
func NewAzureBosh ¶
func NewAzureBosh(cfg BoshInitConfig) *enaml.DeploymentManifest
func NewAzureCloudProvider ¶
func NewAzureProperty ¶
func NewBoshDeploymentBase ¶
func NewBoshDeploymentBase(cfg BoshInitConfig, cpiname string, ntpProperty []string) *enaml.DeploymentManifest
func NewHealthMonitor ¶
func NewHealthMonitor(resurrectorEnabled bool) health_monitor.Hm
func NewVSphereBosh ¶
func NewVSphereBosh(cfg BoshInitConfig) *enaml.DeploymentManifest
NewVSphereBosh creates a new enaml deployment manifest for vSphere
func NewVSphereCloudProvider ¶
func NewVSphereCloudProvider(directorIP string, vcenterProperty vsphere_cpi.Vcenter, ntpProperty []string) enaml.CloudProvider
NewVSphereCloudProvider creates a new cloud_provider instance for a vSphere bosh deployment
Types ¶
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
BoshCIDR string
BoshGateway string
BoshDNS []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
VSphereAddress string
VSphereUser string
VSpherePassword string
VSphereDatacenterName string
VSphereVMFolder string
VSphereTemplateFolder string
VSphereDatastorePattern string
VSpherePersistentDatastorePattern string
VSphereDiskPath string
VSphereClusters []string
VSphereNetworks []Network
}
type DirectorProperty ¶
func NewDirectorProperty ¶
func NewDirectorProperty(name, cpijob string, db *director.Db) DirectorProperty
type PgSql ¶
func NewPostgres ¶
func (*PgSql) GetDirectorDB ¶
func (*PgSql) GetPostgresDB ¶
func (*PgSql) GetRegistryDB ¶
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 VSphereDatacenter ¶
type VSphereDatacenter struct {
Name string `yaml:"name"` // [String, required]: vSphere datacenter name.
VMFolder string `yaml:"vm_folder"` // [String, required]: The folder to create PCF VMs in.
TemplateFolder string `yaml:"template_folder"` // [String, required]: The folder to store stemcells in.
DatastorePattern string `yaml:"datastore_pattern"` // [String, required]: The pattern to the vSphere datastore.
PersistentDatastorePattern string `yaml:"persistent_datastore_pattern"` // [String, required]: The pattern to the vSphere datastore for persistent disks.
DiskPath string `yaml:"disk_path"` // [String, required]: The disk path.
Clusters []string `yaml:"clusters"` // [[]String], required]: The vSphere cluster(s).
}
type VSphereDatacenters ¶
type VSphereDatacenters []VSphereDatacenter
type VSpherecloudpropertiesNetwork ¶
type VSpherecloudpropertiesNetwork struct {
Name string `yaml:"name,omitempty"` // [String, required]: vSphere network name.
}
type VSpherecloudpropertiesResourcePool ¶
type VSpherecloudpropertiesResourcePool struct {
CPU int `yaml:"cpu,omitempty"` // [Integer, required]: Number of CPUs.
RAM int `yaml:"ram,omitempty"` // [Integer, required]: Specified the amount of RAM in megabytes.
Disk int `yaml:"disk,omitempty"` // [Integer, required]: Specifies the disk size in megabytes.
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.