Documentation ¶
Index ¶
Constants ¶
const ( // PermDefault are default permission bits for BlobStor data. PermDefault = 0660 // ShallowDepthDefault is a default shallow dir depth. ShallowDepthDefault = 4 // SmallSizeLimitDefault is a default limit of small objects payload in bytes. SmallSizeLimitDefault = 1 << 20 )
config defaults
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is a wrapper over the config section which provides access to BlobStor configurations.
func (*Config) Blobovnicza ¶
func (x *Config) Blobovnicza() *blobovniczaconfig.Config
Blobovnicza returns "blobovnicza" subsection as a blobovniczaconfig.Config.
func (*Config) Compress ¶
Compress returns value of "compress" config parameter.
Returns false if value is not a valid bool.
func (*Config) Path ¶
Path returns value of "path" config parameter.
Panics if value is not a non-empty string.
func (*Config) Perm ¶
Perm returns value of "perm" config parameter as a fs.FileMode.
Returns PermDefault if value is not a non-zero number.
func (*Config) ShallowDepth ¶
ShallowDepth returns value of "depth" config parameter.
Returns ShallowDepthDefault if value is out of [1:fstree.MaxDepth] range.
func (*Config) SmallSizeLimit ¶
SmallSizeLimit returns value of "small_object_size" config parameter.
Returns SmallSizeLimitDefault if value is not a positive number.
func (*Config) UncompressableContentTypes ¶ added in v0.27.4
UncompressableContentTypes returns value of "compress_skip_content_types" config parameter.
Returns nil if a value is missing or is invalid.