Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GC3Storage ¶
type GC3Storage struct {
// contains filtered or unexported fields
}
GC3Storage struct to hold the Google Cloud Storage client and bucket details
func NewGC3Storage ¶
func NewGC3Storage(ctx context.Context, credentialsFile, bucket string) (*GC3Storage, error)
NewGC3Storage initializes a new Google Cloud Storage client
func (*GC3Storage) DeleteFile ¶
func (g *GC3Storage) DeleteFile(ctx context.Context, filePath string) error
DeleteFile deletes a file from Google Cloud Storage
func (*GC3Storage) UploadFile ¶
func (g *GC3Storage) UploadFile(ctx context.Context, file *multipart.FileHeader, destination string) (string, error)
UploadFile uploads a file to Google Cloud Storage
type S3Storage ¶
type S3Storage struct {
// contains filtered or unexported fields
}
S3Storage struct to hold the S3 client and bucket details
func NewS3Storage ¶
NewS3Storage initializes a new S3 client
func (*S3Storage) DeleteFile ¶
DeleteFile deletes a file from S3
func (*S3Storage) UploadFile ¶
func (s *S3Storage) UploadFile(ctx context.Context, file *multipart.FileHeader, destination string) (string, error)
UploadFile uploads a file to S3
Click to show internal directories.
Click to hide internal directories.