mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 09:38:26 -05:00
* add storage-users trash-bin cli add task to clean up outdated trash-bin resources add trash-bin cli purge-expired command to purge expired trash-bin resources add purge-expired task tests
22 lines
452 B
Go
22 lines
452 B
Go
package event
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
|
|
apiUser "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
|
|
)
|
|
|
|
// PurgeTrashBin wraps all needed information to purge a trash-bin
|
|
type PurgeTrashBin struct {
|
|
ExecutantID *apiUser.UserId
|
|
ExecutionTime time.Time
|
|
}
|
|
|
|
// Unmarshal to fulfill umarshaller interface
|
|
func (PurgeTrashBin) Unmarshal(v []byte) (interface{}, error) {
|
|
e := PurgeTrashBin{}
|
|
err := json.Unmarshal(v, &e)
|
|
return e, err
|
|
}
|