Documentation
¶
Overview ¶
Package cephfs contains a set of wrappers around Ceph's libcephfs API.
Index ¶
- type CephFSError
- type MountInfo
- func (mount *MountInfo) ChangeDir(path string) error
- func (mount *MountInfo) Chmod(path string, mode uint32) error
- func (mount *MountInfo) Chown(path string, user uint32, group uint32) error
- func (mount *MountInfo) CurrentDir() string
- func (mount *MountInfo) IsMounted() bool
- func (mount *MountInfo) MakeDir(path string, mode uint32) error
- func (mount *MountInfo) MdsCommand(mdsSpec string, args [][]byte) ([]byte, string, error)
- func (mount *MountInfo) MdsCommandWithInputBuffer(mdsSpec string, args [][]byte, inputBuffer []byte) ([]byte, string, error)
- func (mount *MountInfo) Mount() error
- func (mount *MountInfo) ReadDefaultConfigFile() error
- func (mount *MountInfo) Release() error
- func (mount *MountInfo) RemoveDir(path string) error
- func (mount *MountInfo) SyncFs() error
- func (mount *MountInfo) Unmount() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CephFSError ¶
type CephFSError int
func (CephFSError) Error ¶
func (e CephFSError) Error() string
type MountInfo ¶
type MountInfo struct {
// contains filtered or unexported fields
}
MountInfo exports ceph's ceph_mount_info from libcephfs.cc
func CreateFromRados ¶
CreateFromRados creates a mount handle using an existing rados cluster connection.
Implements:
int ceph_create_from_rados(struct ceph_mount_info **cmount, rados_t cluster);
func CreateMount ¶
CreateMount creates a mount handle for interacting with Ceph.
func CreateMountWithId ¶
CreateMountWithId creates a mount handle for interacting with Ceph. The caller can specify a unique id that will identify this client.
func (*MountInfo) CurrentDir ¶
CurrentDir gets the current working directory.
func (*MountInfo) MdsCommand ¶
MdsCommand sends commands to the specified MDS.
func (*MountInfo) MdsCommandWithInputBuffer ¶
func (mount *MountInfo) MdsCommandWithInputBuffer(mdsSpec string, args [][]byte, inputBuffer []byte) ([]byte, string, error)
MdsCommandWithInputBuffer sends commands to the specified MDS, with an input buffer.
func (*MountInfo) ReadDefaultConfigFile ¶
ReadDefaultConfigFile loads the ceph configuration from the specified config file.