aoe

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device interface {
	io.ReadWriteSeeker
	io.ReaderAt
	io.WriterAt
	Sync() error
	Close() error
	aoe.Identifier
}

type FileDevice

type FileDevice struct {
	*block.BlockFile
}

func (*FileDevice) Identify

func (fd *FileDevice) Identify() ([512]byte, error)

func (*FileDevice) Sectors

func (fd *FileDevice) Sectors() (int64, error)

type Frame

type Frame struct {
	// received ethernet frame
	ethernet.Frame
	// received AoE header
	aoe.Header
}

func (*Frame) UnmarshalBinary

func (f *Frame) UnmarshalBinary(data []byte) error

type FrameSender

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

func (*FrameSender) Send

func (fs *FrameSender) Send(hdr *aoe.Header) (int, error)

func (*FrameSender) SendError

func (fs *FrameSender) SendError(aerr aoe.Error) (int, error)

type Interface

type Interface struct {
	*net.Interface
	net.PacketConn
}

implements net.PacketConn

func NewInterface

func NewInterface(ifname string) (*Interface, error)

type Server

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

func NewServer

func NewServer(b *block.BlockVolume) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Serve

func (s *Server) Serve(iface *Interface) error

type WriterTo

type WriterTo interface {
	WriteTo(b []byte, addr net.Addr) (n int, err error)
}

Jump to

Keyboard shortcuts

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