Documentation ¶
Overview ¶
Package grm helps with Google Resource Manager, aka Organizations, Folders, Projects and their role bindings
Index ¶
Constants ¶
const Retries = 5
Retries is the max number of read-modify-write cycles in case of concurrent policy changes detection
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bindings ¶
type Bindings struct { RolesOnOrganizations []string `yaml:"rolesOnOrganizations"` RolesOnRAMProject []string `yaml:"rolesOnRAMProject"` }
Bindings structure
type BindingsDeployment ¶
type BindingsDeployment struct { Artifacts struct { Member string } Core *deploy.Core Settings struct { Service struct { GRM Bindings } } }
BindingsDeployment struct
func NewBindingsDeployment ¶
func NewBindingsDeployment() *BindingsDeployment
NewBindingsDeployment create deployment structure
func (*BindingsDeployment) Deploy ¶
func (bindingsDeployment *BindingsDeployment) Deploy() (err error)
Deploy BindingsDeployment use retries on a read-modify-write cycle
type FolderDeployment ¶
FolderDeployment struct
func NewFolderDeployment ¶
func NewFolderDeployment() *FolderDeployment
NewFolderDeployment create deployment structure
func (*FolderDeployment) Deploy ¶
func (folderDeployment *FolderDeployment) Deploy() (err error)
Deploy FolderDeployment for now, only check the folder exist and is ACTIVE: It does NOT create the folder.
type ProjectDeployment ¶
ProjectDeployment struct
func NewProjectDeployment ¶
func NewProjectDeployment() *ProjectDeployment
NewProjectDeployment create deployment structure
func (*ProjectDeployment) Deploy ¶
func (projectDeployment *ProjectDeployment) Deploy() (err error)
Deploy ProjectDeployment check if a project exist, try to create it is missing and role projectCreator as been delegated (optional)