PlaceOS Lockers Driver
Lockers
Section titled “Lockers”PlaceOS provides an interface to locker systems to simplify interactions and allow code reuse.
NOTE::
- it’s recommended to use users SSO email addresses as the
user_idthis includesowner_idandshare_withparameters - an example implementation of the lockers interface include Vecos Releezme
- abstract methods should implement security protections and not be used directly by frontends
the public methods are provided by the interface for user interfaces
Interface Overview
Section titled “Interface Overview”All drivers implementing the Lockers Interface need to implement the following functions:
locker_allocate
Section titled “locker_allocate”This allocates a locker to the specified user, without delay.
If the locker system supports it you can specify an expiry time.
locker_release
Section titled “locker_release”This returns the locker to the pool of available lockers.
lockers_allocated_to
Section titled “lockers_allocated_to”This lists the lockers allocated to the user specified
locker_share
Section titled “locker_share”Shares an allocated locker with another user
locker_unshare
Section titled “locker_unshare”Unshares an allocated locker from an individual or all users that a locker had been shared with
locker_shared_with
Section titled “locker_shared_with”This lists the users that have shared access to the locker, returning a list of PlaceOS ids that are preferred by the system. Typically a user emails.
locker_unlock
Section titled “locker_unlock”unlocks a locker, can accept a pin as a check to confirm the user has access