Documentation
¶
Index ¶
- func DencodeID(id string) (string, error)
- func EncodeID(id string) string
- func NewRouter(s *Server) *mux.Router
- func NewSchema() *client.Schemas
- type JournalInput
- type Replica
- type ReplicaCollection
- type RevertInput
- type Server
- func (s *Server) CreateReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) DeleteReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) GetReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) GetVolume(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) ListJournal(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) ListReplicas(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) ListVolumes(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) RevertVolume(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) ShutdownVolume(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) SnapshotVolume(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) StartVolume(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) UpdateReplica(rw http.ResponseWriter, req *http.Request) error
- type SnapshotInput
- type SnapshotOutput
- type StartInput
- type Volume
- type VolumeCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JournalInput ¶
type ReplicaCollection ¶
type ReplicaCollection struct { client.Collection Data []Replica `json:"data"` }
type RevertInput ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(c *controller.Controller) *Server
func (*Server) CreateReplica ¶
func (*Server) DeleteReplica ¶
func (*Server) GetReplica ¶
func (*Server) ListJournal ¶
ListJournal flushes operation journal (replica read/write, ping, etc.) accumulated since previous flush
func (*Server) ListReplicas ¶
func (*Server) ListVolumes ¶
func (*Server) RevertVolume ¶
func (*Server) ShutdownVolume ¶
func (*Server) SnapshotVolume ¶
func (*Server) StartVolume ¶
func (*Server) UpdateReplica ¶
type SnapshotInput ¶
type SnapshotOutput ¶
type StartInput ¶
type Volume ¶
type VolumeCollection ¶
type VolumeCollection struct { client.Collection Data []Volume `json:"data"` }
Click to show internal directories.
Click to hide internal directories.