Documentation ¶
Overview ¶
s3 tools
Index ¶
- func CheckUserLock(s3c aws.S3API, bucket *string, lock_path *string) error
- func Delete(s3c aws.S3API, bucket *string, path *string) error
- func Get(s3c aws.S3API, bucket *string, path *string) (*[]byte, error)
- func GetBucketTags(s3c aws.S3API, bucket *string) (map[string]string, error)
- func GetObject(s3c aws.S3API, bucket *string, path *string) (*s3.GetObjectOutput, *[]byte, error)
- func GetSHA256(s3c aws.S3API, bucket *string, path *string) (string, error)
- func GetStr(s3c aws.S3API, bucket *string, path *string) (*string, error)
- func GetStruct(s3c aws.S3API, bucket *string, path *string, str interface{}) error
- func GrabLock(s3c aws.S3API, bucket *string, lock_path *string, uuid string) (bool, error)
- func Put(s3c aws.S3API, bucket *string, path *string, content *[]byte) error
- func PutFile(s3c aws.S3API, file_path *string, bucket *string, s3_file_path *string) error
- func PutSecure(s3c aws.S3API, bucket *string, path *string, content *string, kmsKeyId *string) error
- func PutSecureFile(s3c aws.S3API, file_path *string, bucket *string, s3_file_path *string, ...) error
- func PutStr(s3c aws.S3API, bucket *string, path *string, content *string) error
- func PutStruct(s3c aws.S3API, bucket *string, path *string, str interface{}) error
- func PutWithCacheControl(s3c aws.S3API, bucket *string, path *string, content *[]byte, ...) error
- func PutWithType(s3c aws.S3API, bucket *string, path *string, content *[]byte, ...) error
- func PutWithTypeAndCacheControl(s3c aws.S3API, bucket *string, path *string, content *[]byte, ...) error
- func ReleaseLock(s3c aws.S3API, bucket *string, lock_path *string, uuid string) error
- type Lock
- type NotFoundError
- type UserLock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBucketTags ¶
GetBucketTags returns the tags on a bucket
func GrabLock ¶
GrabLock creates a lock file in S3 with a UUID it returns a grabbed bool, and error if the Lock already exists and UUID is equal to the existing lock it will returns true, otherwise false if the Lock doesn't exist it will create the file and return true
func PutSecureFile ¶
func PutWithCacheControl ¶
func PutWithType ¶
Types ¶
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.