Documentation
¶
Index ¶
- Constants
- Variables
- func CreateBranding(c *cli.Context) (branding *uaa.Branding)
- func InferFromCloudDecorate(inferFlagMap map[string][]string, cloudConfig []byte, args []string, ...)
- func RegisterInstanceGrouperFactory(igf InstanceGrouperFactory)
- func VaultDecorate(args []string, flgs []pcli.Flag)
- 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 InferFromCloudDecorate ¶ added in v0.0.6
func RegisterInstanceGrouperFactory ¶
func RegisterInstanceGrouperFactory(igf InstanceGrouperFactory)
RegisterInstanceGrouperFactory registers an InstanceGrouperFactory. InstanceGrouperFactories should generally be registered in their package's init() function.
func VaultDecorate ¶ added in v0.0.5
Types ¶
type CloudControllerPartition ¶
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 ¶
func (s *CloudControllerPartition) HasValidValues() bool
HasValidValues - Check if valid values has been populated
func (*CloudControllerPartition) ToInstanceGroup ¶
func (s *CloudControllerPartition) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup - Convert CLoud Controller Partition to an Instance Group
type CloudControllerWorkerPartition ¶
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 ¶
func (s *CloudControllerWorkerPartition) HasValidValues() bool
HasValidValues - Check if valid values has been populated
func (*CloudControllerWorkerPartition) ToInstanceGroup ¶
func (s *CloudControllerWorkerPartition) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup - Convert CLoud Controller Partition to an Instance Group
type Consul ¶
type Consul struct { AZs []string StemcellName string VMTypeName string NetworkName string NetworkIPs []string ConsulAgent *ConsulAgent Metron *Metron StatsdInjector *StatsdInjector }
Consul -
func (*Consul) HasValidValues ¶
HasValidValues - Check if the datastructure has valid fields
func (*Consul) ToInstanceGroup ¶
func (s *Consul) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type ConsulAgent ¶
type ConsulAgent struct { EncryptKeys []string CaCert string AgentCert string AgentKey string ServerCert string ServerKey string NetworkIPs []string Mode string Services []string }
ConsulAgent -
func NewConsulAgent ¶
func NewConsulAgent(c *cli.Context, services []string) *ConsulAgent
NewConsulAgent -
func NewConsulAgentServer ¶
func NewConsulAgentServer(c *cli.Context) *ConsulAgent
NewConsulAgentServer -
func (*ConsulAgent) CreateJob ¶
func (s *ConsulAgent) CreateJob() enaml.InstanceJob
CreateJob - Create the yaml job structure
type Doppler ¶
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 ¶
HasValidValues - Check if the datastructure has valid fields
func (*Doppler) ToInstanceGroup ¶
func (s *Doppler) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type Etcd ¶
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 ¶
func (s *Etcd) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type HAProxy ¶
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 ¶
HasValidValues - Check if the datastructure has valid fields
func (*HAProxy) ToInstanceGroup ¶
func (s *HAProxy) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type InstanceGrouper ¶
type InstanceGrouper interface { ToInstanceGroup() (ig *enaml.InstanceGroup) HasValidValues() bool }
InstanceGrouper creates and validates InstanceGroups.
func NewAcceptanceTestsPartition ¶
func NewAcceptanceTestsPartition(c *cli.Context, internet bool) InstanceGrouper
func NewBootstrapPartition ¶
func NewBootstrapPartition(c *cli.Context) InstanceGrouper
func NewClockGlobalPartition ¶
func NewClockGlobalPartition(c *cli.Context) InstanceGrouper
func NewCloudControllerPartition ¶
func NewCloudControllerPartition(c *cli.Context) InstanceGrouper
func NewCloudControllerWorkerPartition ¶
func NewCloudControllerWorkerPartition(c *cli.Context) InstanceGrouper
NewCloudControllerWorkerPartition - Creating a New Cloud Controller Partition
func NewConsulPartition ¶
func NewConsulPartition(c *cli.Context) InstanceGrouper
NewConsulPartition -
func NewDiegoBrainPartition ¶
func NewDiegoBrainPartition(c *cli.Context) InstanceGrouper
func NewDiegoCellPartition ¶
func NewDiegoCellPartition(c *cli.Context) InstanceGrouper
func NewDiegoDatabasePartition ¶
func NewDiegoDatabasePartition(c *cli.Context) InstanceGrouper
func NewDopplerPartition ¶
func NewDopplerPartition(c *cli.Context) InstanceGrouper
NewDopplerPartition -
func NewEtcdPartition ¶
func NewEtcdPartition(c *cli.Context) (igf InstanceGrouper)
NewEtcdPartition -
func NewGoRouterPartition ¶
func NewGoRouterPartition(c *cli.Context) InstanceGrouper
NewGoRouterPartition -
func NewHaProxyPartition ¶
func NewHaProxyPartition(c *cli.Context) InstanceGrouper
NewHaProxyPartition -
func NewLoggregatorTrafficController ¶
func NewLoggregatorTrafficController(c *cli.Context) InstanceGrouper
func NewMySQLPartition ¶
func NewMySQLPartition(c *cli.Context) (igf InstanceGrouper)
NewMySQLPartition -
func NewMySQLProxyPartition ¶
func NewMySQLProxyPartition(c *cli.Context) InstanceGrouper
NewMySQLProxyPartition -
func NewNatsPartition ¶
func NewNatsPartition(c *cli.Context) (igf InstanceGrouper)
NewNatsPartition --
func NewSmokeErrand ¶
func NewSmokeErrand(c *cli.Context) InstanceGrouper
NewSmokeErrand - errand definition for smoke tests
type InstanceGrouperFactory ¶
type InstanceGrouperFactory func(*cli.Context) InstanceGrouper
InstanceGrouperFactory is a function that creates InstanceGroupers from CLI args.
type Metron ¶
type Metron struct { Zone string Secret string SyslogAddress string SyslogPort int SyslogTransport string Loggregator metron_agent.Loggregator }
Metron -
type MySQL ¶
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 ¶
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) ToInstanceGroup ¶
func (s *MySQL) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type MySQLProxy ¶
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) ToInstanceGroup ¶
func (s *MySQLProxy) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type MySQLSeededDatabase ¶
type MySQLSeededDatabase struct { Name string `yaml:"name"` Username string `yaml:"username"` Password string `yaml:"password"` }
MySQLSeededDatabase -
type NFS ¶
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 ¶
func (s *NFS) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type NFSMounter ¶
type NFSMounter struct { NFSServerAddress string }
NFSMounter -
func NewNFSMounter ¶
func NewNFSMounter(c *cli.Context) *NFSMounter
NewNFSMounter - Creates a new NFS Mounter
func (*NFSMounter) CreateJob ¶
func (s *NFSMounter) CreateJob() enaml.InstanceJob
CreateJob - Create the yaml job structure for NFSMounter
type NatsPartition ¶
type NatsPartition struct { AZs []string StemcellName string VMTypeName string NetworkName string NetworkIPs []string Nats natslib.NatsJob Metron *Metron StatsdInjector *StatsdInjector }
NatsPartition -
func (*NatsPartition) HasValidValues ¶
func (s *NatsPartition) HasValidValues() bool
HasValidValues - Checks that fields in NatsPartition are valid
func (*NatsPartition) ToInstanceGroup ¶
func (s *NatsPartition) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup --
type SmokeErrand ¶
type SmokeErrand struct { AZs []string StemcellName string VMTypeName string NetworkName string Instances int Protocol string SystemDomain string AppsDomain string Password string }
func (*SmokeErrand) HasValidValues ¶
func (s *SmokeErrand) HasValidValues() bool
HasValidValues - Check if the datastructure has valid fields
func (*SmokeErrand) ToInstanceGroup ¶
func (s *SmokeErrand) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type StatsdInjector ¶
type StatsdInjector struct { }
StatsdInjector -
func NewStatsdInjector ¶
func NewStatsdInjector(c *cli.Context) (statsdInjector *StatsdInjector)
NewStatsdInjector -
func (*StatsdInjector) CreateJob ¶
func (s *StatsdInjector) CreateJob() enaml.InstanceJob
CreateJob -
func (*StatsdInjector) HasValidValues ¶
func (s *StatsdInjector) HasValidValues() bool
HasValidValues -
type UAA ¶
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 ¶
CreateLogin - Helper method to create login structure
func (*UAA) HasValidValues ¶
HasValidValues - Check if the datastructure has valid fields
func (*UAA) ToInstanceGroup ¶
func (s *UAA) ToInstanceGroup() (ig *enaml.InstanceGroup)
ToInstanceGroup -
type UAAClient ¶
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
- validFlagsCheck.go