Add initial Go server skeleton with HTTP handlers, middleware, job runner, and stubs
This commit is contained in:
18
internal/infra/stubs/iscsi.go
Normal file
18
internal/infra/stubs/iscsi.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package stubs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
)
|
||||
|
||||
type ISCSIAdapter struct{}
|
||||
|
||||
func (i *ISCSIAdapter) CreateTarget(ctx context.Context, name string) error {
|
||||
log.Printf("iscsi: CreateTarget name=%s (stub)", name)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (i *ISCSIAdapter) CreateLUN(ctx context.Context, target string, backstore string, lunID int) error {
|
||||
log.Printf("iscsi: CreateLUN target=%s backstore=%s lun=%d (stub)", target, backstore, lunID)
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user