Documentation
¶
Index ¶
- type Project
- func (p *Project) AddUser(email string, priv privilege.Level) error
- func (p *Project) ChangeUserPrivilege(email string, priv privilege.Level) error
- func (p *Project) HasServiceAccount(name string) bool
- func (p *Project) HasUser(email string) bool
- func (p *Project) RemoveServiceAccount(name string)
- func (p *Project) RemoveUser(email string)
- func (p *Project) SetServiceAccount(name string, keyID string)
- type Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct { Name string Description string Members map[string]privilege.Level ProjectKey string ServiceAccounts map[string]string }
Project represents a project in Padl
func NewProject ¶
NewProject is the project object constructor
func (*Project) ChangeUserPrivilege ¶
ChangeUserPrivilege changes a user's level of privilege on the project
func (*Project) HasServiceAccount ¶
HasServiceAccount checks whether a project has given service account
func (*Project) RemoveServiceAccount ¶
RemoveServiceAccount removes a service account
func (*Project) RemoveUser ¶
RemoveUser removes a user from the project
func (*Project) SetServiceAccount ¶
SetServiceAccount sets a service account for a project
Click to show internal directories.
Click to hide internal directories.