Documentation ¶
Index ¶
- Constants
- Variables
- func CreateBranding(c *cli.Context) (branding *uaa.Branding)
- func RegisterInstanceGrouperFactory(igf InstanceGrouperFactory)
- type CloudControllerPartition
- type CloudControllerWorkerPartition
- type Consul
- type ConsulAgent
- type Doppler
- type Etcd
- type HAProxy
- type InstanceGrouper
- func NewAcceptanceTestsPartition(c *cli.Context, internet bool) InstanceGrouper
- func NewBootstrapPartition(c *cli.Context) InstanceGrouper
- func NewClockGlobalPartition(c *cli.Context) InstanceGrouper
- func NewCloudControllerPartition(c *cli.Context) InstanceGrouper
- func NewCloudControllerWorkerPartition(c *cli.Context) InstanceGrouper
- func NewConsulPartition(c *cli.Context) InstanceGrouper
- func NewDiegoBrainPartition(c *cli.Context) InstanceGrouper
- func NewDiegoCellPartition(c *cli.Context) InstanceGrouper
- func NewDiegoDatabasePartition(c *cli.Context) InstanceGrouper
- func NewDopplerPartition(c *cli.Context) InstanceGrouper
- func NewEtcdPartition(c *cli.Context) (igf InstanceGrouper)
- func NewGoRouterPartition(c *cli.Context) InstanceGrouper
- func NewHaProxyPartition(c *cli.Context) InstanceGrouper
- func NewLoggregatorTrafficController(c *cli.Context) InstanceGrouper
- func NewMySQLPartition(c *cli.Context) (igf InstanceGrouper)
- func NewMySQLProxyPartition(c *cli.Context) InstanceGrouper
- func NewNFSPartition(c *cli.Context) (igf InstanceGrouper)
- func NewNatsPartition(c *cli.Context) (igf InstanceGrouper)
- func NewSmokeErrand(c *cli.Context) InstanceGrouper
- func NewUAAPartition(c *cli.Context) InstanceGrouper
- type InstanceGrouperFactory
- type Metron
- type MySQL
- type MySQLProxy
- type MySQLSeededDatabase
- type NFS
- type NFSMounter
- type NatsPartition
- type Plugin
- type SmokeErrand
- type StatsdInjector
- type UAA
- type UAAClient
Constants ¶
const ( //CFReleaseName - CFReleaseName = "cf" //StemcellName - StemcellName = "ubuntu-trusty" //StemcellAlias - StemcellAlias = "trusty" //CFLinuxFSReleaseName - CFLinuxFSReleaseName = "cflinuxfs2-rootfs" //GardenReleaseName GardenReleaseName = "garden-linux" //DiegoReleaseName DiegoReleaseName = "diego" CFMysqlReleaseName = "cf-mysql" CFLinuxReleaseName = "cflinuxfs2-rootfs" EtcdReleaseName = "etcd" PushAppsReleaseName = "push-apps-manager-release" NotificationsReleaseName = "notifications" NotificationsUIReleaseName = "notifications-ui" CFAutoscalingReleaseName = "cf-autoscaling" )
Variables ¶
var ( //DeploymentName - DeploymentName = "cf" //CFReleaseVersion - CFReleaseVersion = "235.5" //StemcellVersion - StemcellVersion = "3232.4" //DiegoReleaseVerion DiegoReleaseVersion = "0.1467.0" //CFMysqlReleaseVersion CFMysqlReleaseVersion = "25.2" GardenReleaseVersion = "0.337.0" CFLinuxReleaseVersion = "1.3.0" EtcdReleaseVersion = "48" PushAppsReleaseVersion = "621" NotificationsReleaseVersion = "19" NotificationsUIReleaseVersion = "10" CFAutoscalingReleaseVersion = "28" )
Functions ¶
func RegisterInstanceGrouperFactory ¶ added in v0.0.4
func RegisterInstanceGrouperFactory(igf InstanceGrouperFactory)
RegisterInstanceGrouperFactory registers an InstanceGrouperFactory. InstanceGrouperFactories should generally be registered in their package's init() function.
Types ¶
type CloudControllerPartition ¶ added in v0.0.4
type CloudControllerPartition struct { AZs []string VMTypeName string StemcellName string NetworkName string SystemDomain string AppDomains []string AllowedCorsDomains []string AllowAppSSHAccess bool Metron *Metron ConsulAgent *ConsulAgent StatsdInjector *StatsdInjector NFSMounter *NFSMounter StagingUploadUser string StagingUploadPassword string BulkAPIUser string BulkAPIPassword string DbEncryptionKey string InternalAPIUser string InternalAPIPassword string HostKeyFingerprint string SupportAddress string MinCliVersion string }
CloudControllerPartition - Cloud Controller Partition
func (*CloudControllerPartition) HasValidValues ¶ added in v0.0.4
func (s *CloudControllerPartition) HasValidValues() bool
HasValidValues - Check if valid values has been populated
func (*CloudControllerPartition) ToInstanceGroup ¶ added in v0.0.4
func (s *CloudControllerPartition) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup - Convert CLoud Controller Partition to an Instance Group
type CloudControllerWorkerPartition ¶ added in v0.0.4
type CloudControllerWorkerPartition struct { AZs []string VMTypeName string StemcellName string NetworkName string SystemDomain string AppDomains []string AllowedCorsDomains []string AllowAppSSHAccess bool Metron *Metron ConsulAgent *ConsulAgent StatsdInjector *StatsdInjector NFSMounter *NFSMounter StagingUploadUser string StagingUploadPassword string BulkAPIUser string BulkAPIPassword string DbEncryptionKey string InternalAPIUser string InternalAPIPassword string }
CloudControllerWorkerPartition - Cloud Controller Worker Partition
func (*CloudControllerWorkerPartition) HasValidValues ¶ added in v0.0.4
func (s *CloudControllerWorkerPartition) HasValidValues() bool
HasValidValues - Check if valid values has been populated
func (*CloudControllerWorkerPartition) ToInstanceGroup ¶ added in v0.0.4
func (s *CloudControllerWorkerPartition) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup - Convert CLoud Controller Partition to an Instance Group
type Consul ¶ added in v0.0.4
type Consul struct { AZs []string StemcellName string VMTypeName string NetworkName string NetworkIPs []string ConsulAgent *ConsulAgent Metron *Metron StatsdInjector *StatsdInjector }
Consul -
func (*Consul) HasValidValues ¶ added in v0.0.4
HasValidValues - Check if the datastructure has valid fields
func (*Consul) ToInstanceGroup ¶ added in v0.0.4
func (s *Consul) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type ConsulAgent ¶ added in v0.0.4
type ConsulAgent struct { EncryptKeys []string CaCert string AgentCert string AgentKey string ServerCert string ServerKey string NetworkIPs []string Mode string Services []string }
ConsulAgent -
func NewConsulAgent ¶ added in v0.0.4
func NewConsulAgent(c *cli.Context, services []string) *ConsulAgent
NewConsulAgent -
func NewConsulAgentServer ¶ added in v0.0.4
func NewConsulAgentServer(c *cli.Context) *ConsulAgent
NewConsulAgentServer -
func (*ConsulAgent) CreateJob ¶ added in v0.0.4
func (s *ConsulAgent) CreateJob() enaml.InstanceJob
CreateJob - Create the yaml job structure
func (*ConsulAgent) HasValidValues ¶ added in v0.0.4
func (s *ConsulAgent) HasValidValues() bool
HasValidValues -
type Doppler ¶ added in v0.0.4
type Doppler struct { AZs []string StemcellName string VMTypeName string NetworkName string NetworkIPs []string Metron *Metron StatsdInjector *StatsdInjector Zone string MessageDrainBufferSize int SystemDomain string CCBuilkAPIPassword string SkipSSLCertify bool EtcdMachines []string }
Doppler -
func (*Doppler) HasValidValues ¶ added in v0.0.4
HasValidValues - Check if the datastructure has valid fields
func (*Doppler) ToInstanceGroup ¶ added in v0.0.4
func (s *Doppler) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type Etcd ¶ added in v0.0.4
type Etcd struct { AZs []string StemcellName string VMTypeName string NetworkName string NetworkIPs []string PersistentDiskType string Metron *Metron StatsdInjector *StatsdInjector Nats *etcdmetricslib.Nats }
Etcd -
func (*Etcd) ToInstanceGroup ¶ added in v0.0.4
func (s *Etcd) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type HAProxy ¶ added in v0.0.4
type HAProxy struct { AZs []string StemcellName string VMTypeName string NetworkName string NetworkIPs []string ConsulAgent *ConsulAgent Metron *Metron StatsdInjector *StatsdInjector SSLPem string RouterMachines []string }
HAProxy -
func (*HAProxy) HasValidValues ¶ added in v0.0.4
HasValidValues - Check if the datastructure has valid fields
func (*HAProxy) ToInstanceGroup ¶ added in v0.0.4
func (s *HAProxy) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type InstanceGrouper ¶ added in v0.0.4
type InstanceGrouper interface { ToInstanceGroup() (ig *enaml.InstanceGroup) HasValidValues() bool }
InstanceGrouper creates and validates InstanceGroups.
func NewAcceptanceTestsPartition ¶ added in v0.0.4
func NewAcceptanceTestsPartition(c *cli.Context, internet bool) InstanceGrouper
func NewBootstrapPartition ¶ added in v0.0.4
func NewBootstrapPartition(c *cli.Context) InstanceGrouper
func NewClockGlobalPartition ¶ added in v0.0.4
func NewClockGlobalPartition(c *cli.Context) InstanceGrouper
func NewCloudControllerPartition ¶ added in v0.0.4
func NewCloudControllerPartition(c *cli.Context) InstanceGrouper
func NewCloudControllerWorkerPartition ¶ added in v0.0.4
func NewCloudControllerWorkerPartition(c *cli.Context) InstanceGrouper
NewCloudControllerWorkerPartition - Creating a New Cloud Controller Partition
func NewConsulPartition ¶ added in v0.0.4
func NewConsulPartition(c *cli.Context) InstanceGrouper
NewConsulPartition -
func NewDiegoBrainPartition ¶ added in v0.0.4
func NewDiegoBrainPartition(c *cli.Context) InstanceGrouper
func NewDiegoCellPartition ¶ added in v0.0.4
func NewDiegoCellPartition(c *cli.Context) InstanceGrouper
func NewDiegoDatabasePartition ¶ added in v0.0.4
func NewDiegoDatabasePartition(c *cli.Context) InstanceGrouper
func NewDopplerPartition ¶ added in v0.0.4
func NewDopplerPartition(c *cli.Context) InstanceGrouper
NewDopplerPartition -
func NewEtcdPartition ¶ added in v0.0.4
func NewEtcdPartition(c *cli.Context) (igf InstanceGrouper)
NewEtcdPartition -
func NewGoRouterPartition ¶
func NewGoRouterPartition(c *cli.Context) InstanceGrouper
NewGoRouterPartition -
func NewHaProxyPartition ¶ added in v0.0.4
func NewHaProxyPartition(c *cli.Context) InstanceGrouper
NewHaProxyPartition -
func NewLoggregatorTrafficController ¶ added in v0.0.4
func NewLoggregatorTrafficController(c *cli.Context) InstanceGrouper
func NewMySQLPartition ¶ added in v0.0.4
func NewMySQLPartition(c *cli.Context) (igf InstanceGrouper)
NewMySQLPartition -
func NewMySQLProxyPartition ¶ added in v0.0.4
func NewMySQLProxyPartition(c *cli.Context) InstanceGrouper
NewMySQLProxyPartition -
func NewNFSPartition ¶ added in v0.0.4
func NewNFSPartition(c *cli.Context) (igf InstanceGrouper)
NewNFSPartition -
func NewNatsPartition ¶ added in v0.0.4
func NewNatsPartition(c *cli.Context) (igf InstanceGrouper)
NewNatsPartition --
func NewSmokeErrand ¶ added in v0.0.4
func NewSmokeErrand(c *cli.Context) InstanceGrouper
NewSmokeErrand - errand definition for smoke tests
func NewUAAPartition ¶ added in v0.0.4
func NewUAAPartition(c *cli.Context) InstanceGrouper
NewUAAPartition -
type InstanceGrouperFactory ¶ added in v0.0.4
type InstanceGrouperFactory func(*cli.Context) InstanceGrouper
InstanceGrouperFactory is a function that creates InstanceGroupers from CLI args.
type Metron ¶ added in v0.0.4
type Metron struct { Zone string Secret string SyslogAddress string SyslogPort int SyslogTransport string Loggregator metron_agent.Loggregator }
Metron -
func (*Metron) CreateJob ¶ added in v0.0.4
func (s *Metron) CreateJob() enaml.InstanceJob
CreateJob -
func (*Metron) HasValidValues ¶ added in v0.0.4
HasValidValues -
type MySQL ¶ added in v0.0.4
type MySQL struct { AZs []string StemcellName string VMTypeName string NetworkName string NetworkIPs []string PersistentDiskType string AdminPassword string DatabaseStartupTimeout int InnodbBufferPoolSize int MaxConnections int BootstrapUsername string BootstrapPassword string SyslogAddress string SyslogPort int SyslogTransport string MySQLSeededDatabases []MySQLSeededDatabase }
MySQL -
func (*MySQL) GetSeededDBByName ¶ added in v0.0.4
func (s *MySQL) GetSeededDBByName(name string) *MySQLSeededDatabase
GetSeededDBByName returns a pointer to the seeded database with a particular name. It returns null if no matching database is found.
func (*MySQL) HasValidValues ¶ added in v0.0.4
HasValidValues -
func (*MySQL) ToInstanceGroup ¶ added in v0.0.4
func (s *MySQL) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type MySQLProxy ¶ added in v0.0.4
type MySQLProxy struct { AZs []string StemcellName string VMTypeName string NetworkName string NetworkIPs []string ExternalHost string APIUsername string APIPassword string ClusterIPs []string Nats *mysqlproxylib.Nats SyslogAggregator *mysqlproxylib.SyslogAggregator }
MySQLProxy -
func (*MySQLProxy) HasValidValues ¶ added in v0.0.4
func (s *MySQLProxy) HasValidValues() bool
HasValidValues -
func (*MySQLProxy) ToInstanceGroup ¶ added in v0.0.4
func (s *MySQLProxy) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type MySQLSeededDatabase ¶ added in v0.0.4
type MySQLSeededDatabase struct { Name string `yaml:"name"` Username string `yaml:"username"` Password string `yaml:"password"` }
MySQLSeededDatabase -
type NFS ¶ added in v0.0.4
type NFS struct { AZs []string StemcellName string VMTypeName string NetworkName string NetworkIPs []string PersistentDiskType string AllowFromNetworkCIDR []string Metron *Metron StatsdInjector *StatsdInjector }
NFS -
func (*NFS) ToInstanceGroup ¶ added in v0.0.4
func (s *NFS) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type NFSMounter ¶ added in v0.0.4
type NFSMounter struct { NFSServerAddress string }
NFSMounter -
func NewNFSMounter ¶ added in v0.0.4
func NewNFSMounter(c *cli.Context) *NFSMounter
NewNFSMounter - Creates a new NFS Mounter
func (*NFSMounter) CreateJob ¶ added in v0.0.4
func (s *NFSMounter) CreateJob() enaml.InstanceJob
CreateJob - Create the yaml job structure for NFSMounter
type NatsPartition ¶ added in v0.0.4
type NatsPartition struct { AZs []string StemcellName string VMTypeName string NetworkName string NetworkIPs []string Nats natslib.NatsJob Metron *Metron StatsdInjector *StatsdInjector }
NatsPartition -
func (*NatsPartition) HasValidValues ¶ added in v0.0.4
func (s *NatsPartition) HasValidValues() bool
HasValidValues - Checks that fields in NatsPartition are valid
func (*NatsPartition) ToInstanceGroup ¶ added in v0.0.4
func (s *NatsPartition) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup --
type Plugin ¶
type Plugin struct{}
Plugin -
func (*Plugin) GetContext ¶ added in v0.0.4
GetContext -
type SmokeErrand ¶ added in v0.0.4
type SmokeErrand struct { AZs []string StemcellName string VMTypeName string NetworkName string Instances int Protocol string SystemDomain string AppsDomain string Password string }
func (*SmokeErrand) HasValidValues ¶ added in v0.0.4
func (s *SmokeErrand) HasValidValues() bool
HasValidValues - Check if the datastructure has valid fields
func (*SmokeErrand) ToInstanceGroup ¶ added in v0.0.4
func (s *SmokeErrand) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type StatsdInjector ¶ added in v0.0.4
type StatsdInjector struct { }
StatsdInjector -
func NewStatsdInjector ¶ added in v0.0.4
func NewStatsdInjector(c *cli.Context) (statsdInjector *StatsdInjector)
NewStatsdInjector -
func (*StatsdInjector) CreateJob ¶ added in v0.0.4
func (s *StatsdInjector) CreateJob() enaml.InstanceJob
CreateJob -
func (*StatsdInjector) HasValidValues ¶ added in v0.0.4
func (s *StatsdInjector) HasValidValues() bool
HasValidValues -
type UAA ¶ added in v0.0.4
type UAA struct { AZs []string StemcellName string VMTypeName string NetworkName string Instances int SystemDomain string RouterMachines []string Metron *Metron StatsdInjector *StatsdInjector ConsulAgent *ConsulAgent Nats *routereglib.Nats Login *uaa.Login UAA *uaa.Uaa SAMLServiceProviderKey string SAMLServiceProviderCertificate string JWTSigningKey string JWTVerificationKey string Protocol string AdminSecret string MySQLProxyHost string DBUserName string DBPassword string AdminPassword string PushAppsManagerPassword string SmokeTestsPassword string SystemServicesPassword string SystemVerificationPassword string OpentsdbFirehoseNozzleClientSecret string IdentityClientSecret string LoginClientSecret string PortalClientSecret string AutoScalingServiceClientSecret string SystemPasswordsClientSecret string CCServiceDashboardsClientSecret string DopplerClientSecret string GoRouterClientSecret string NotificationsClientSecret string NotificationsUIClientSecret string CloudControllerUsernameLookupClientSecret string CCRoutingClientSecret string SSHProxyClientSecret string AppsMetricsClientSecret string AppsMetricsProcessingClientSecret string }
UAA -
func (*UAA) CreateLogin ¶ added in v0.0.4
CreateLogin - Helper method to create login structure
func (*UAA) HasValidValues ¶ added in v0.0.4
HasValidValues - Check if the datastructure has valid fields
func (*UAA) ToInstanceGroup ¶ added in v0.0.4
func (s *UAA) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type UAAClient ¶ added in v0.0.4
type UAAClient struct { ID string `yaml:"id,omitempty"` Secret string `yaml:"secret,omitempty"` Scope string `yaml:"scope,omitempty"` AuthorizedGrantTypes string `yaml:"authorized-grant-types,omitempty"` Authorities string `yaml:"authorities,omitempty"` AutoApprove interface{} `yaml:"autoapprove,omitempty"` Override bool `yaml:"override,omitempty"` RedirectURI string `yaml:"redirect-uri,omitempty"` AccessTokenValidity int `yaml:"access-token-validity,omitempty"` RefreshTokenValidity int `yaml:"refresh-token-validity,omitempty"` ResourceIDs string `yaml:"resource_ids,omitempty"` Name string `yaml:"name,omitempty"` AppLaunchURL string `yaml:"app-launch-url,omitempty"` ShowOnHomepage bool `yaml:"show-on-homepage,omitempty"` AppIcon string `yaml:"app-icon,omitempty"` }
UAAClient - Structure to represent map of client priviledges
Source Files ¶
- acceptance_tests.go
- bootstrap.go
- clock_global.go
- cloud_controller.go
- cloud_controller_worker.go
- const.go
- consul.go
- consul_agent.go
- diego_brain.go
- diego_cell.go
- diego_database.go
- doppler.go
- etcd.go
- gorouter.go
- haproxy.go
- instance_groups_registry.go
- loggregator.go
- metron.go
- mysql.go
- mysql_proxy.go
- nats.go
- nfs.go
- nfs_mounter.go
- plugin.go
- smoke.go
- statsdInjector.go
- types.go
- uaa.go