Documentation ¶
Index ¶
- Constants
- func AddPathSeparatorToFolders(folder string) string
- func GetGoogleClient(ctx context.Context) (*storage.Client, error)
- func GetS3Client(srcDest *entities.SourceDestination) (*session.Session, error)
- func IsDirectory(path string) (bool, error)
- func IsSourceAndDestinationFolders(srcDest *entities.SourceDestination) (int, error)
- func UploadAFileToS3(source string, awsSession *session.Session, bucket, destObject string) error
- func UploadFileToGoogle(ctx context.Context, buf *bytes.Buffer, bucket, object string) error
Constants ¶
View Source
const DefaultRegion = "us-east-1"
Variables ¶
This section is empty.
Functions ¶
func GetS3Client ¶
func GetS3Client(srcDest *entities.SourceDestination) (*session.Session, error)
func IsDirectory ¶
func IsSourceAndDestinationFolders ¶
func IsSourceAndDestinationFolders(srcDest *entities.SourceDestination) (int, error)
func UploadAFileToS3 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.