tgt

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DevPath = "/dev/longhorn/"

	DefaultTargetID = 1
)

Variables

This section is empty.

Functions

func New

func New(frontendName string, scsiTimeout, iscsiAbortTimeout, iscsiTargetRequestTimeout time.Duration) types.Frontend

Types

type Tgt

type Tgt struct {
	// contains filtered or unexported fields
}

func (*Tgt) Endpoint

func (t *Tgt) Endpoint() string

func (*Tgt) Expand

func (t *Tgt) Expand(size int64) error

func (*Tgt) FrontendName

func (t *Tgt) FrontendName() string

func (*Tgt) Init added in v1.0.0

func (t *Tgt) Init(name string, size, sectorSize int64) error

func (*Tgt) Shutdown

func (t *Tgt) Shutdown() error

func (*Tgt) Startup

func (t *Tgt) Startup(rwu types.ReaderWriterUnmapperAt) error

func (*Tgt) State

func (t *Tgt) State() types.State

func (*Tgt) Upgrade

func (t *Tgt) Upgrade(name string, size, sectorSize int64, rwu types.ReaderWriterUnmapperAt) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL