Documentation
¶
Index ¶
- Variables
- func CheckPublicBucket(bucketName string, sess *session.Session) (bool, error)
- func GetBucketEncryption(sess *session.Session, name string) (string, error)
- func GetBucketNames(sess *session.Session, name string) ([]string, error)
- func GetBucketRegion(sess *session.Session, bucketName string) (string, error)
- func GoCopyObject(sess *session.Session, input CopyObjectStruct) error
- func GoGetObject(sess *session.Session, input GetObjectStruct) (io.ReadCloser, error)
- func GoPutObject(sess *session.Session, input PutObjectStruct) error
- func WriteProfilesBuckets(profileBuckets ProfilesBuckets) error
- func WriteProfilesBucketsFileSize(profilesBuckets []*BucketSizeInfo) error
- type AccountBuckets
- type BucketInfo
- type BucketSizeInfo
- func GetBucketFileSize(bucket BucketInfo, sess *session.Session) (*BucketSizeInfo, error)
- func GetProfileBucketsFileSize(buckets []BucketInfo, account utils.AccountInfo) ([]*BucketSizeInfo, error)
- func GetProfilesPublicBucketsFileSize(accounts []utils.AccountInfo, bucketOption string) ([]*BucketSizeInfo, error)
- type CopyObjectStruct
- type FileType
- type GetObjectStruct
- type ProfilesBuckets
- type PutObjectStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidFileTypes = []string{"7z", "abc", "accdb", "apk", "bat", "bin", "bz2", "bzip2", "c", "c#", "cab", "cc", "cer", "cpp", "csv", "cxx", "dbf", "dbx", "deb", "dmg", "doc", "docx", "dot", "dotx", "dwg", "dxf", "eml", "emlx", "exe", "gpg", "gz", "gzip", "html", "iwa", "jar", "java", "json", "key", "keynote", "lua", "mdb", "msg", "msi", "odp", "oos", "p12", "pages", "pdf", "perl", "pgp", "pl", "pot", "pps", "ppt", "pptx", "pst", "py", "rar", "rtf", "sdp", "sdw", "sldasm", "slddrw", "sldprt", "sql", "sxi", "sxw", "tar.gz", "tsv", "txt", "vdx", "vsd", "vss", "vst", "vsx", "vtw", "vtx", "xls", "xlsx", "xlw", "xml", "xps", "zip"}
var ValidFileTypes = []string{"json", "yaml", "yml", "log", "tfstate", "csv"}
Functions ¶
func CheckPublicBucket ¶
Will return true if the bucket is public
func GetBucketEncryption ¶
GetBucketEncryption will return the encryption type, if enabled, for the specified bucket There should only ever be one encrypt type applied, even though the rules is a slice
func GetBucketNames ¶
GetAllBucketNames will return all of the bucket names for the listed account Can filter down the names with the "name" parameter if desired
func GetBucketRegion ¶
func GoCopyObject ¶
func GoCopyObject(sess *session.Session, input CopyObjectStruct) error
func GoGetObject ¶
func GoGetObject(sess *session.Session, input GetObjectStruct) (io.ReadCloser, error)
func GoPutObject ¶
func GoPutObject(sess *session.Session, input PutObjectStruct) error
func WriteProfilesBuckets ¶
func WriteProfilesBuckets(profileBuckets ProfilesBuckets) error
func WriteProfilesBucketsFileSize ¶
func WriteProfilesBucketsFileSize(profilesBuckets []*BucketSizeInfo) error
Types ¶
type AccountBuckets ¶
type AccountBuckets []BucketInfo
type BucketInfo ¶
type BucketInfo struct { Name string `yaml:"name"` Profile string `yaml:"profile"` AccountId string Encryption string `yaml:"encrypted"` Region string `yaml:"region"` }
func GetProfileBuckets ¶
func GetProfileBuckets(account utils.AccountInfo, name string) ([]BucketInfo, error)
name is an optional parameter for searching the buckets for a name
type BucketSizeInfo ¶
type BucketSizeInfo struct { BucketInfo BucketInfo FileTypes []FileType ObjectCount int TotalSize int64 }
func GetBucketFileSize ¶
func GetBucketFileSize(bucket BucketInfo, sess *session.Session) (*BucketSizeInfo, error)
func GetProfileBucketsFileSize ¶
func GetProfileBucketsFileSize(buckets []BucketInfo, account utils.AccountInfo) ([]*BucketSizeInfo, error)
func GetProfilesPublicBucketsFileSize ¶
func GetProfilesPublicBucketsFileSize(accounts []utils.AccountInfo, bucketOption string) ([]*BucketSizeInfo, error)
type CopyObjectStruct ¶
type GetObjectStruct ¶
type ProfilesBuckets ¶
type ProfilesBuckets []AccountBuckets
func GetProfilesBuckets ¶
func GetProfilesBuckets(accounts []utils.AccountInfo) (ProfilesBuckets, error)
type PutObjectStruct ¶
Click to show internal directories.
Click to hide internal directories.