Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvAPIRequestsMax = "MINIO_API_REQUESTS_MAX" EnvAPIRequestsDeadline = "MINIO_API_REQUESTS_DEADLINE" EnvAPIClusterDeadline = "MINIO_API_CLUSTER_DEADLINE" EnvAPICorsAllowOrigin = "MINIO_API_CORS_ALLOW_ORIGIN" EnvAPIRemoteTransportDeadline = "MINIO_API_REMOTE_TRANSPORT_DEADLINE" EnvAPITransitionWorkers = "MINIO_API_TRANSITION_WORKERS" EnvAPIListQuorum = "MINIO_API_LIST_QUORUM" EnvAPISecureCiphers = "MINIO_API_SECURE_CIPHERS" // default config.EnableOn EnvAPIReplicationPriority = "MINIO_API_REPLICATION_PRIORITY" EnvAPIStaleUploadsCleanupInterval = "MINIO_API_STALE_UPLOADS_CLEANUP_INTERVAL" EnvAPIStaleUploadsExpiry = "MINIO_API_STALE_UPLOADS_EXPIRY" EnvAPIDeleteCleanupInterval = "MINIO_API_DELETE_CLEANUP_INTERVAL" EnvDeleteCleanupInterval = "MINIO_DELETE_CLEANUP_INTERVAL" EnvAPIODirect = "MINIO_API_ODIRECT" EnvAPIDisableODirect = "MINIO_API_DISABLE_ODIRECT" EnvAPIGzipObjects = "MINIO_API_GZIP_OBJECTS" EnvAPIRootAccess = "MINIO_API_ROOT_ACCESS" // default config.EnableOn EnvAPISyncEvents = "MINIO_API_SYNC_EVENTS" // default "off" )
API sub-system constants
Variables ¶
View Source
var ( DefaultKVS = config.KVS{ config.KV{ Key: apiRequestsMax, Value: "0", }, config.KV{ Key: apiRequestsDeadline, Value: "10s", }, config.KV{ Key: apiClusterDeadline, Value: "10s", }, config.KV{ Key: apiCorsAllowOrigin, Value: "*", }, config.KV{ Key: apiRemoteTransportDeadline, Value: "2h", }, config.KV{ Key: apiListQuorum, Value: "strict", }, config.KV{ Key: apiReplicationPriority, Value: "auto", }, config.KV{ Key: apiTransitionWorkers, Value: "100", }, config.KV{ Key: apiStaleUploadsCleanupInterval, Value: "6h", }, config.KV{ Key: apiStaleUploadsExpiry, Value: "24h", }, config.KV{ Key: apiDeleteCleanupInterval, Value: "5m", }, config.KV{ Key: apiDisableODirect, Value: "", Deprecated: true, }, config.KV{ Key: apiODirect, Value: config.EnableOn, }, config.KV{ Key: apiGzipObjects, Value: config.EnableOff, }, config.KV{ Key: apiRootAccess, Value: config.EnableOn, }, config.KV{ Key: apiSyncEvents, Value: config.EnableOff, }, } )
DefaultKVS - default storage class config
View Source
var ( Help = config.HelpKVS{ config.HelpKV{ Key: apiRequestsMax, Description: `set the maximum number of concurrent requests` + defaultHelpPostfix(apiRequestsMax), Optional: true, Type: "number", }, config.HelpKV{ Key: apiRequestsDeadline, Description: `set the deadline for API requests waiting to be processed` + defaultHelpPostfix(apiRequestsDeadline), Optional: true, Type: "duration", }, config.HelpKV{ Key: apiClusterDeadline, Description: `set the deadline for cluster readiness check` + defaultHelpPostfix(apiClusterDeadline), Optional: true, Type: "duration", }, config.HelpKV{ Key: apiCorsAllowOrigin, Description: `set comma separated list of origins allowed for CORS requests` + defaultHelpPostfix(apiCorsAllowOrigin), Optional: true, Type: "csv", }, config.HelpKV{ Key: apiRemoteTransportDeadline, Description: `set the deadline for API requests on remote transports while proxying between federated instances e.g. "2h"` + defaultHelpPostfix(apiRemoteTransportDeadline), Optional: true, Type: "duration", }, config.HelpKV{ Key: apiListQuorum, Description: `set the acceptable quorum expected for list operations e.g. "optimal", "reduced", "disk", "strict"` + defaultHelpPostfix(apiListQuorum), Optional: true, Type: "string", }, config.HelpKV{ Key: apiReplicationPriority, Description: `set replication priority` + defaultHelpPostfix(apiReplicationPriority), Optional: true, Type: "string", }, config.HelpKV{ Key: apiTransitionWorkers, Description: `set the number of transition workers` + defaultHelpPostfix(apiTransitionWorkers), Optional: true, Type: "number", }, config.HelpKV{ Key: apiStaleUploadsExpiry, Description: `set to expire stale multipart uploads older than this values` + defaultHelpPostfix(apiStaleUploadsExpiry), Optional: true, Type: "duration", }, config.HelpKV{ Key: apiStaleUploadsCleanupInterval, Description: `set to change intervals when stale multipart uploads are expired` + defaultHelpPostfix(apiStaleUploadsCleanupInterval), Optional: true, Type: "duration", }, config.HelpKV{ Key: apiDeleteCleanupInterval, Description: `set to change intervals when deleted objects are permanently deleted from ".trash" folder` + defaultHelpPostfix(apiDeleteCleanupInterval), Optional: true, Type: "duration", }, config.HelpKV{ Key: apiODirect, Description: "set to enable or disable O_DIRECT for read and writes under special conditions. NOTE: do not disable O_DIRECT without prior testing" + defaultHelpPostfix(apiODirect), Optional: true, Type: "boolean", }, config.HelpKV{ Key: apiRootAccess, Description: "turn 'off' root credential access for all API calls including s3, admin operations" + defaultHelpPostfix(apiRootAccess), Optional: true, Type: "boolean", }, config.HelpKV{ Key: apiSyncEvents, Description: "set to enable synchronous bucket notifications" + defaultHelpPostfix(apiSyncEvents), Optional: true, Type: "boolean", }, } )
Help template for storageclass feature.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RequestsMax int `json:"requests_max"` RequestsDeadline time.Duration `json:"requests_deadline"` ClusterDeadline time.Duration `json:"cluster_deadline"` CorsAllowOrigin []string `json:"cors_allow_origin"` RemoteTransportDeadline time.Duration `json:"remote_transport_deadline"` ListQuorum string `json:"list_quorum"` ReplicationPriority string `json:"replication_priority"` TransitionWorkers int `json:"transition_workers"` StaleUploadsCleanupInterval time.Duration `json:"stale_uploads_cleanup_interval"` StaleUploadsExpiry time.Duration `json:"stale_uploads_expiry"` DeleteCleanupInterval time.Duration `json:"delete_cleanup_interval"` EnableODirect bool `json:"enable_odirect"` GzipObjects bool `json:"gzip_objects"` RootAccess bool `json:"root_access"` SyncEvents bool `json:"sync_events"` }
Config storage class configuration
func LookupConfig ¶
LookupConfig - lookup api config and override with valid environment settings if any.
func (*Config) UnmarshalJSON ¶
UnmarshalJSON - Validate SS and RRS parity when unmarshalling JSON.
Click to show internal directories.
Click to hide internal directories.