conf

package
v0.0.0-...-c2c101f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 AutumnConfig struct {
	Endpoints []string `toml:"endpoints" json:"endpoints"`
	Enable    bool     `toml:"enable" json:"enable"`
}

type BackendConfig

type BackendConfig struct {
	BackendType      int    `toml:"backend_type"`
	ThreadNum        int    `toml:"thread_num"`
	Endpoint         string `toml:"endpoint"`
	EndpointInternal string `toml:"endpoint_internal"`
}

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 FsConsoleServiceConfig struct {
	Port       string `toml:"port" json:"port"`
	FsCapacity uint64 `toml:"fs_capacity" json:"fs_capacity"`
}

type FsMonitorConfig

type FsMonitorConfig struct {
	Topic      string `toml:"topic" json:"topic"`
	Period     int    `toml:"period" json:"period"`
	Type       int    `toml:"msg_bus_type" json:"msg_bus_type"`
	ServerList string `toml:"server_list" json:"server_list"`
}

type GcConfig

type GcConfig struct {
	MaxGcSegs int    `toml:"max_gc_segments" json:"max_gc_segments"`
	GcPeriod  int    `toml:"gc_period" json:"gc_period"`
	GcUnit    string `toml:"gc_unit" json:"gc_unit"`
}

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 IamPluginConfig struct {
	Path           string `toml:"path" json:"path"`
	UnifiedGateway string `toml:"unified_gateway" json:"unified_gateway"`
	IamUrl         string `toml:"iam_url" json:"iam_url"`
	PartnerAk      string `toml:"partner_ak" json:"partner_ak"`
	PartnerSk      string `toml:"partner_sk" json:"partner_sk"`
}

type MetaConfig

type MetaConfig struct {
	MetaStoreType string `toml:"meta_store_type" json:"meta_store_type"`
	MetaStoreInfo string `toml:"meta_store_info" json:"meta_store_info"`
}

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 MsgBusConfig struct {
	MsgBusType    int    `toml:"msg_bus_type" json:"msg_bus_type"`
	BrokerList    string `toml:"broker_list" json:"broker_list"`
	PartitionsNum int    `toml:"partition_num" json:"partition_num"`
}

type S3Config

type S3Config struct {
	Region   string `toml:"region" json:"region"`
	Bucket   string `toml:"bucket" json:"bucket"`
	Ak       string `toml:"ak" json:"ak"`
	Sk       string `toml:"sk" json:"sk"`
	Endpoint string `toml:"endpoint" json:"endpoint"`
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL