Documentation ¶
Overview ¶
iam package contains functions for working with the IAM APIs
Index ¶
- Constants
- func EditIAMResourceRole(ctx context.Context, client *client.APIClient, ...) (*client.Response, error)
- func ErrorTestServerForCompanyIAMList(t *testing.T, companyID string) *httptest.Server
- func ErrorTestServerForEditIAMRole(t *testing.T, companyID, entityID string) *httptest.Server
- func ErrorTestServerForProjectIAMList(t *testing.T, companyID, projectID string) *httptest.Server
- func ListAllIAMEntities(ctx context.Context, client *client.APIClient, companyID string, ...) (*client.Response, error)
- func ListSpecificEntities(ctx context.Context, client *client.APIClient, companyID string, ...) (*client.Response, error)
- func RowForGroupIdentity(identity resources.GroupIdentity) []string
- func RowForIAMIdentity(identity resources.IAMIdentity) []string
- func RowForProjectIAMIdentity(projectID string) func(resources.IAMIdentity) []string
- func RowForServiceAccountIdentity(identity resources.ServiceAccountIdentity) []string
- func RowForUserIdentity(identity resources.UserIdentity) []string
- func TestServerForCompanyIAMEditRole(t *testing.T, companyID, entityID, entityType string) *httptest.Server
- func TestServerForCompanyIAMList(t *testing.T, companyID string) *httptest.Server
- func TestServerForCompanySpecificList(t *testing.T, companyID, entityType string) *httptest.Server
- func TestServerForProjectIAMList(t *testing.T, companyID, projectID string) *httptest.Server
Constants ¶
View Source
const ( GroupsEntityName = "group" UsersEntityName = "user" ServiceAccountsEntityName = "serviceaccount" )
Variables ¶
This section is empty.
Functions ¶
func EditIAMResourceRole ¶
func ListAllIAMEntities ¶
func ListSpecificEntities ¶
func RowForGroupIdentity ¶
func RowForGroupIdentity(identity resources.GroupIdentity) []string
func RowForIAMIdentity ¶
func RowForIAMIdentity(identity resources.IAMIdentity) []string
func RowForProjectIAMIdentity ¶
func RowForProjectIAMIdentity(projectID string) func(resources.IAMIdentity) []string
func RowForServiceAccountIdentity ¶
func RowForServiceAccountIdentity(identity resources.ServiceAccountIdentity) []string
func RowForUserIdentity ¶
func RowForUserIdentity(identity resources.UserIdentity) []string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.