Documentation
¶
Index ¶
- type Config
- func (cfg *Config) GetCSISockDirForDynamic(volumeName string) string
- func (cfg *Config) GetModelDir(volumeName string) string
- func (cfg *Config) GetModelDirForDynamic(volumeName, mountID string) string
- func (cfg *Config) GetModelsDirForDynamic(volumeName string) string
- func (cfg *Config) GetMountIDDirForDynamic(volumeName, mountID string) string
- func (cfg *Config) GetVolumeDir(volumeName string) string
- func (cfg *Config) GetVolumeDirForDynamic(volumeName string) string
- func (cfg *Config) GetVolumesDir() string
- func (cfg *Config) IsControllerMode() bool
- func (cfg *Config) IsNodeMode() bool
- func (cfg *Config) ParameterKeyCheckDiskQuota() string
- func (cfg *Config) ParameterKeyMountID() string
- func (cfg *Config) ParameterKeyReference() string
- func (cfg *Config) ParameterKeyStatusProgress() string
- func (cfg *Config) ParameterKeyStatusState() string
- func (cfg *Config) ParameterKeyType() string
- func (cfg *Config) ParameterVolumeContextNodeIP() string
- type Features
- type PullConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Pattern:
// static: /var/lib/dragonfly/model-csi/volumes/$volumeName/model
// dynamic: /var/lib/dragonfly/model-csi/volumes/$volumeName/models
// /var/lib/dragonfly/model-csi/volumes/$volumeName/csi.sock
ServiceName string `yaml:"service_name"`
RootDir string `yaml:"root_dir"`
ExternalCSIEndpoint string `yaml:"external_csi_endpoint"`
ExternalCSIAuthorization string `yaml:"external_csi_authorization"`
DynamicCSIEndpoint string `yaml:"dynamic_csi_endpoint"`
CSIEndpoint string `yaml:"csi_endpoint"`
MetricsAddr string `yaml:"metrics_addr"`
TraceEndpooint string `yaml:"trace_endpoint"`
PprofAddr string `yaml:"pprof_addr"`
PullConfig PullConfig `yaml:"pull_config"`
Features Features `yaml:"features"`
NodeID string // From env CSI_NODE_ID
Mode string // From env X_CSI_MODE: "controller" or "node"
}
func (*Config) GetCSISockDirForDynamic ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName/csi
func (*Config) GetModelDir ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName/model
func (*Config) GetModelDirForDynamic ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName/models/$mountID/model
func (*Config) GetModelsDirForDynamic ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName/models
func (*Config) GetMountIDDirForDynamic ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName/models/$mountID
func (*Config) GetVolumeDir ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName
func (*Config) GetVolumeDirForDynamic ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName
func (*Config) GetVolumesDir ¶
/var/lib/dragonfly/model-csi/volumes
func (*Config) IsControllerMode ¶
func (*Config) IsNodeMode ¶
func (*Config) ParameterKeyCheckDiskQuota ¶
func (*Config) ParameterKeyMountID ¶
func (*Config) ParameterKeyReference ¶
func (*Config) ParameterKeyStatusProgress ¶
func (*Config) ParameterKeyStatusState ¶
func (*Config) ParameterKeyType ¶
func (*Config) ParameterVolumeContextNodeIP ¶
Click to show internal directories.
Click to hide internal directories.