You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
596 B
18 lines
596 B
class SnapshotKey(FilesystemBase.SnapshotKey):
|
|
''' Default implementation of snapshot key class. May optionally be
|
|
inherited by filesystem implementations in place of SnapshotKeyBase. '''
|
|
def __init__(self, filesystem: FilesystemBase, tag: str,
|
|
timestamp: datetime):
|
|
self._filesystem = filesystem
|
|
self._tag = tag
|
|
self._timestamp = timestamp
|
|
|
|
def filesystem(self) -> FilesystemBase:
|
|
return self._filesystem
|
|
|
|
def tag(self) -> str:
|
|
return self._tag
|
|
|
|
def timestamp(self) -> datetime:
|
|
return self._timestamp
|
|
|
|
|