Documentation ¶
Index ¶
- Constants
- type AuthHeaderBuilder
- type Authentication
- type BindingDNS
- type BindingDNSProperties
- type Bosh
- type BoshCredhub
- type Broker
- type BrokerAPI
- type CF
- type CFServiceAccess
- type CanarySelectionParams
- type ClientCredentials
- type Config
- type CredHub
- type DashboardClient
- type Errand
- type ErrandTLSConfig
- type FieldError
- type InstanceIteratorConfig
- type MaintenanceInfo
- type OrphanDeploymentsErrandConfig
- type Plan
- type PlanAccess
- type PlanCost
- type PlanMetadata
- type Plans
- type Quotas
- type RegisterBrokerErrandConfig
- type ServiceAdapter
- type ServiceDeployment
- type ServiceInstancesAPI
- type ServiceMetadata
- type ServiceOffering
- type TLSConfig
- type UAAAuthentication
- type UserCredentials
Constants ¶
View Source
const ( PlanEnabled = CFServiceAccess("enable") PlanDisabled = CFServiceAccess("disable") PlanOrgRestricted = CFServiceAccess("org-restricted") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHeaderBuilder ¶
type Authentication ¶ added in v0.20.0
type Authentication struct { Basic UserCredentials UAA UAAAuthentication }
func (Authentication) Validate ¶ added in v0.20.0
func (a Authentication) Validate(URLRequired bool) error
type BindingDNS ¶ added in v0.22.0
type BindingDNS struct { Name string `yaml:"name"` LinkProvider string `yaml:"link_provider"` InstanceGroup string `yaml:"instance_group"` Properties BindingDNSProperties `yaml:"properties"` }
type BindingDNSProperties ¶ added in v0.22.0
type Bosh ¶
type Bosh struct { URL string `yaml:"url"` TrustedCert string `yaml:"root_ca_cert"` Authentication Authentication }
func (Bosh) NewAuthHeaderBuilder ¶ added in v0.17.2
func (boshConfig Bosh) NewAuthHeaderBuilder(UAAURL string, disableSSLCertVerification bool) (AuthHeaderBuilder, error)
type BoshCredhub ¶ added in v0.22.0
type BoshCredhub struct { URL string `yaml:"url"` RootCACert string `yaml:"root_ca_cert"` Authentication Authentication }
type Broker ¶
type Broker struct { Port int Username string Password string DisableSSLCertVerification bool `yaml:"disable_ssl_cert_verification"` DisableBoshConfigs bool `yaml:"disable_bosh_configs"` StartUpBanner bool `yaml:"startup_banner"` ShutdownTimeoutSecs int `yaml:"shutdown_timeout_in_seconds"` DisableCFStartupChecks bool `yaml:"disable_cf_startup_checks"` ExposeOperationalErrors bool `yaml:"expose_operational_errors"` EnablePlanSchemas bool `yaml:"enable_plan_schemas"` UsingStdin bool `yaml:"use_stdin"` EnableSecureManifests bool `yaml:"enable_secure_manifests"` TLS TLSConfig }
type BrokerAPI ¶ added in v0.18.0
type BrokerAPI struct { URL string `yaml:"url"` Authentication Authentication `yaml:"authentication"` TLS ErrandTLSConfig `yaml:"tls"` }
type CF ¶
type CF struct { URL string TrustedCert string `yaml:"root_ca_cert"` Authentication Authentication }
func (CF) NewAuthHeaderBuilder ¶
func (cf CF) NewAuthHeaderBuilder(disableSSLCertVerification bool) (AuthHeaderBuilder, error)
type CFServiceAccess ¶ added in v0.29.0
type CFServiceAccess string
type CanarySelectionParams ¶ added in v0.21.0
func (CanarySelectionParams) String ¶ added in v0.21.0
func (filter CanarySelectionParams) String() string
type ClientCredentials ¶
func (ClientCredentials) IsSet ¶
func (cc ClientCredentials) IsSet() bool
func (ClientCredentials) Validate ¶ added in v0.20.0
func (c ClientCredentials) Validate() error
type Config ¶
type Config struct { Broker Broker Bosh Bosh CF CF ServiceInstancesAPI ServiceInstancesAPI `yaml:"service_instances_api"` CredHub CredHub `yaml:"credhub"` ServiceAdapter ServiceAdapter `yaml:"service_adapter"` ServiceDeployment ServiceDeployment `yaml:"service_deployment"` ServiceCatalog ServiceOffering `yaml:"service_catalog"` BoshCredhub BoshCredhub `yaml:"bosh_credhub"` }
func (Config) HasBindingWithDNSConfigured ¶ added in v0.22.0
func (Config) HasRuntimeCredHub ¶ added in v0.23.0
type DashboardClient ¶
type ErrandTLSConfig ¶ added in v0.28.0
type FieldError ¶ added in v0.20.0
func (FieldError) Error ¶ added in v0.20.0
func (f FieldError) Error() string
type InstanceIteratorConfig ¶ added in v0.25.0
type InstanceIteratorConfig struct { BrokerAPI BrokerAPI `yaml:"broker_api"` PollingInterval int `yaml:"polling_interval"` AttemptInterval int `yaml:"attempt_interval"` AttemptLimit int `yaml:"attempt_limit"` RequestTimeout int `yaml:"request_timeout"` MaxInFlight int `yaml:"max_in_flight"` Canaries int `yaml:"canaries"` CanarySelectionParams CanarySelectionParams `yaml:"canary_selection_params"` Bosh Bosh `yaml:"bosh"` }
type MaintenanceInfo ¶ added in v0.25.0
type OrphanDeploymentsErrandConfig ¶ added in v0.24.0
type OrphanDeploymentsErrandConfig struct {
BrokerAPI BrokerAPI `yaml:"broker_api"`
}
type Plan ¶
type Plan struct { ID string `yaml:"plan_id"` Name string Free *bool Bindable *bool Description string Metadata PlanMetadata Quotas Quotas `yaml:"quotas,omitempty"` Properties serviceadapter.Properties InstanceGroups []serviceadapter.InstanceGroup `yaml:"instance_groups,omitempty"` Update *serviceadapter.Update `yaml:"update,omitempty"` LifecycleErrands *serviceadapter.LifecycleErrands `yaml:"lifecycle_errands,omitempty"` ResourceCosts map[string]int `yaml:"resource_costs,omitempty"` BindingWithDNS []BindingDNS `yaml:"binding_with_dns"` MaintenanceInfo *MaintenanceInfo `yaml:"maintenance_info,omitempty"` }
func (Plan) AdapterPlan ¶
func (p Plan) AdapterPlan(globalProperties serviceadapter.Properties) serviceadapter.Plan
func (Plan) PostDeployErrands ¶ added in v0.21.0
func (Plan) PreDeleteErrands ¶ added in v0.21.0
type PlanAccess ¶ added in v0.29.0
type PlanAccess struct { Name string `yaml:"name"` ServiceAccessOrg string `yaml:"service_access_org"` CFServiceAccess CFServiceAccess `yaml:"cf_service_access"` }
type PlanMetadata ¶
type RegisterBrokerErrandConfig ¶ added in v0.29.0
type RegisterBrokerErrandConfig struct { BrokerName string `yaml:"broker_name"` BrokerUsername string `yaml:"broker_username"` BrokerPassword string `yaml:"broker_password"` BrokerURL string `yaml:"broker_url"` CF CF `yaml:"cf"` DisableSSLCertVerification bool `yaml:"disable_ssl_cert_verification"` //TODO: move this to CF ServiceOfferingID string `yaml:"service_offering_id"` Plans []PlanAccess `yaml:"plans"` }
type ServiceAdapter ¶
type ServiceAdapter struct {
Path string
}
type ServiceDeployment ¶
type ServiceDeployment struct { Releases serviceadapter.ServiceReleases Stemcells []serviceadapter.Stemcell }
func (ServiceDeployment) Validate ¶
func (s ServiceDeployment) Validate() error
type ServiceInstancesAPI ¶ added in v0.18.0
type ServiceInstancesAPI struct { URL string `yaml:"url"` RootCACert string `yaml:"root_ca_cert"` Authentication Authentication `yaml:"authentication"` DisableSSLCertVerification bool `yaml:"disable_ssl_cert_verification"` }
type ServiceMetadata ¶
type ServiceMetadata struct { DisplayName string `yaml:"display_name"` ImageURL string `yaml:"image_url"` LongDescription string `yaml:"long_description"` ProviderDisplayName string `yaml:"provider_display_name"` DocumentationURL string `yaml:"documentation_url"` SupportURL string `yaml:"support_url"` AdditionalMetadata map[string]interface{} `yaml:"additional_metadata,inline,omitempty"` }
type ServiceOffering ¶
type ServiceOffering struct { ID string Name string `yaml:"service_name"` Description string `yaml:"service_description"` Bindable bool PlanUpdatable bool `yaml:"plan_updatable"` Requires []string `yaml:"requires,omitempty"` Metadata ServiceMetadata DashboardClient *DashboardClient `yaml:"dashboard_client,omitempty"` Tags []string GlobalProperties serviceadapter.Properties `yaml:"global_properties"` GlobalQuotas Quotas `yaml:"global_quotas"` Plans Plans MaintenanceInfo *MaintenanceInfo `yaml:"maintenance_info,omitempty"` }
func (ServiceOffering) FindPlanByID ¶
func (s ServiceOffering) FindPlanByID(id string) (Plan, bool)
func (ServiceOffering) HasLifecycleErrands ¶
func (s ServiceOffering) HasLifecycleErrands() bool
func (ServiceOffering) Validate ¶ added in v0.18.0
func (s ServiceOffering) Validate() error
type UAAAuthentication ¶
type UAAAuthentication struct { URL string ClientCredentials ClientCredentials `yaml:"client_credentials"` UserCredentials UserCredentials `yaml:"user_credentials"` }
func (UAAAuthentication) IsSet ¶
func (cc UAAAuthentication) IsSet() bool
func (UAAAuthentication) Validate ¶
func (a UAAAuthentication) Validate(URLRequired bool) error
type UserCredentials ¶
func (UserCredentials) IsSet ¶
func (c UserCredentials) IsSet() bool
func (UserCredentials) Validate ¶ added in v0.20.0
func (b UserCredentials) Validate() error
Click to show internal directories.
Click to hide internal directories.