iam

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

iam package contains functions for working with the IAM APIs

Index

Constants

View Source
const (
	GroupsEntityName          = "group"
	UsersEntityName           = "user"
	ServiceAccountsEntityName = "serviceaccount"
)

Variables

This section is empty.

Functions

func EditIAMResourceRole

func EditIAMResourceRole(ctx context.Context, client *client.APIClient, companyID, resourceID, entityType string, change resources.EditIAMRole) (*client.Response, error)

func ErrorTestServerForCompanyIAMList

func ErrorTestServerForCompanyIAMList(t *testing.T, companyID string) *httptest.Server

func ErrorTestServerForEditIAMRole

func ErrorTestServerForEditIAMRole(t *testing.T, companyID, entityID string) *httptest.Server

func ErrorTestServerForProjectIAMList

func ErrorTestServerForProjectIAMList(t *testing.T, companyID, projectID string) *httptest.Server

func ListAllIAMEntities

func ListAllIAMEntities(ctx context.Context, client *client.APIClient, companyID string, projectIDs []string, entityTypes map[string]bool) (*client.Response, error)

func ListSpecificEntities

func ListSpecificEntities(ctx context.Context, client *client.APIClient, companyID string, entityType string) (*client.Response, error)

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

func TestServerForCompanyIAMEditRole

func TestServerForCompanyIAMEditRole(t *testing.T, companyID, entityID, entityType string) *httptest.Server

func TestServerForCompanyIAMList

func TestServerForCompanyIAMList(t *testing.T, companyID string) *httptest.Server

func TestServerForCompanySpecificList

func TestServerForCompanySpecificList(t *testing.T, companyID, entityType string) *httptest.Server

func TestServerForProjectIAMList

func TestServerForProjectIAMList(t *testing.T, companyID, projectID string) *httptest.Server

Types

This section is empty.

Jump to

Keyboard shortcuts

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