Documentation
¶
Index ¶
- Variables
- func DencodeID(id string) (string, error)
- func EncodeID(id string) string
- func NewRouter(s *Server) *mux.Router
- func NewSchema() *client.Schemas
- type DiskCollection
- type JournalInput
- type PrepareRebuildOutput
- type RegReplica
- type Replica
- type ReplicaCollection
- type ResizeInput
- type RevertInput
- type Server
- func (s *Server) CreateQuorumReplica(rw http.ResponseWriter, req *http.Request) error
- 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) GetVolumeStats(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) PrepareRebuildReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) RegisterReplica(rw http.ResponseWriter, req *http.Request) error
- func (s *Server) ResizeVolume(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
- func (s *Server) VerifyRebuildReplica(rw http.ResponseWriter, req *http.Request) error
- type SnapshotInput
- type SnapshotOutput
- type StartInput
- type Volume
- type VolumeCollection
- type VolumeStats
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OpenEBSJivaRegestrationRequestDuration gets the response time of the // requested api. OpenEBSJivaRegestrationRequestDuration = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "openebs_jiva_registration_request_duration_seconds", Help: "Request response time of the /v1/register to register replicas.", Buckets: []float64{0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.5, 1, 2.5, 5, 10}, }, []string{"code", "method"}, ) // OpenEBSJivaRegestrationRequestCounter Count the no of request Since a request has been made on /v1/volume OpenEBSJivaRegestrationRequestCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "openebs_jiva_registration_requests_total", Help: "Total number of /v1/register requests to register replicas.", }, []string{"code", "method"}, ) )
Functions ¶
Types ¶
type DiskCollection ¶
type DiskCollection struct {
client.Collection
Data []string `json:"data"`
}
type JournalInput ¶
type PrepareRebuildOutput ¶
type RegReplica ¶
type Replica ¶
func NewReplica ¶
type ReplicaCollection ¶
type ReplicaCollection struct {
client.Collection
Data []Replica `json:"data"`
}
type ResizeInput ¶
type RevertInput ¶
type Server ¶
type Server struct {
RequestDuration *prometheus.HistogramVec
RequestCounter *prometheus.CounterVec
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(c *controller.Controller) *Server
func (*Server) CreateQuorumReplica ¶
func (*Server) CreateReplica ¶
func (*Server) DeleteReplica ¶
func (*Server) GetReplica ¶
func (*Server) GetVolumeStats ¶
func (*Server) ListJournal ¶
ListJournal flushes operation journal (replica read/write, ping, etc.) accumulated since previous flush
func (*Server) ListReplicas ¶
func (*Server) ListVolumes ¶
func (*Server) PrepareRebuildReplica ¶
func (*Server) RegisterReplica ¶
func (*Server) ResizeVolume ¶
func (*Server) RevertVolume ¶
func (*Server) ShutdownVolume ¶
func (*Server) SnapshotVolume ¶
func (*Server) StartVolume ¶
func (*Server) UpdateReplica ¶
func (*Server) VerifyRebuildReplica ¶
type SnapshotInput ¶
type SnapshotOutput ¶
type StartInput ¶
type Volume ¶
type VolumeCollection ¶
type VolumeCollection struct {
client.Collection
Data []Volume `json:"data"`
}
type VolumeStats ¶
type VolumeStats struct {
client.Resource
RevisionCounter int64 `json:"RevisionCounter"`
ReplicaCounter int64 `json:"ReplicaCounter"`
SCSIIOCount map[int]int64 `json:"SCSIIOCount"`
ReadIOPS string `json:"ReadIOPS"`
TotalReadTime string `json:"TotalReadTime"`
TotalReadBlockCount string `json:"TotalReadBlockCount"`
WriteIOPS string `json:"WriteIOPS"`
TotalWriteTime string `json:"TotalWriteTime"`
TotalWriteBlockCount string `json:"TotatWriteBlockCount"`
UsedLogicalBlocks string `json:"UsedLogicalBlocks"`
UsedBlocks string `json:"UsedBlocks"`
SectorSize string `json:"SectorSize"`
Size string `json:"Size"`
UpTime float64 `json:"UpTime"`
Name string `json:"Name"`
}
Click to show internal directories.
Click to hide internal directories.