From 25bae7a7e13ebc1480f2cbec89c742858ed9f473 Mon Sep 17 00:00:00 2001 From: Alexander Pivkin Date: Fri, 5 Sep 2025 15:52:22 +0300 Subject: [PATCH] sdf --- ceph/ceph.go | 3 ++- ceph/types.go | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ceph/ceph.go b/ceph/ceph.go index e260ed1..d757da4 100644 --- a/ceph/ceph.go +++ b/ceph/ceph.go @@ -7,7 +7,8 @@ import ( func main() { - connection,err := rados.NewConnWithClusterAndUser("ceph","client.admin") + params := params{"ceph","admin"} + connection,err := rados.NewConnWithClusterAndUser(params.cluster,params.user) if err != nil { fmt.Println(err) } diff --git a/ceph/types.go b/ceph/types.go index a86bfd9..c4ad12d 100644 --- a/ceph/types.go +++ b/ceph/types.go @@ -1,10 +1,8 @@ package main -import "time" - const config = "/etc/ceph/ceph.conf" type params struct { - duration time.Duration - blockSize uint64 + cluster string + user string }