Documentation ¶
Index ¶
- Constants
- type AsynctasksConfig
- type AuthServiceConfig
- type AutumnConfig
- type BackendConfig
- type DataServiceConfig
- type EtcdConfig
- type FsConsoleServiceConfig
- type FsMonitorConfig
- type GcConfig
- type IamExpressionConfig
- type IamPluginConfig
- type MetaConfig
- type MetaServiceConfig
- type MsgBusConfig
- type S3Config
- type ServerConfig
- type YigfsServiceConfig
Constants ¶
View Source
const (
YigFSServer_CONF_PATH = "/etc/yigfs/server.toml"
)
View Source
const (
YigFSService_CONF_PATH = "/tmp/yigfsservice.toml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsynctasksConfig ¶
type AsynctasksConfig struct { LogDir string `toml:"log_dir" json:"log_dir"` LogLevel string `toml:"log_level" json:"log_level"` SnowflakeWorkerId uint64 `toml:"snowflake_worker_id" json:"snowflake_worker_id"` DelSegThreadNum int `toml:"del_seg_thread_num" json:"del_seg_thread_num"` DelSegThreadChanSize int `toml:"del_seg_thread_chan_size" json:"del_seg_thread_chan_size"` DelSegReplicaNodeCount int `toml:"del_seg_replica_node_count" json:"del_seg_replica_node_count"` DelFileThreadNum int `toml:"del_file_thread_num" json:"del_file_thread_num"` DelFileChanSize int `toml:"del_file_chan_size" json:"del_file_chan_size"` ConsoleDelFsThreadNum int `toml:"console_del_fs_thread_num" json:"console_del_fs_thread_num"` ConsoleDelFsChanSize int `toml:"console_del_fs_chan_size" json:"console_del_fs_chan_size"` ConsoleDelFilesThreadNum int `toml:"console_del_files_thread_num" json:"console_del_files_thread_num"` ConsoleDelFilesChanSize int `toml:"console_del_files_chan_size" json:"console_del_files_chan_size"` FsMonitorThreadNum int `toml:"fs_monitor_thread_num" json:"fs_monitor_thread_num"` FsMonitorChanSize int `toml:"fs_monitor_chan_size" json:"fs_monitor_chan_size"` GcDelSegThreadNum int `toml:"gc_del_seg_thread_num" json:"gc_del_seg_thread_num"` GCDelSegChanSize int `toml:"gc_del_seg_chan_size" json:"gc_del_seg_chan_size"` GcScanSegGcexecutingLimitMinute int `toml:"gc_scan_seg_gcexecuting_limit_minute" json:"gc_scan_seg_gcexecuting_limit_minute"` GcScanSegGccompletedLimitHour int `toml:"gc_scan_seg_gccompleted_limit_hour" json:"gc_scan_seg_gccompleted_limit_hour"` UpdateSegThreadNum int `toml:"update_seg_thread_num" json:"update_seg_thread_num"` UpdateSegThreadChanSize int `toml:"update_seg_thread_chan_size" json:"update_seg_thread_chan_size"` PrometheusAddr string `toml:"prometheus_addr" json:"prometheus_addr"` }
type AuthServiceConfig ¶
type AuthServiceConfig struct { Port string `toml:"port" json:"port"` LogDir string `toml:"log_dir" json:"log_dir"` LogLevel string `toml:"log_level" json:"log_level"` ExpireBias int64 `toml:"expire_bias" json:"expire_bias"` AccessTokenExpire int64 `toml:"access_token_expire" json:"access_token_expire"` RefreshTokenExpire int64 `toml:"refresh_token_expire" json:"refresh_token_expire"` RegionId string `toml:"region_id" json:"region_id"` MaxFsSecretNum int `toml:"max_fs_secret_num" json:"max_fs_secret_num"` Endpoint string `toml:"endpoint" json:"auth_service_endpoint"` }
type AutumnConfig ¶
type BackendConfig ¶
type DataServiceConfig ¶
type DataServiceConfig struct { LogDir string `toml:"log_dir" json:"log_dir"` LogLevel string `toml:"log_level" json:"log_level"` Endpoint string `toml:"endpoint" json:"addr"` AuthWorkerNum int `toml:"auth_worker_num" json:"auth_worker_num"` PrometheusAddr string `toml:"prometheus_addr" json:"prometheus_addr"` Dns string `toml:"dns" json:"dns"` DnsInternal string `toml:"dns_internal" json:"dns_internal"` }
type EtcdConfig ¶
type EtcdConfig struct {
Server []string `toml:"server"`
}
type FsConsoleServiceConfig ¶
type FsMonitorConfig ¶
type IamExpressionConfig ¶
type IamExpressionConfig struct { CreateFs string `toml:"create_fs" json:"create_fs"` DeleteFs string `toml:"delete_fs" json:"delete_fs"` ListFs string `toml:"list_fs" json:"list_fs"` CreateFsSecret string `toml:"create_fs_secret" json:"create_fs_secret"` ListFsSecret string `toml:"list_fs_secret" json:"list_fs_secret"` DownloadFsSecret string `toml:"download_fs_secret" json:"download_fs_secret"` DeleteFsSecret string `toml:"delete_fs_secret" json:"delete_fs_secret"` }
type IamPluginConfig ¶
type MetaConfig ¶
type MetaServiceConfig ¶
type MetaServiceConfig struct { WriteFileThreadNum int `toml:"write_file_thread_num" json:"write_file_thread_num"` WriteFileThreadChanSize int `toml:"write_file_thread_chan_size" json:"write_file_thread_chan_size"` Port string `toml:"port" json:"port"` LogDir string `toml:"log_dir" json:"log_dir"` LogLevel string `toml:"log_level" json:"log_level"` TlsKeyPath string `toml:"tls_key_path" json:"tls_key_path"` TlsCertPath string `toml:"tls_cert_path" json:"tls_cert_path"` UpdateFileInfoCronMinute int `toml:"update_file_info_cron_minute" json:"update_file_info_cron_minute"` UpdateFileInfoThreadNum int `toml:"update_file_info_thread_num" json:"update_file_info_thread_num"` UpdateFileInfoThreadChanSize int `toml:"update_file_info_thread_chan_size" json:"update_file_info_thread_chan_size"` GcmapCacheThreadNum int `toml:"gcmap_cache_thread_num" json:"gcmap_cache_thread_num"` GcmapCacheThreadChanSize int `toml:"gcmap_cache_thread_chan_size" json:"gcmap_cache_thread_chan_size"` ThreadSelectorReplicaNodeCount int `toml:"thread_selector_replica_node_count" json:"thread_selector_replica_node_count"` }
type MsgBusConfig ¶
type ServerConfig ¶
type ServerConfig struct {
EtcdConfig EtcdConfig `toml:"etcd_config"`
}
func GetYigFsServerConfig ¶
func GetYigFsServerConfig() (config *ServerConfig, err error)
type YigfsServiceConfig ¶
type YigfsServiceConfig struct { MetaConfig MetaConfig `toml:"meta_config" json:"meta_config"` MsgBusConfig MsgBusConfig `toml:"msg_bus_config" json:"msg_bus_config"` S3Config S3Config `toml:"s3_config" json:"s3_config"` MetaServiceConfig MetaServiceConfig `toml:"meta_service_config" json:"meta_service_config"` AuthServiceConfig AuthServiceConfig `toml:"auth_service_config" json:"auth_service_config"` IamPluginConfig IamPluginConfig `toml:"iam_plugin_config" json:"iam_plugin_config"` IamExpressionConfig IamExpressionConfig `toml:"iam_expression_config" json:"iam_expression_config"` DataServiceConfig DataServiceConfig `toml:"data_service_config" json:"data_service_config"` GcConfig GcConfig `toml:"gc_config" json:"gc_config"` AutumnConfig AutumnConfig `toml:"autumn_config" json:"autumn_config"` FsConsoleServiceConfig FsConsoleServiceConfig `toml:"fs_console_service_config" json:"fs_console_service_config"` FsMonitorConfig FsMonitorConfig `toml:"fs_monitor_config" json:"fs_monitor_config"` AsynctasksConfig AsynctasksConfig `toml:"asynctasks_config" json:"asynctasks_config"` BackendConfig BackendConfig `toml:"backend_config" json:"backend_config"` }
func GetYigFsServiceConfig ¶
func GetYigFsServiceConfig() (config *YigfsServiceConfig, err error)
Click to show internal directories.
Click to hide internal directories.