mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
Move some config constants to madmin (#15529)
This commit is contained in:
parent
c7d535c648
commit
ee2afcf70b
@ -70,46 +70,46 @@ const (
|
|||||||
|
|
||||||
// Top level config constants.
|
// Top level config constants.
|
||||||
const (
|
const (
|
||||||
CredentialsSubSys = "credentials"
|
CredentialsSubSys = madmin.CredentialsSubSys
|
||||||
PolicyOPASubSys = "policy_opa"
|
PolicyOPASubSys = madmin.PolicyOPASubSys
|
||||||
PolicyPluginSubSys = "policy_plugin"
|
PolicyPluginSubSys = madmin.PolicyPluginSubSys
|
||||||
IdentityOpenIDSubSys = "identity_openid"
|
IdentityOpenIDSubSys = madmin.IdentityOpenIDSubSys
|
||||||
IdentityLDAPSubSys = "identity_ldap"
|
IdentityLDAPSubSys = madmin.IdentityLDAPSubSys
|
||||||
IdentityTLSSubSys = "identity_tls"
|
IdentityTLSSubSys = madmin.IdentityTLSSubSys
|
||||||
IdentityPluginSubSys = "identity_plugin"
|
IdentityPluginSubSys = madmin.IdentityPluginSubSys
|
||||||
CacheSubSys = "cache"
|
CacheSubSys = madmin.CacheSubSys
|
||||||
SiteSubSys = "site"
|
SiteSubSys = madmin.SiteSubSys
|
||||||
RegionSubSys = "region"
|
RegionSubSys = madmin.RegionSubSys
|
||||||
EtcdSubSys = "etcd"
|
EtcdSubSys = madmin.EtcdSubSys
|
||||||
StorageClassSubSys = "storage_class"
|
StorageClassSubSys = madmin.StorageClassSubSys
|
||||||
APISubSys = "api"
|
APISubSys = madmin.APISubSys
|
||||||
CompressionSubSys = "compression"
|
CompressionSubSys = madmin.CompressionSubSys
|
||||||
LoggerWebhookSubSys = "logger_webhook"
|
LoggerWebhookSubSys = madmin.LoggerWebhookSubSys
|
||||||
AuditWebhookSubSys = "audit_webhook"
|
AuditWebhookSubSys = madmin.AuditWebhookSubSys
|
||||||
AuditKafkaSubSys = "audit_kafka"
|
AuditKafkaSubSys = madmin.AuditKafkaSubSys
|
||||||
HealSubSys = "heal"
|
HealSubSys = madmin.HealSubSys
|
||||||
ScannerSubSys = "scanner"
|
ScannerSubSys = madmin.ScannerSubSys
|
||||||
CrawlerSubSys = "crawler"
|
CrawlerSubSys = madmin.CrawlerSubSys
|
||||||
SubnetSubSys = "subnet"
|
SubnetSubSys = madmin.SubnetSubSys
|
||||||
CallhomeSubSys = "callhome"
|
CallhomeSubSys = madmin.CallhomeSubSys
|
||||||
|
|
||||||
// Add new constants here if you add new fields to config.
|
// Add new constants here (similar to above) if you add new fields to config.
|
||||||
)
|
)
|
||||||
|
|
||||||
// Notification config constants.
|
// Notification config constants.
|
||||||
const (
|
const (
|
||||||
NotifyKafkaSubSys = "notify_kafka"
|
NotifyKafkaSubSys = madmin.NotifyKafkaSubSys
|
||||||
NotifyMQTTSubSys = "notify_mqtt"
|
NotifyMQTTSubSys = madmin.NotifyMQTTSubSys
|
||||||
NotifyMySQLSubSys = "notify_mysql"
|
NotifyMySQLSubSys = madmin.NotifyMySQLSubSys
|
||||||
NotifyNATSSubSys = "notify_nats"
|
NotifyNATSSubSys = madmin.NotifyNATSSubSys
|
||||||
NotifyNSQSubSys = "notify_nsq"
|
NotifyNSQSubSys = madmin.NotifyNSQSubSys
|
||||||
NotifyESSubSys = "notify_elasticsearch"
|
NotifyESSubSys = madmin.NotifyESSubSys
|
||||||
NotifyAMQPSubSys = "notify_amqp"
|
NotifyAMQPSubSys = madmin.NotifyAMQPSubSys
|
||||||
NotifyPostgresSubSys = "notify_postgres"
|
NotifyPostgresSubSys = madmin.NotifyPostgresSubSys
|
||||||
NotifyRedisSubSys = "notify_redis"
|
NotifyRedisSubSys = madmin.NotifyRedisSubSys
|
||||||
NotifyWebhookSubSys = "notify_webhook"
|
NotifyWebhookSubSys = madmin.NotifyWebhookSubSys
|
||||||
|
|
||||||
// Add new constants here if you add new fields to config.
|
// Add new constants here (similar to above) if you add new fields to config.
|
||||||
)
|
)
|
||||||
|
|
||||||
// NotifySubSystems - all notification sub-systems
|
// NotifySubSystems - all notification sub-systems
|
||||||
@ -134,39 +134,7 @@ var LoggerSubSystems = set.CreateStringSet(
|
|||||||
)
|
)
|
||||||
|
|
||||||
// SubSystems - all supported sub-systems
|
// SubSystems - all supported sub-systems
|
||||||
var SubSystems = set.CreateStringSet(
|
var SubSystems = madmin.SubSystems
|
||||||
CredentialsSubSys,
|
|
||||||
SiteSubSys,
|
|
||||||
RegionSubSys,
|
|
||||||
EtcdSubSys,
|
|
||||||
CacheSubSys,
|
|
||||||
APISubSys,
|
|
||||||
StorageClassSubSys,
|
|
||||||
CompressionSubSys,
|
|
||||||
LoggerWebhookSubSys,
|
|
||||||
AuditWebhookSubSys,
|
|
||||||
AuditKafkaSubSys,
|
|
||||||
PolicyOPASubSys,
|
|
||||||
PolicyPluginSubSys,
|
|
||||||
IdentityLDAPSubSys,
|
|
||||||
IdentityOpenIDSubSys,
|
|
||||||
IdentityTLSSubSys,
|
|
||||||
IdentityPluginSubSys,
|
|
||||||
ScannerSubSys,
|
|
||||||
HealSubSys,
|
|
||||||
NotifyAMQPSubSys,
|
|
||||||
NotifyESSubSys,
|
|
||||||
NotifyKafkaSubSys,
|
|
||||||
NotifyMQTTSubSys,
|
|
||||||
NotifyMySQLSubSys,
|
|
||||||
NotifyNATSSubSys,
|
|
||||||
NotifyNSQSubSys,
|
|
||||||
NotifyPostgresSubSys,
|
|
||||||
NotifyRedisSubSys,
|
|
||||||
NotifyWebhookSubSys,
|
|
||||||
SubnetSubSys,
|
|
||||||
CallhomeSubSys,
|
|
||||||
)
|
|
||||||
|
|
||||||
// SubSystemsDynamic - all sub-systems that have dynamic config.
|
// SubSystemsDynamic - all sub-systems that have dynamic config.
|
||||||
var SubSystemsDynamic = set.CreateStringSet(
|
var SubSystemsDynamic = set.CreateStringSet(
|
||||||
@ -212,8 +180,8 @@ const (
|
|||||||
KvSingleQuote = madmin.KvSingleQuote
|
KvSingleQuote = madmin.KvSingleQuote
|
||||||
|
|
||||||
// Env prefix used for all envs in MinIO
|
// Env prefix used for all envs in MinIO
|
||||||
EnvPrefix = "MINIO_"
|
EnvPrefix = madmin.EnvPrefix
|
||||||
EnvWordDelimiter = `_`
|
EnvWordDelimiter = madmin.EnvWordDelimiter
|
||||||
)
|
)
|
||||||
|
|
||||||
// DefaultKVS - default kvs for all sub-systems
|
// DefaultKVS - default kvs for all sub-systems
|
||||||
|
Loading…
Reference in New Issue
Block a user