Documentation ¶
Index ¶
- type Service
- func (service Service) Checksum(key string) (string, error)
- func (service Service) CopyToDestination(sourceKey string, destinationKey string) error
- func (service Service) Delete(key string) error
- func (service Service) DeleteDestination(key string) error
- func (service Service) DeleteFolder(prefix string) error
- func (service Service) Deletes(keys []string) error
- func (service Service) Download(key string, downloadURL string) error
- func (service Service) GetAllFiles(prefix string) ([]*get3w.File, error)
- func (service Service) GetDestinationKey(key ...string) string
- func (service Service) GetDestinationPrefix(prefix ...string) string
- func (service Service) GetFiles(prefix string) ([]*get3w.File, error)
- func (service Service) GetRootKey(key ...string) string
- func (service Service) GetRootPrefix(prefix ...string) string
- func (service Service) GetSourceKey(key ...string) string
- func (service Service) GetSourcePrefix(prefix ...string) string
- func (service Service) IsExist(key string) bool
- func (service Service) NewFolder(prefix string) error
- func (service Service) Read(key string) ([]byte, error)
- func (service Service) Rename(owner, newName string, deleteAll bool) error
- func (service Service) Upload(key string, filePath string) error
- func (service Service) Write(key string, data []byte) error
- func (service Service) WriteDestination(key string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service s3 service
func (Service) CopyToDestination ¶
CopyToDestination object to destinatioin
func (Service) DeleteDestination ¶
DeleteDestination specified object
func (Service) DeleteFolder ¶
DeleteFolder delete objects by prefix
func (Service) GetAllFiles ¶
GetAllFiles return all files by appname and prefix
func (Service) GetDestinationKey ¶
GetDestinationKey get file key by relatedURL
func (Service) GetDestinationPrefix ¶
GetDestinationPrefix return app prefix
func (Service) GetRootKey ¶
GetRootKey get file key by relatedURL
func (Service) GetRootPrefix ¶
GetRootPrefix return app prefix
func (Service) GetSourceKey ¶
GetSourceKey get file key by relatedURL
func (Service) GetSourcePrefix ¶
GetSourcePrefix return app prefix
Click to show internal directories.
Click to hide internal directories.