Documentation
¶
Index ¶
- type Config
- type Features
- type HumanizeSize
- type PullConfig
- type RawConfig
- func (cfg *RawConfig) GetCSISockDirForDynamic(volumeName string) string
- func (cfg *RawConfig) GetModelDir(volumeName string) string
- func (cfg *RawConfig) GetModelDirForDynamic(volumeName, mountID string) string
- func (cfg *RawConfig) GetModelsDirForDynamic(volumeName string) string
- func (cfg *RawConfig) GetMountIDDirForDynamic(volumeName, mountID string) string
- func (cfg *RawConfig) GetVolumeDir(volumeName string) string
- func (cfg *RawConfig) GetVolumeDirForDynamic(volumeName string) string
- func (cfg *RawConfig) GetVolumesDir() string
- func (cfg *RawConfig) IsControllerMode() bool
- func (cfg *RawConfig) IsNodeMode() bool
- func (cfg *RawConfig) ParameterKeyCheckDiskQuota() string
- func (cfg *RawConfig) ParameterKeyExcludeModelWeights() string
- func (cfg *RawConfig) ParameterKeyMountID() string
- func (cfg *RawConfig) ParameterKeyReference() string
- func (cfg *RawConfig) ParameterKeyStatusProgress() string
- func (cfg *RawConfig) ParameterKeyStatusState() string
- func (cfg *RawConfig) ParameterKeyType() string
- func (cfg *RawConfig) ParameterVolumeContextNodeIP() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func NewWithRaw ¶
type Features ¶
type Features struct {
CheckDiskQuota bool `yaml:"check_disk_quota"`
DiskUsageLimit HumanizeSize `yaml:"disk_usage_limit"`
}
type HumanizeSize ¶
type HumanizeSize uint64
func (*HumanizeSize) UnmarshalYAML ¶
func (s *HumanizeSize) UnmarshalYAML(unmarshal func(interface{}) error) error
type PullConfig ¶
type RawConfig ¶
type RawConfig 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"`
TraceEndpoint 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 (*RawConfig) GetCSISockDirForDynamic ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName/csi
func (*RawConfig) GetModelDir ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName/model
func (*RawConfig) GetModelDirForDynamic ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName/models/$mountID/model
func (*RawConfig) GetModelsDirForDynamic ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName/models
func (*RawConfig) GetMountIDDirForDynamic ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName/models/$mountID
func (*RawConfig) GetVolumeDir ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName
func (*RawConfig) GetVolumeDirForDynamic ¶
/var/lib/dragonfly/model-csi/volumes/$volumeName
func (*RawConfig) GetVolumesDir ¶
/var/lib/dragonfly/model-csi/volumes
func (*RawConfig) IsControllerMode ¶
func (*RawConfig) IsNodeMode ¶
func (*RawConfig) ParameterKeyCheckDiskQuota ¶
func (*RawConfig) ParameterKeyExcludeModelWeights ¶
func (*RawConfig) ParameterKeyMountID ¶
func (*RawConfig) ParameterKeyReference ¶
func (*RawConfig) ParameterKeyStatusProgress ¶
func (*RawConfig) ParameterKeyStatusState ¶
func (*RawConfig) ParameterKeyType ¶
func (*RawConfig) ParameterVolumeContextNodeIP ¶
Click to show internal directories.
Click to hide internal directories.