Documentation
¶
Index ¶
- func HandleError(s *client.Schemas, t func(http.ResponseWriter, *http.Request) error) http.Handler
- func NewRouter(s *Server) *mux.Router
- func NewSchema() *client.Schemas
- type Action
- type CloneUpdateInput
- type CreateInput
- type DeleteReplicaOutput
- type LoggingInput
- type PrepareRemoveDiskInput
- type PrepareRemoveDiskOutput
- type RebuildInfoOutput
- type RebuildingInput
- type RemoveDiskInput
- type ReplaceDiskInput
- type Replica
- type ReplicaCounter
- type ReplicaMode
- type ResizeInput
- type RevertInput
- type RevisionCounter
- type Server
- func (s *Server) CloseReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) Create(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) DeleteReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) DeleteVolume(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) GetRebuildInfo(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) GetReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) GetReplicaStats(apiContext *api.ApiContext) *types.Stats
- func (s *Server) GetStats(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) GetUsage(apiContext *api.ApiContext) (*types.VolUsage, error)
- func (s *Server) GetVolUsage(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) ListReplicas(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) OpenReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) PrepareRemoveDisk(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) ReloadReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) RemoveDisk(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) ReplaceDisk(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) Replica(apiContext *api.ApiContext) *Replica
- func (s *Server) Resize(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) RevertReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) SetLogging(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) SetRebuilding(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) SetReplicaMode(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) SetRevisionCounter(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) SnapshotReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) StartReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) UpdateCloneInfo(rw http.ResponseWriter, req *http.Request) error
- type SnapshotInput
- type Stats
- type VolUsage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
Types ¶
type CloneUpdateInput ¶
type CloneUpdateInput struct { client.Resource SnapName string `json:"snapname"` RevisionCount string `json:"revisioncounter"` }
CloneUpdateInput is input to update clone info of cloned replica
type CreateInput ¶
type DeleteReplicaOutput ¶
type LoggingInput ¶
type PrepareRemoveDiskInput ¶
type PrepareRemoveDiskOutput ¶
type PrepareRemoveDiskOutput struct { client.Resource Operations []replica.PrepareRemoveAction `json:"operations"` }
type RebuildInfoOutput ¶
type RebuildingInput ¶
type RemoveDiskInput ¶
type ReplaceDiskInput ¶
type ReplicaCounter ¶
type ReplicaMode ¶
ReplicaMode ...
type ResizeInput ¶
type RevertInput ¶
type RevisionCounter ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CloseReplica ¶
func (*Server) DeleteReplica ¶
func (*Server) DeleteVolume ¶
DeleteVolume deletes all the contents of the volume. It purges all the replica files.
func (*Server) GetRebuildInfo ¶
func (*Server) GetReplica ¶
func (*Server) GetReplicaStats ¶
func (s *Server) GetReplicaStats(apiContext *api.ApiContext) *types.Stats
func (*Server) GetVolUsage ¶
func (*Server) ListReplicas ¶
func (*Server) OpenReplica ¶
func (*Server) PrepareRemoveDisk ¶
func (*Server) ReloadReplica ¶
func (*Server) RemoveDisk ¶
func (*Server) ReplaceDisk ¶
func (*Server) RevertReplica ¶
func (*Server) SetLogging ¶
func (*Server) SetRebuilding ¶
func (*Server) SetReplicaMode ¶
SetReplicaMode ...
func (*Server) SetRevisionCounter ¶
func (*Server) SnapshotReplica ¶
func (*Server) StartReplica ¶
func (*Server) UpdateCloneInfo ¶
type SnapshotInput ¶
Click to show internal directories.
Click to hide internal directories.