Documentation ¶
Index ¶
- func EnumerateRestApiRequest(ctx context.Context, accessToken string, r rest.RestCall) (rest.RestCall, []byte, error)
- func GetCredsFromServiceAccount(ctx context.Context, saPath string) (*cloudresourcemanager.Service, error)
- func GetPermissionsFromResourceManager(ctx context.Context, accessToken, projectId, resource string) ([]string, error)
- func RequestBuilder(ctx context.Context, r rest.RestCall, accessToken string) (*http.Request, error)
- type GCPEnumOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnumerateRestApiRequest ¶
func EnumerateRestApiRequest( ctx context.Context, accessToken string, r rest.RestCall, ) (rest.RestCall, []byte, error)
EnumerateRestApiRequest is a request to enumerate permissions using the REST API care should be paid to r policy.Resources
Types ¶
type GCPEnumOptions ¶
type GCPEnumOptions struct { Creds *cloudresourcemanager.Service ProjectId string }
Click to show internal directories.
Click to hide internal directories.