mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-15 02:40:23 +00:00
cd83c7be48
Bumps [github.com/ceph/go-ceph](https://github.com/ceph/go-ceph) from 0.13.0 to 0.14.0. - [Release notes](https://github.com/ceph/go-ceph/releases) - [Changelog](https://github.com/ceph/go-ceph/blob/master/docs/release-process.md) - [Commits](https://github.com/ceph/go-ceph/compare/v0.13.0...v0.14.0) --- updated-dependencies: - dependency-name: github.com/ceph/go-ceph dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
48 lines
1.3 KiB
Go
48 lines
1.3 KiB
Go
package admin
|
|
|
|
import (
|
|
"github.com/ceph/go-ceph/common/admin/manager"
|
|
)
|
|
|
|
const mirroring = "mirroring"
|
|
|
|
// EnableModule will enable the specified manager module.
|
|
//
|
|
// Deprecated: use the equivalent function in cluster/admin/manager.
|
|
//
|
|
// Similar To:
|
|
// ceph mgr module enable <module> [--force]
|
|
func (fsa *FSAdmin) EnableModule(module string, force bool) error {
|
|
mgradmin := manager.NewFromConn(fsa.conn)
|
|
return mgradmin.EnableModule(module, force)
|
|
}
|
|
|
|
// DisableModule will disable the specified manager module.
|
|
//
|
|
// Deprecated: use the equivalent function in cluster/admin/manager.
|
|
//
|
|
// Similar To:
|
|
// ceph mgr module disable <module>
|
|
func (fsa *FSAdmin) DisableModule(module string) error {
|
|
mgradmin := manager.NewFromConn(fsa.conn)
|
|
return mgradmin.DisableModule(module)
|
|
}
|
|
|
|
// EnableMirroringModule will enable the mirroring module for cephfs.
|
|
//
|
|
// Similar To:
|
|
// ceph mgr module enable mirroring [--force]
|
|
func (fsa *FSAdmin) EnableMirroringModule(force bool) error {
|
|
mgradmin := manager.NewFromConn(fsa.conn)
|
|
return mgradmin.EnableModule(mirroring, force)
|
|
}
|
|
|
|
// DisableMirroringModule will disable the mirroring module for cephfs.
|
|
//
|
|
// Similar To:
|
|
// ceph mgr module disable mirroring
|
|
func (fsa *FSAdmin) DisableMirroringModule() error {
|
|
mgradmin := manager.NewFromConn(fsa.conn)
|
|
return mgradmin.DisableModule(mirroring)
|
|
}
|