gcp

package
v0.0.0-...-151ef19 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchAllRoles

func FetchAllRoles(ctx context.Context, scope string) ([]model.Role, error)

func FetchAssetIAMPolicy

func FetchAssetIAMPolicy(ctx context.Context, scope string) ([]model.ResourceIAMPermission, error)

func FetchGroups

func FetchGroups(ctx context.Context, projectId, organization string) ([]model.Principal, error)

func FetchGroupsMembership

func FetchGroupsMembership(ctx context.Context, groups []model.Principal, projectId string) ([]model.PrincipalRelationship, []model.Principal, error)

func FetchHierarchies

func FetchHierarchies(ctx context.Context, scope string) ([]model.Hierarchy, error)

func FetchServiceAccounts

func FetchServiceAccounts(ctx context.Context, scope string) ([]model.Principal, error)

func FetchUsers

func FetchUsers(ctx context.Context, projectId, customerID string) ([]model.Principal, error)

func UploadFilesToGCS

func UploadFilesToGCS(ctx context.Context, bucketName, srcPath string) error

UploadFilesToGCS uploads the specified path to GCS. If the path is a directory, it uploads all files in the directory. If the path is a file, it uploads the single file.

Types

type GroupWithMembers

type GroupWithMembers struct {
	Group   model.Principal
	Members []model.PrincipalRelationship
	Users   []model.Principal
}

Jump to

Keyboard shortcuts

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