Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindIAMPolicy ¶
Attaches specific iam roles to a given user conditionally. Notably, this policy overwrites any existing policies. If you do not append your policy changes to an existing policy, it is very easy to get the gcp organization into a bad state. Please take a look at the comment in the critical section before making changes Can pass in a Service to satisfy IAMer
Types ¶
type MockGoogler ¶
type MockGoogler struct { ListF func(domain, requestor string) (*admin.Groups, error) GetIamPolicyF func(ctx context.Context, resource Resource, getiampolicyrequest *cloudresourcemanager.GetIamPolicyRequest) (*cloudresourcemanager.Policy, error) SetIamPolicyF func(ctx context.Context, resource Resource, setiampolicyrequest *cloudresourcemanager.SetIamPolicyRequest) (*cloudresourcemanager.Policy, error) NowF func() time.Time }
func NewMockGoogler ¶
func NewMockGoogler() *MockGoogler
type ResourceType ¶
type ResourceType string
const ( Projects ResourceType = "projects" Organizations ResourceType = "organizations" )
Click to show internal directories.
Click to hide internal directories.