scanner

package
v0.0.0-...-b0384cf Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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

func GetCredsFromServiceAccount

func GetCredsFromServiceAccount(ctx context.Context, saPath string) (*cloudresourcemanager.Service, error)

func GetPermissionsFromResourceManager

func GetPermissionsFromResourceManager(
	ctx context.Context,
	accessToken, projectId, resource string,
) ([]string, error)

func RequestBuilder

func RequestBuilder(ctx context.Context, r rest.RestCall, accessToken string) (*http.Request, error)

Types

type GCPEnumOptions

type GCPEnumOptions struct {
	Creds     *cloudresourcemanager.Service
	ProjectId string
}

Jump to

Keyboard shortcuts

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