Part of lp.services.librarian.interfaces View In Hierarchy
Method | create | Create a file in the Librarian, returning the new alias. |
Method | __getitem__ | Lookup an ILibraryFileAlias by id. |
Method | findBySHA256 | Return all LibraryFileAlias whose content's sha256 match the |
An expiry time of None means the file will never expire until it is no longer referenced. An expiry of NEVER_EXPIRES means a file that will stay in the Librarian for ever. Setting it to another timestamp means that the file will expire and possibly be removed from the Librarian at this time. See LibrarianGarbageCollection.
If restricted is True, the file will be created through the IRestrictedLibrarianClient utility.