Documentation ¶
Index ¶
- type Archive
- type S3Archive
- func (s *S3Archive) CheckFileIntergrity(bucketName string, awsfolderPath string, filePath string) (bool, error)
- func (s *S3Archive) GetLogBucketName() string
- func (s *S3Archive) GetReserveDataBucketName() string
- func (s *S3Archive) RemoveFile(bucketName string, awsfolderPath string, filePath string) error
- func (s *S3Archive) UploadFile(bucketName string, awsfolderPath string, filePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archive ¶
type Archive interface { RemoveFile(bucketName string, destinationFolder string, filePath string) error // UploadFile: upload a local file to a remote destination. // The local file name should be passed in as full file Path. UploadFile(bucketName string, destinationFolder string, filePath string) error // CheckFileIntergrity: to ensure that the local file and the upload version is identical. CheckFileIntergrity(bucketName string, destinationFolder string, filePath string) (bool, error) // GetReserveDataBucketName: return pre-configured remote Bucket to store Reserve Data GetReserveDataBucketName() string // GetLogBucketName: return pre-configured remote Bucket to store logs GetLogBucketName() string }
Archive is used to store obsolete files.
type S3Archive ¶
type S3Archive struct {
// contains filtered or unexported fields
}
func NewS3Archive ¶
func (*S3Archive) CheckFileIntergrity ¶
func (*S3Archive) GetLogBucketName ¶
func (*S3Archive) GetReserveDataBucketName ¶
func (*S3Archive) RemoveFile ¶
Click to show internal directories.
Click to hide internal directories.