Documentation
¶
Overview ¶
Package devutil provides device specific utilities.
Index ¶
Constants ¶
View Source
const ( // CtxDevGoferClient is a Context.Value key for a /dev gofer client. CtxDevGoferClient contextID = iota )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoferClient ¶
type GoferClient struct {
// contains filtered or unexported fields
}
GoferClient is the lisafs client for the /dev gofer connection.
func GoferClientFromContext ¶
func GoferClientFromContext(ctx context.Context) *GoferClient
GoferClientFromContext returns the device gofer client used by ctx.
func NewGoferClient ¶
func NewGoferClient(ctx context.Context, fd int) (*GoferClient, error)
NewGoferClient establishes the LISAFS connection to the dev gofer server. It takes ownership of fd.
func (*GoferClient) DirentNames ¶
func (g *GoferClient) DirentNames(ctx context.Context) ([]string, error)
DirentNames returns names of all the dirents for /dev on the gofer.
Click to show internal directories.
Click to hide internal directories.