Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvMaxDriveTimeout = "MINIO_DRIVE_MAX_TIMEOUT" EnvMaxDriveTimeoutLegacy = "_MINIO_DRIVE_MAX_TIMEOUT" EnvMaxDiskTimeoutLegacy = "_MINIO_DISK_MAX_TIMEOUT" )
Drive specific timeout environment variables
Variables ¶
View Source
var ( // MaxTimeout is the max timeout for drive MaxTimeout = "max_timeout" // HelpDrive is help for drive HelpDrive = config.HelpKVS{ config.HelpKV{ Key: MaxTimeout, Type: "string", Description: "set per call max_timeout for the drive, defaults to 30 seconds", Optional: true, }, } )
View Source
var DefaultKVS = config.KVS{ config.KV{ Key: MaxTimeout, Value: "30s", }, }
DefaultKVS - default KVS for drive
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // MaxTimeout - maximum timeout for a drive operation MaxTimeout time.Duration `json:"maxTimeout"` }
Config represents the subnet related configuration
func LookupConfig ¶
LookupConfig - lookup config and override with valid environment settings if any.
func (*Config) GetMaxTimeout ¶
GetMaxTimeout - returns the per call drive operation timeout
func (*Config) GetOPTimeout ¶
GetOPTimeout - returns the per call drive operation timeout
Click to show internal directories.
Click to hide internal directories.