socket

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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SocketDirectory = "/var/run"
	DevPath         = "/dev/longhorn/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataProcessorWrapper

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

func (DataProcessorWrapper) PingResponse

func (d DataProcessorWrapper) PingResponse() error

func (DataProcessorWrapper) ReadAt

func (d DataProcessorWrapper) ReadAt(p []byte, off int64) (n int, err error)

func (DataProcessorWrapper) UnmapAt added in v1.4.0

func (d DataProcessorWrapper) UnmapAt(length uint32, off int64) (n int, err error)

func (DataProcessorWrapper) WriteAt

func (d DataProcessorWrapper) WriteAt(p []byte, off int64) (n int, err error)

type Socket

type Socket struct {
	Volume      string
	Size        int64
	SectorSize  int
	ScsiTimeout int
	// contains filtered or unexported fields
}

func New

func New() *Socket

func (*Socket) Endpoint

func (t *Socket) Endpoint() string

func (*Socket) Expand

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

func (*Socket) FrontendName

func (t *Socket) FrontendName() string

func (*Socket) GetSocketPath

func (t *Socket) GetSocketPath() string

func (*Socket) Init added in v1.0.0

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

func (*Socket) Shutdown

func (t *Socket) Shutdown() error

func (*Socket) Startup

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

func (*Socket) State

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

func (*Socket) Upgrade

func (t *Socket) 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