Documentation ¶
Index ¶
- Constants
- type Handle
- func (h *Handle) Close() error
- func (h *Handle) Info() (*daos.PoolInfo, error)
- func (h *Handle) List() ([][]byte, error)
- func (h *Handle) LookupContainer(name string) (string, error)
- func (h *Handle) Meta() (Meta, error)
- func (h *Handle) NewContainer(name string, id string) error
- func (pm *Handle) OpenContainer(cont string, flags int) (*daos.ContHandle, error)
- func (h *Handle) PoolMetaInit() error
- type Meta
- type OpenFlag
Constants ¶
View Source
const ( PoolMetaDkey = "metadata" CreatorAkey = "creator" CreatedAkey = "created" ContTableAkey = "cont_table" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle ¶
type Handle struct {
// contains filtered or unexported fields
}
Handle is a pool handle and is the main interface.
func (*Handle) LookupContainer ¶
LookupContainer returns the uuid of the named container.
func (*Handle) NewContainer ¶
NewContainer creates a new conatiner with given name. The ID parameter is optional.
func (*Handle) OpenContainer ¶
OpenContainer opens the named container and returns native daos handle for the container.
func (*Handle) PoolMetaInit ¶
PoolMetaInit creates a container for pool metadata and creates two objects. One for pool level metadata (creator,etc) and the other to store container information. This should only be called once in the lifetime of a pool.
Click to show internal directories.
Click to hide internal directories.