account_managers

package
v4.4.0-rc+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 15 Imported by: 13

Documentation

Index

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 ServiceAccountInfo struct {
	// the bits to save
	Name      string `json:"Name"`
	Email     string `json:"Email"`
	UniqueId  string `json:"UniqueId"`
	ProjectId string `json:"ProjectId"`

	// the bit to return
	PrivateKeyData string `json:"PrivateKeyData"`
}

type ServiceAccountManager

type ServiceAccountManager struct {
	ProjectId  string
	HttpConfig *jwt.Config
	Logger     lager.Logger
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL