Add RBAC support with roles, permissions, and session management. Implement middleware for authentication and CSRF protection. Enhance audit logging with additional fields. Update HTTP handlers and routes for new features.
This commit is contained in:
@@ -16,3 +16,28 @@ func (i *ISCSIAdapter) CreateLUN(ctx context.Context, target string, backstore s
|
||||
log.Printf("iscsi: CreateLUN target=%s backstore=%s lun=%d (stub)", target, backstore, lunID)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (i *ISCSIAdapter) CreateBackstore(ctx context.Context, name string, devpath string) error {
|
||||
log.Printf("iscsi: CreateBackstore name=%s dev=%s (stub)", name, devpath)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (i *ISCSIAdapter) DeleteLUN(ctx context.Context, target string, lunID int) error {
|
||||
log.Printf("iscsi: DeleteLUN target=%s lun=%d (stub)", target, lunID)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (i *ISCSIAdapter) AddPortal(ctx context.Context, iqn string, addr string, port int) error {
|
||||
log.Printf("iscsi: AddPortal iqn=%s addr=%s port=%d (stub)", iqn, addr, port)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (i *ISCSIAdapter) AddACL(ctx context.Context, iqn, initiator string) error {
|
||||
log.Printf("iscsi: AddACL iqn=%s initiator=%s (stub)", iqn, initiator)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (i *ISCSIAdapter) Save(ctx context.Context) error {
|
||||
log.Printf("iscsi: Save (stub)")
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user