objectconfig

package
v0.44.0-rc.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultTombstoneLifetime is the default value of tombstone lifetime in epochs.
	DefaultTombstoneLifetime = 5
)
View Source
const (

	// PutPoolSizeDefault is a default value of routine pool size to
	// process object.Put requests in object service.
	PutPoolSizeDefault = 10
)

Variables

This section is empty.

Functions

func TombstoneLifetime

func TombstoneLifetime(c *config.Config) uint64

TombstoneLifetime returns the value of `tombstone_lifetime` config parameter.

Types

type GetConfig

type GetConfig struct {
	// contains filtered or unexported fields
}

GetConfig is a wrapper over "get" config section which provides access to object get pipeline configuration of object service.

func Get

func Get(c *config.Config) GetConfig

Get returns structure that provides access to "get" subsection of "object" section.

func (GetConfig) Priority

func (g GetConfig) Priority() []string

Priority returns the value of "priority" config parameter.

type PutConfig

type PutConfig struct {
	// contains filtered or unexported fields
}

PutConfig is a wrapper over "put" config section which provides access to object put pipeline configuration of object service.

func Put

func Put(c *config.Config) PutConfig

Put returns structure that provides access to "put" subsection of "object" section.

func (PutConfig) PoolSizeLocal

func (g PutConfig) PoolSizeLocal() int

PoolSizeLocal returns the value of "local_pool_size" config parameter.

Returns PutPoolSizeDefault if the value is not a positive number.

func (PutConfig) PoolSizeRemote

func (g PutConfig) PoolSizeRemote() int

PoolSizeRemote returns the value of "remote_pool_size" config parameter.

Returns PutPoolSizeDefault if the value is not a positive number.

func (PutConfig) SkipSessionTokenIssuerVerification added in v0.37.0

func (g PutConfig) SkipSessionTokenIssuerVerification() bool

SkipSessionTokenIssuerVerification returns the value of "skip_session_token_issuer_verification" config parameter or `false“ if is not defined.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL