Documentation
¶
Index ¶
Constants ¶
View Source
const ( PermissionVolumeMount = brokerapi.RequiredPermission("volume_mount") DefaultContainerPath = "/var/vcap/data" )
View Source
const CellBasePath string = "/var/vcap/data/volumes/ceph/"
Variables ¶
View Source
var ( KeyringNotFound error = errors.New("unable to open cephfs keyring") )
Functions ¶
func New ¶
func New( logger lager.Logger, controller Controller, serviceName, serviceId, planName, planId, planDesc, dataDir string, ioutil ioutilshim.Ioutil, ) *broker
Types ¶
type BindResponse ¶
type BindResponse struct {
voldriver.ErrorResponse
}
type Client ¶
type Client interface {
IsFilesystemMounted(voldriver.Env) bool
MountFileSystem(voldriver.Env, string) (string, error)
GetConfigDetails(voldriver.Env) (string, string, error)
}
func NewCephClient ¶
type Controller ¶
type Controller interface {
voldriver.Provisioner
Bind(env voldriver.Env, instanceID string) BindResponse
}
func NewController ¶
func NewController(cephClient Client) Controller
Click to show internal directories.
Click to hide internal directories.