Documentation ¶
Index ¶
- func FixedRoleBindComputedVariables(role string) []varcontext.DefaultVariable
- func ServiceAccountBindComputedVariables() []varcontext.DefaultVariable
- func ServiceAccountBindOutputVariables() []broker.BrokerVariable
- func ServiceAccountWhitelistWithDefault(whitelist []string, defaultValue string) []broker.BrokerVariable
- type ServiceAccountInfo
- type ServiceAccountManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixedRoleBindComputedVariables ¶
func FixedRoleBindComputedVariables(role string) []varcontext.DefaultVariable
FixedRoleBindComputedVariables allows you to create a service account with a fixed role.
func ServiceAccountBindComputedVariables ¶
func ServiceAccountBindComputedVariables() []varcontext.DefaultVariable
ServiceAccountBindComputedVariables holds computed variables required to provision service accounts, label them and ensure they are unique.
func ServiceAccountBindOutputVariables ¶
func ServiceAccountBindOutputVariables() []broker.BrokerVariable
Variables output by all brokers that return service account info
func ServiceAccountWhitelistWithDefault ¶
func ServiceAccountWhitelistWithDefault(whitelist []string, defaultValue string) []broker.BrokerVariable
ServiceAccountWhitelistWithDefault holds non-overridable whitelists with default values.
Types ¶
type ServiceAccountInfo ¶
type ServiceAccountManager ¶
func (*ServiceAccountManager) CreateCredentials ¶
func (sam *ServiceAccountManager) CreateCredentials(ctx context.Context, vc *varcontext.VarContext) (map[string]interface{}, 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(ctx context.Context, binding models.ServiceBindingCredentials) error
deletes the given service account from Google
Click to show internal directories.
Click to hide internal directories.