This commit is contained in:
Alexander Pivkin
2025-09-05 15:33:12 +03:00
parent fd57dc9b95
commit 45097b6b76
8 changed files with 62 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package main
import (
"fmt"
"github.com/ceph/go-ceph/rados"
)
func main() {
connection,err := rados.NewConnWithClusterAndUser("ceph","client.admin")
if err != nil {
fmt.Println(err)
}
fmt.Println(connection)
}
+8
View File
@@ -0,0 +1,8 @@
module main
go 1.24.6
require (
github.com/ceph/go-ceph v0.35.0 // indirect
golang.org/x/sys v0.34.0 // indirect
)
+4
View File
@@ -0,0 +1,4 @@
github.com/ceph/go-ceph v0.35.0 h1:wcDUbsjeNJ7OfbWCE7I5prqUL794uXchopw3IvrGQkk=
github.com/ceph/go-ceph v0.35.0/go.mod h1:ILF8WKhQQ2p2YuX1oWigkmsfT39U8T/HS2NrqxExq2s=
golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA=
golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
+10
View File
@@ -0,0 +1,10 @@
package main
import "time"
const config = "/etc/ceph/ceph.conf"
type params struct {
duration time.Duration
blockSize uint64
}