learning_go/ceph/types.go
a.pivkin c5bc4da2c3 sdf
2025-09-08 07:26:27 +03:00

25 lines
412 B
Go

package main
import "github.com/ceph/go-ceph/rados"
type cephConnection struct {
conn *rados.Conn
}
type Poolinfo struct {
Pool string `json:"pool,omitempty"`
PoolId uint64 `json:"pool_id,omitempty"`
Size uint64 `json:"size,omitempty"`
}
type Device struct {
Class string `json:"class"`
ID int64 `json:"id"`
Name string `json:"name"`
}
type commands struct {
Descr string `json:"help"`
}