Documentation
¶
Index ¶
Constants ¶
const ( // DepthDefault is the default shallow dir depth. DepthDefault = 4 // CombinedCountLimitDefault is the default for the maximum number of objects to write into a single file. CombinedCountLimitDefault = 128 // CombinedSizeLimitDefault is the default for the maximum size of the combined object file. CombinedSizeLimitDefault = 8 * 1024 * 1024 // CombinedSizeThresholdDefault is the default for the minimal size of the object that won't be combined with others for writes. CombinedSizeThresholdDefault = 128 * 1024 )
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 FSTree configurations.
func (*Config) CombinedCountLimit ¶ added in v0.44.0
CombinedCountLimit returns the value of "combined_count_limit" config parameter.
Returns CombinedCountLimitDefault if the value is missing or not a positive integer.
func (*Config) CombinedSizeLimit ¶ added in v0.44.0
CombinedSizeLimit returns the value of "combined_size_limit" config parameter.
Returns CombinedSizeLimitDefault if the value is missing, equal to 0 or not a proper size specification.
func (*Config) CombinedSizeThreshold ¶ added in v0.44.0
CombinedSizeThreshold returns the value of "combined_size_threshold" config parameter.
Returns CombinedSizeThresholdDefault if the value is missing, equal to 0 or not a proper size specification.
func (*Config) Depth ¶
Depth returns the value of "depth" config parameter.
Returns DepthDefault if the value is out of [1:fstree.MaxDepth] range.