Versions in this module Expand all Collapse all v0 v0.2.0 Jan 9, 2015 Changes in this version type Conn + func (c *Conn) OpenIOContext(pool string) (*IOContext, error) + type IOContext struct + func (ioctx *IOContext) Delete(oid string) error + func (ioctx *IOContext) Destroy() + func (ioctx *IOContext) GetPoolName() (name string, err error) + func (ioctx *IOContext) GetPoolStats() (stat PoolStat, err error) + func (ioctx *IOContext) ListObjects(listFn ObjectListFunc) error + func (ioctx *IOContext) Read(oid string, data []byte, offset uint64) (int, error) + func (ioctx *IOContext) Truncate(oid string, size uint64) error + func (ioctx *IOContext) Write(oid string, data []byte, offset uint64) error + type ObjectListFunc func(oid string) + type PoolStat struct + Num_bytes uint64 + Num_kb uint64 + Num_object_clones uint64 + Num_object_copies uint64 + Num_objects uint64 + Num_objects_degraded uint64 + Num_objects_missing_on_primary uint64 + Num_objects_unfound uint64 + Num_rd uint64 + Num_rd_kb uint64 + Num_wr uint64 + Num_wr_kb uint64 v0.1.0 Nov 28, 2014 Changes in this version + func Version() (int, int, int) + type ClusterStat struct + Kb uint64 + Kb_avail uint64 + Kb_used uint64 + Num_objects uint64 + type Conn struct + func NewConn() (*Conn, error) + func (c *Conn) Connect() error + func (c *Conn) DeletePool(name string) error + func (c *Conn) GetClusterStats() (stat ClusterStat, err error) + func (c *Conn) GetConfigOption(name string) (value string, err error) + func (c *Conn) GetFSID() (fsid string, err error) + func (c *Conn) GetInstanceID() uint64 + func (c *Conn) ListPools() (names []string, err error) + func (c *Conn) MakePool(name string) error + func (c *Conn) OpenPool(pool string) (*Pool, error) + func (c *Conn) ParseCmdLineArgs(args []string) error + func (c *Conn) ParseDefaultConfigEnv() error + func (c *Conn) PingMonitor(id string) (string, error) + func (c *Conn) ReadConfigFile(path string) error + func (c *Conn) ReadDefaultConfigFile() error + func (c *Conn) SetConfigOption(option, value string) error + func (c *Conn) Shutdown() + func (c *Conn) WaitForLatestOSDMap() error + type Pool struct + func (p *Pool) Delete(oid string) error + func (p *Pool) Read(oid string, data []byte, offset uint64) (int, error) + func (p *Pool) Truncate(oid string, size uint64) error + func (p *Pool) Write(oid string, data []byte, offset uint64) error + type RadosError int + func (e RadosError) Error() string