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
}

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
}
