gcs

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GCSBucketEncryptionEnabled added in v1.2.0

func GCSBucketEncryptionEnabled(resource commons.Resource) bool

func GCSBucketNoPublicAccess added in v1.2.0

func GCSBucketNoPublicAccess(resource commons.Resource) bool

TODO: avoid to do one API call per bucket

func GCSBucketVersioningEnabled added in v1.2.0

func GCSBucketVersioningEnabled(resource commons.Resource) bool

func GetBucketPolicy added in v1.2.0

func GetBucketPolicy(account internal.GCPAccount, client *storage.Client, bucket string) iam.Policy

func GetBuckets

func GetBuckets(account internal.GCPAccount, client *storage.Client) []storage.BucketAttrs

func RunChecks

func RunChecks(wa *sync.WaitGroup, account internal.GCPAccount, c *commons.Config, queue chan []commons.Check)

Types

type GCSBucket added in v1.2.0

type GCSBucket struct {
	Bucket storage.BucketAttrs
	Policy iam.Policy
}

func (*GCSBucket) GetID added in v1.2.0

func (b *GCSBucket) GetID() string

Jump to

Keyboard shortcuts

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