socket

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: Apache-2.0 Imports: 8 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 NewDataProcessorWrapper

func NewDataProcessorWrapper(rw types.ReaderWriterAt) DataProcessorWrapper

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) WriteAt

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

type Socket

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

func New

func New() *Socket

func (*Socket) Endpoint

func (t *Socket) Endpoint() string

func (*Socket) FrontendName

func (t *Socket) FrontendName() string

func (*Socket) GetSocketPath

func (t *Socket) GetSocketPath() string

func (*Socket) Shutdown

func (t *Socket) Shutdown() error

func (*Socket) Startup

func (t *Socket) Startup(name string, size, sectorSize int64, rw types.ReaderWriterAt) error

func (*Socket) State

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

Jump to

Keyboard shortcuts

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