Documentation
¶
Index ¶
- func ServiceAccountBindInputVariables(roleWhitelist []string) []broker.BrokerVariable
- func ServiceAccountBindOutputVariables() []broker.BrokerVariable
- func ServiceAccountName(bindingId string) string
- type ServiceAccountInfo
- type ServiceAccountManager
- func (b *ServiceAccountManager) BuildInstanceCredentials(bindRecord models.ServiceBindingCredentials, ...) (map[string]string, error)
- func (sam *ServiceAccountManager) CreateAccountWithRoles(bindingID string, roles []string) (models.ServiceBindingCredentials, error)
- func (sam *ServiceAccountManager) CreateCredentials(instanceID string, bindingID string, details brokerapi.BindDetails, ...) (models.ServiceBindingCredentials, error)
- func (sam *ServiceAccountManager) DeleteCredentials(binding models.ServiceBindingCredentials) error
- type SqlAccountInfo
- type SqlAccountManager
- func (b *SqlAccountManager) BuildInstanceCredentials(bindRecord models.ServiceBindingCredentials, ...) (map[string]string, error)
- func (sam *SqlAccountManager) CreateCredentials(instanceID string, bindingID string, details brokerapi.BindDetails, ...) (models.ServiceBindingCredentials, error)
- func (sam *SqlAccountManager) DeleteCredentials(binding models.ServiceBindingCredentials) error
- type StringSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServiceAccountBindInputVariables ¶
func ServiceAccountBindInputVariables(roleWhitelist []string) []broker.BrokerVariable
func ServiceAccountBindOutputVariables ¶
func ServiceAccountBindOutputVariables() []broker.BrokerVariable
Variables output by all brokers that return service account info
func ServiceAccountName ¶
XXX names are truncated to 20 characters because of a bug in the IAM service
Types ¶
type ServiceAccountInfo ¶
type ServiceAccountManager ¶
func (*ServiceAccountManager) BuildInstanceCredentials ¶
func (b *ServiceAccountManager) BuildInstanceCredentials(bindRecord models.ServiceBindingCredentials, instanceRecord models.ServiceInstanceDetails) (map[string]string, error)
func (*ServiceAccountManager) CreateAccountWithRoles ¶
func (sam *ServiceAccountManager) CreateAccountWithRoles(bindingID string, roles []string) (models.ServiceBindingCredentials, error)
CreateAccountWithRoles creates a service account with a name based on bindingID, JSON key and grants it zero or more roles the roles MUST be missing the roles/ prefix.
func (*ServiceAccountManager) CreateCredentials ¶
func (sam *ServiceAccountManager) CreateCredentials(instanceID string, bindingID string, details brokerapi.BindDetails, instance models.ServiceInstanceDetails) (models.ServiceBindingCredentials, error)
If roleWhitelist is specified, then the extracted role is validated against it and an error is returned if the role is not contained within the whitelist
func (*ServiceAccountManager) DeleteCredentials ¶
func (sam *ServiceAccountManager) DeleteCredentials(binding models.ServiceBindingCredentials) error
deletes the given service account from Google
type SqlAccountInfo ¶
type SqlAccountManager ¶
func (*SqlAccountManager) BuildInstanceCredentials ¶
func (b *SqlAccountManager) BuildInstanceCredentials(bindRecord models.ServiceBindingCredentials, instanceRecord models.ServiceInstanceDetails) (map[string]string, error)
func (*SqlAccountManager) CreateCredentials ¶
func (sam *SqlAccountManager) CreateCredentials(instanceID string, bindingID string, details brokerapi.BindDetails, instance models.ServiceInstanceDetails) (models.ServiceBindingCredentials, error)
inserts a new user into the database and creates new ssl certs
func (*SqlAccountManager) DeleteCredentials ¶
func (sam *SqlAccountManager) DeleteCredentials(binding models.ServiceBindingCredentials) error
deletes the user from the database and invalidates the associated ssl certs
type StringSet ¶
StringSet is a set data structure for strings
func NewStringSet ¶
NewStringSet creates a new string set with the given contents.
func (StringSet) Equals ¶
Equals compares the contents of the two sets and returns true if they are the same.