File tree 2 files changed +27
-0
lines changed
2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ Package commands provides types and utility functions that are used for
3
+ interfacing with the JSON based command infrastructure in Ceph.
4
+
5
+ The *rados.Conn type implements many of the interfaces found in this package.
6
+ */
7
+ package commands
Original file line number Diff line number Diff line change
1
+ package commands
2
+
3
+ // MgrCommander in an interface for the API needed to execute JSON formatted
4
+ // commands on the ceph mgr.
5
+ type MgrCommander interface {
6
+ MgrCommand (buf [][]byte ) ([]byte , string , error )
7
+ }
8
+
9
+ // MonCommander is an interface for the API needed to execute JSON formatted
10
+ // commands on the ceph mon(s).
11
+ type MonCommander interface {
12
+ MonCommand (buf []byte ) ([]byte , string , error )
13
+ }
14
+
15
+ // RadosCommander provides an interface for APIs needed to execute JSON
16
+ // formatted commands on the Ceph cluster.
17
+ type RadosCommander interface {
18
+ MgrCommander
19
+ MonCommander
20
+ }
You can’t perform that action at this time.
0 commit comments