Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
Bucket string `env:"BUCKET,required"`
}
func (*Storage) Init ¶
Init the environment and set up the relevant variables in order to run seamlessly.
func (*Storage) Upload ¶
UploadFile to the given bucket by where file is the local path and key is the desired remote path in the bucket.
func (*Storage) UploadFiles ¶
func (s *Storage) UploadFiles(ctx context.Context, files []UploadFile) error
Upload puts the wanted files given by the map between local and remote paths into the bucket that was defined by `Bucket`.
type UploadFile ¶
Click to show internal directories.
Click to hide internal directories.