}
func (s *azureVolumeAdder) Set(containerName string) error {
- if trashLifetime <= 0 {
- log.Print("Missing required configuration parameter: trash-lifetime")
+ if trashLifetime != 0 {
return ErrNotImplemented
}
if v.readonly {
return MethodDisabledError
}
+
+ if trashLifetime != 0 {
+ return ErrNotImplemented
+ }
+
// Ideally we would use If-Unmodified-Since, but that
// particular condition seems to be ignored by Azure. Instead,
// we get the Etag before checking Mtime, and use If-Match to
// Untrash a Keep block.
// TBD
func (v *AzureBlobVolume) Untrash(loc string) error {
- return nil
+ return ErrNotImplemented
}
// Status returns a VolumeStatus struct with placeholder data.
func (v *AzureBlobVolume) isKeepBlock(s string) bool {
return keepBlockRegexp.MatchString(s)
}
+
+// EmptyTrash looks for trashed blocks that exceeded trashLifetime
+// and deletes them from the volume.
+// TBD
+func (v *AzureBlobVolume) EmptyTrash() {
+}