-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Locking" abstraction API #18
Comments
Merged
This has more or less been implemented now. The things left to do is the user/admin management stuff / ownership and lockdown. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Goal: To hide the details about Enterprise / Opal / Ruby etc. and provide a way to access locking ranges both for administrative (enable, disable, modify) and for user (lock / unlock).
Suggestions:
github.com/bluecmd/go-tcg-storage/pkg/locking
locking.Initialize(d DriveIntf, adminAuth []locking.Authenticator, opts ...InitializeOpts) *ControlSession, SPID, error
Ensures that the TPer is set up and has an enabled Locking SP.
Returns the first available Locking SP and a ControlSession.
locking.NewSession(*ControlSession, SPID, auth locking.Authenticator, ..core.SessionOpts) *Locking, error
Creates a new Locking session to the specified Locking SP with the given Authority credentials.
Example usage:
The text was updated successfully, but these errors were encountered: