Documentation ¶
Index ¶
- type Targetd
- func (t *Targetd) AttachVolumeSatelit(ctx context.Context, volName string, hostname string) (int, string, error)
- func (t *Targetd) AttachVolumeTeleskop(ctx context.Context, volName string, hostname string) (int, string, error)
- func (t *Targetd) CreateVolume(ctx context.Context, name uuid.UUID, capacityGB int) (*europa.Volume, error)
- func (t *Targetd) CreateVolumeFromImage(ctx context.Context, name uuid.UUID, capacityGB int, imageID uuid.UUID) (*europa.Volume, error)
- func (t *Targetd) DeleteImage(ctx context.Context, id uuid.UUID) error
- func (t *Targetd) DeleteVolume(ctx context.Context, id string) error
- func (t *Targetd) DetachVolume(ctx context.Context, volName string) error
- func (t *Targetd) DetachVolumeSatelit(ctx context.Context, volName string, hostLUNID int) error
- func (t *Targetd) GetHostLUNID(ctx context.Context, volName, iqn string) (int, error)
- func (t *Targetd) GetImage(imageID uuid.UUID) (*europa.BaseImage, error)
- func (t *Targetd) GetVolume(ctx context.Context, id string) (*europa.Volume, error)
- func (t *Targetd) ListImage() ([]europa.BaseImage, error)
- func (t *Targetd) ListVolume(ctx context.Context) ([]europa.Volume, error)
- func (t *Targetd) UploadImage(ctx context.Context, image []byte, name, description string, imageSizeGB int) (*europa.BaseImage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Targetd ¶
type Targetd struct {
// contains filtered or unexported fields
}
Targetd is implement open-iscsi/targetd
func New ¶
func New(apiURL, username, password, poolName, backendName, portalIP string, ds datastore.Datastore) (*Targetd, error)
New create instance of targetd.Client
func (*Targetd) AttachVolumeSatelit ¶
func (t *Targetd) AttachVolumeSatelit(ctx context.Context, volName string, hostname string) (int, string, error)
AttachVolumeSatelit attach volume to satelit return (host lun id, attached device name, error)
func (*Targetd) AttachVolumeTeleskop ¶
func (t *Targetd) AttachVolumeTeleskop(ctx context.Context, volName string, hostname string) (int, string, error)
AttachVolumeTeleskop attach volume to hostname (running teleskop) return (host lun id, attached device name, error)
func (*Targetd) CreateVolume ¶
func (t *Targetd) CreateVolume(ctx context.Context, name uuid.UUID, capacityGB int) (*europa.Volume, error)
CreateVolume create raw volume
func (*Targetd) CreateVolumeFromImage ¶
func (t *Targetd) CreateVolumeFromImage(ctx context.Context, name uuid.UUID, capacityGB int, imageID uuid.UUID) (*europa.Volume, error)
CreateVolumeFromImage create volume that copied image
func (*Targetd) DeleteImage ¶
DeleteImage delete image
func (*Targetd) DeleteVolume ¶
DeleteVolume delete volume
func (*Targetd) DetachVolume ¶
DetachVolume detach volume
func (*Targetd) DetachVolumeSatelit ¶
DetachVolumeSatelit detach volume from satelit server
func (*Targetd) GetHostLUNID ¶
GetHostLUNID return host LUN id. (not created)
func (*Targetd) ListVolume ¶
ListVolume return list of volume
Click to show internal directories.
Click to hide internal directories.