Documentation ¶
Index ¶
- func InitCredentials(flag *flag.FlagSet, envPtr *bool, credPtr *bool, profilePtr *string) (aws.Config, string)
- type S3Handler
- func (s *S3Handler) CreateBucket(name string, length int) (bool, error)
- func (s *S3Handler) DeleteObject(bucket string, key string) (bool, error)
- func (s *S3Handler) GetBuckets() ([]string, error)
- func (s *S3Handler) GetDirectoryStructure(bucket string, delimiter string, prefix string) ([]string, error)
- func (s *S3Handler) GetFolderNames(bucket string, delimiter string, prefix string) ([]string, error)
- func (s *S3Handler) GetKeyNames(bucket string, delimiter string, prefix string) ([]string, error)
- func (s *S3Handler) IsGlacier(bucket string, key string) (bool, error)
- func (s *S3Handler) PreviewFile(bucket string, key string) ([]byte, error)
- func (s *S3Handler) RenameObject(bucket string, oldKey string, newKey string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type S3Handler ¶
type S3Handler struct {
// contains filtered or unexported fields
}
func NewS3Handler ¶
func (*S3Handler) CreateBucket ¶
func (*S3Handler) DeleteObject ¶
func (*S3Handler) GetBuckets ¶
func (*S3Handler) GetDirectoryStructure ¶
func (*S3Handler) GetFolderNames ¶
func (*S3Handler) GetKeyNames ¶
func (*S3Handler) PreviewFile ¶
TODO: write utility function that checks the byte slice for non utf-8 chars if this is present, display a /// cannot display binary /// message
Click to show internal directories.
Click to hide internal directories.