Documentation ¶
Index ¶
- func QueryComputeInstancePermissions(permsToTest []string, project, zone, instance, svcAcct, reason string) ([]string, error)
- func QueryProjectPermissions(permsToTest []string, project, svcAcct, reason string) (perms []string, err error)
- func QueryPubSubPermissions(permsToTest []string, project, topic, svcAcct, reason string) ([]string, error)
- func QueryServiceAccountPermissions(permsToTest []string, project, email string) ([]string, error)
- func QueryStorageBucketPermissions(permsToTest []string, bucket, svcAcct, reason string) ([]string, error)
- func QueryTestablePermissionsOnResource(resource string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryComputeInstancePermissions ¶
func QueryComputeInstancePermissions( permsToTest []string, project, zone, instance, svcAcct, reason string, ) ([]string, error)
QueryComputeInstancePermissions gets the authenticated members permissions on a compute instance Modified from https://github.com/salrashid123/gcp_iam/blob/main/query/main.go#L351-L371
func QueryProjectPermissions ¶
func QueryProjectPermissions(permsToTest []string, project, svcAcct, reason string) (perms []string, err error)
QueryProjectPermissions gets the authenticated members permissions on a project Modified from https://github.com/salrashid123/gcp_iam/blob/main/query/main.go#L534-L575
func QueryPubSubPermissions ¶
func QueryPubSubPermissions(permsToTest []string, project, topic, svcAcct, reason string) ([]string, error)
QueryPubSubPermissions gets the authenticated members permissions on a PubSub topic.
func QueryServiceAccountPermissions ¶
QueryServiceAccountPermissions gets the authenticated members permissions on a service account Modified from https://github.com/salrashid123/gcp_iam/blob/main/query/main.go#L150-L173
func QueryStorageBucketPermissions ¶
func QueryStorageBucketPermissions(permsToTest []string, bucket, svcAcct, reason string) ([]string, error)
QueryStorageBucketPermissions gets the authenticated members permissions on a storage bucket Modified from https://github.com/salrashid123/gcp_iam/blob/main/query/main.go#L313-L338
func QueryTestablePermissionsOnResource ¶
QueryTestablePermissionsOnResource gets the testable permissions on a resource Modified from https://github.com/salrashid123/gcp_iam/blob/main/query/main.go#L71-L108
Types ¶
This section is empty.