Documentation ¶
Index ¶
Constants ¶
View Source
const ( Extensions = "extensions" AllowEncrypted = "allow_encryption" MimeTypes = "mime_types" EnvCompressState = "MINIO_COMPRESS_ENABLE" EnvCompressAllowEncryption = "MINIO_COMPRESS_ALLOW_ENCRYPTION" EnvCompressExtensions = "MINIO_COMPRESS_EXTENSIONS" EnvCompressMimeTypes = "MINIO_COMPRESS_MIME_TYPES" // Include-list for compression. DefaultExtensions = ".txt,.log,.csv,.json,.tar,.xml,.bin" DefaultMimeTypes = "text/*,application/json,application/xml" )
Compression environment variables
View Source
const ( EnvCompress = "MINIO_COMPRESS" EnvCompressMimeTypesLegacy = "MINIO_COMPRESS_MIMETYPES" )
Legacy envs.
Variables ¶
View Source
var ( DefaultKVS = config.KVS{ config.KV{ Key: config.Enable, Value: config.EnableOff, }, config.KV{ Key: AllowEncrypted, Value: config.EnableOff, }, config.KV{ Key: Extensions, Value: DefaultExtensions, }, config.KV{ Key: MimeTypes, Value: DefaultMimeTypes, }, } )
DefaultKVS - default KV config for compression settings
View Source
var ( Help = config.HelpKVS{ config.HelpKV{ Key: Extensions, Description: `comma separated file extensions e.g. ".txt,.log,.csv"`, Optional: true, Type: "csv", }, config.HelpKV{ Key: MimeTypes, Description: `comma separated wildcard mime-types e.g. "text/*,application/json,application/xml"`, Optional: true, Type: "csv", }, config.HelpKV{ Key: config.Comment, Description: config.DefaultComment, Optional: true, Type: "sentence", }, } )
Help template for compress feature.
Functions ¶
func SetCompressionConfig ¶
SetCompressionConfig - One time migration code needed, for migrating from older config to new for Compression.
Types ¶
Click to show internal directories.
Click to hide internal directories.