gcpclient

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func QueryServiceAccountPermissions(permsToTest []string, project, email string) ([]string, error)

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

func QueryTestablePermissionsOnResource(resource string) ([]string, error)

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.

Jump to

Keyboard shortcuts

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