Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Merovius/nbd
/ types & classes
Types & classes
38 in github.com/Merovius/nbd
⨍
Functions
140
◇
Types & classes
38
↓ 1 callers
TypeAlias
ServerFlags
ServerFlags specify what optional features the server supports.
nbdnl/nbd.go:148
↓ 1 callers
TypeAlias
errno
types.go:160
Struct
BlockSizeConstraints
BlockSizeConstraints optionally specifies possible block sizes for a given export.
handshake.go:38
Struct
Client
Client performs the client-side of the NBD network protocol handshake and can be used to query information about the exports from a server.
handshake.go:134
TypeAlias
ClientFlags
ClientFlags are flags configuring client behavior.
nbdnl/nbd.go:136
FuncType
ConnectOption
ConnectOption is an optional setting to configure the in-kernel NBD client.
nbdnl/nbd.go:111
Interface
Device
Device is the interface that should be implemented to expose an NBD device to the network or the kernel. Errors returned should implement Error - othe
transmission.go:37
Struct
DeviceStatus
DeviceStatus is the status of an NBD device.
nbdnl/nbd.go:390
TypeAlias
Errno
Errno is an error code suitable to be sent over the wire. It mostly corresponds to syscall.Errno, though the constants in this package are specified a
types.go:419
Interface
Error
Error combines the normal error interface with an Errno method, that returns an NBD error number. All of Device's methods should return an Error - oth
transmission.go:29
Struct
Export
Export specifies the data needed for the NBD network protocol.
handshake.go:27
Struct
connParameters
handshake.go:46
Struct
connectCmd
cmd/nbd/connect.go:37
Struct
crashable
cmd/nbd/lo.go:109
Struct
ctxRW
ctxRW wraps a net.Conn to respect context cancellation. It does so by starting a goroutine that sets the connection's read/write deadline in the past
transmission.go:169
Struct
discCmd
cmd/nbd/disc.go:32
Struct
encoder
encoder provides helper methods for easy de-/encoding of binary data. If an error occurs, it calls check, which is expected to panic if its non-nil. I
handshake.go:345
Struct
errf
types.go:455
Struct
indexFlag
cmd/nbd/nbd.go:40
Struct
infoBlockSize
types.go:354
Struct
infoDescription
types.go:334
Struct
infoExport
types.go:293
Struct
infoName
types.go:314
Struct
listCmd
cmd/nbd/list.go:36
Struct
loCmd
cmd/nbd/lo.go:37
Struct
optAbort
types.go:94
Struct
optExportName
types.go:83
Struct
optInfo
types.go:120
Struct
optList
types.go:107
Interface
optionReply
types.go:200
Interface
optionRequest
types.go:36
Struct
repAck
types.go:224
Struct
repError
types.go:378
Struct
repServer
types.go:236
Struct
request
types.go:492
Struct
serveCmd
cmd/nbd/serve.go:34
Struct
simpleReply
types.go:536
Struct
structuredReply
types.go:561