intern

package
v0.0.0-...-8a9faf9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBucketRegion

func GetBucketRegion(config aws.Config, bucket string) string

GetBucketRegion determines the region for a bucket

func GetBuckets

func GetBuckets(config aws.Config) ([]string, error)

GetBuckets returns all of the buckets

func OpenACL

func OpenACL(grants []*s3.Grant) bool

OpenACL checks an ACL to see if its "open"

func OpenPolicy

func OpenPolicy(policy *string) bool

OpenPolicy checks a policy to see if its "open"

Types

type PublicBuckets

type PublicBuckets struct {
	ACL    []string
	Policy []string
}

PublicBuckets stores a list of the public buckets either by ACL or by Policy

func GetPublicBuckets

func GetPublicBuckets(config aws.Config) (PublicBuckets, error)

GetPublicBuckets determines which buckets are public

Jump to

Keyboard shortcuts

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