Documentation
¶
Index ¶
Constants ¶
View Source
const ( DummyRegion = "my-duck-server" HTTPPrefix = "http://" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
func (*Bucket) DownloadFile ¶
type ObjectStorageConfig ¶
type ObjectStorageConfig struct { Provider string Endpoint string Region string AccessKeyId string SecretAccessKey string }
func ConstructStorageConfig ¶
func ConstructStorageConfig(remoteUri, endpoint, accessKeyId, secretAccessKey string) (*ObjectStorageConfig, string, error)
func (*ObjectStorageConfig) DownloadFile ¶
func (storageConfig *ObjectStorageConfig) DownloadFile(remotePath, localDir, localFile string) (string, error)
DownloadFile downloads a file from the remote storage to the local storage.
func (*ObjectStorageConfig) UploadFile ¶
func (storageConfig *ObjectStorageConfig) UploadFile(localDir, localFile, remotePath string) (string, error)
Click to show internal directories.
Click to hide internal directories.