Documentation ¶
Index ¶
- func DecodeData(data string) ([]byte, error)
- func DecodeID(id string) (string, error)
- func EncodeData(data []byte) string
- func EncodeID(id string) string
- func HandleError(s *client.Schemas, t func(http.ResponseWriter, *http.Request) error) http.Handler
- func New() types.Frontend
- func NewRouter(s *Server) *mux.Router
- func NewSchema() *client.Schemas
- type Device
- func (d *Device) Endpoint() string
- func (d *Device) Expand(size int64) error
- func (d *Device) FrontendName() string
- func (d *Device) Init(name string, size, sectorSize int64) error
- func (d *Device) Shutdown() error
- func (d *Device) Startup(rwu types.ReaderWriterUnmapperAt) error
- func (d *Device) State() types.State
- func (d *Device) Upgrade(name string, size, sectorSize int64, rwu types.ReaderWriterUnmapperAt) error
- type ReadInput
- type ReadOutput
- type Server
- func (s *Server) GetVolume(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) ListVolumes(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) ReadAt(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) WriteAt(rw http.ResponseWriter, req *http.Request) error
- type Volume
- type WriteInput
- type WriteOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeData ¶
func EncodeData ¶
func HandleError ¶
Types ¶
type Device ¶
type Device struct { Name string Size int64 SectorSize int64 // contains filtered or unexported fields }
func (*Device) FrontendName ¶
type ReadOutput ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListVolumes ¶
type WriteInput ¶
type WriteOutput ¶
Click to show internal directories.
Click to hide internal directories.