Documentation
¶
Index ¶
- func ServiceAccountName(bindingId string) string
- type ServiceAccountInfo
- type ServiceAccountManager
- func (b *ServiceAccountManager) BuildInstanceCredentials(bindDetails map[string]string, instanceDetails map[string]string) map[string]string
- func (sam *ServiceAccountManager) CreateAccountInGoogle(instanceID string, bindingID string, details models.BindDetails, ...) (models.ServiceBindingCredentials, error)
- func (sam *ServiceAccountManager) DeleteAccountFromGoogle(binding models.ServiceBindingCredentials) error
- type SqlAccountInfo
- type SqlAccountManager
- func (b *SqlAccountManager) BuildInstanceCredentials(bindDetails map[string]string, instanceDetails map[string]string) map[string]string
- func (sam *SqlAccountManager) CreateAccountInGoogle(instanceID string, bindingID string, details models.BindDetails, ...) (models.ServiceBindingCredentials, error)
- func (sam *SqlAccountManager) DeleteAccountFromGoogle(binding models.ServiceBindingCredentials) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (*ServiceAccountManager) CreateAccountInGoogle ¶
func (sam *ServiceAccountManager) CreateAccountInGoogle(instanceID string, bindingID string, details models.BindDetails, instance models.ServiceInstanceDetails) (models.ServiceBindingCredentials, error)
creates a new service account for the given binding id with the role listed in details.Parameters["role"]
func (*ServiceAccountManager) DeleteAccountFromGoogle ¶
func (sam *ServiceAccountManager) DeleteAccountFromGoogle(binding models.ServiceBindingCredentials) error
deletes the given service account from Google
type SqlAccountInfo ¶
type SqlAccountManager ¶
func (*SqlAccountManager) BuildInstanceCredentials ¶
func (*SqlAccountManager) CreateAccountInGoogle ¶
func (sam *SqlAccountManager) CreateAccountInGoogle(instanceID string, bindingID string, details models.BindDetails, instance models.ServiceInstanceDetails) (models.ServiceBindingCredentials, error)
inserts a new user into the database and creates new ssl certs
func (*SqlAccountManager) DeleteAccountFromGoogle ¶
func (sam *SqlAccountManager) DeleteAccountFromGoogle(binding models.ServiceBindingCredentials) error
deletes the user from the database and invalidates the associated ssl certs
Click to show internal directories.
Click to hide internal directories.