Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MaxSizeDefault is the default value of the object payload size limit. MaxSizeDefault = 64 << 20 // SizeLimitDefault is the default write-cache size limit. SizeLimitDefault = 1 << 30 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WriteCache ¶ added in v0.46.0
type WriteCache struct {
Enabled *bool `mapstructure:"enabled"`
Path string `mapstructure:"path"`
Capacity internal.Size `mapstructure:"capacity"`
NoSync *bool `mapstructure:"no_sync"`
MaxObjectSize internal.Size `mapstructure:"max_object_size"`
}
WriteCache contains configuration for write cache.
func (*WriteCache) Normalize ¶ added in v0.46.0
func (wc *WriteCache) Normalize(def WriteCache)
Normalize sets default values for write cache fields if they are not set.
Click to show internal directories.
Click to hide internal directories.