s3utils

package
v0.0.0-...-536613a Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyAll

func CopyAll(bucket, prefix, newPrefix string) ([]string, error)

CopyAll copy all folders and files in the prefix to newPrefix and return all keys in prefix

func DeleteAll

func DeleteAll(bucket string, keys []string) error

DeleteAll delete objects by prefix

func GetAllKeys

func GetAllKeys(bucket, prefix string) ([]string, error)

GetAllKeys returns all keys in the app

func GetFolderNamesAndFileNames

func GetFolderNamesAndFileNames(bucket, prefix string) ([]string, []string, error)

GetFolderNamesAndFileNames return folder names and file names

func IsExist

func IsExist(bucket, owner, name string) bool

IsExist return true if specified key exists

func Presign

func Presign(bucket, key string) (string, error)

Presign returns the request's signed URL. Error will be returned if the signing fails.

func Write

func Write(bucket, key string, bs []byte) error

Write bytes to specified key resource

Types

This section is empty.

Jump to

Keyboard shortcuts

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