Versions in this module Expand all Collapse all v2 v2.0.0 Aug 24, 2026 Changes in this version + const ObjectLocationMissing + var ErrCompactSingleHashCardinality = errors.New("namer: CompactSingleHash requires exactly one hash entry") + var ErrCompactSingleSigCardinality = errors.New("namer: CompactSingleSig requires exactly one sig entry") + var ErrDuplicateLocation = errors.New("namer: duplicate location segment") + var ErrEmptyHasherName = errors.New("namer: hash entry has empty HasherName") + var ErrEmptySignerName = errors.New("namer: sig entry has empty SignerName") + var ErrKeyPrefixMissing = errors.New("namer: key does not start with configured WithKeyPrefix") + var ErrKeyPrefixNoLeadingSlash = errors.New("namer: WithKeyPrefix must start with '/'") + var ErrKeyPrefixTrailingSlash = errors.New("namer: WithKeyPrefix must not end with '/'") + var ErrObjectLocationReserved = errors.New(...) + var ErrSegmentEmpty = errors.New("namer: segment must not be empty") + var ErrSegmentInnerSlash = errors.New("namer: segment must not contain '/'") + var ErrSegmentLeadingSlash = errors.New("namer: segment must not start with '/'") + var ErrSegmentTrailingSlash = errors.New("namer: segment must not end with '/'") + type HashLocation struct + HasherName string + Location string + type InvalidKeyError struct + Key string + Problem string + func (e InvalidKeyError) Error() string + type InvalidNameError struct + Name string + Problem string + func (e InvalidNameError) Error() string + type Key struct + func NewKey(name string, keytype KeyType, property string, raw string) Key + func (k Key) Build() string + func (k Key) Name() string + func (k Key) Property() string + func (k Key) Type() KeyType + type KeyType int + const KeyTypeHash + const KeyTypeSignature + const KeyTypeValue + func (t KeyType) String() string + type Namer interface + GenerateNames func(name string) ([]Key, error) + ParseKey func(name string) (Key, error) + ParseKeys func(names []string, ignoreError bool) (Results, error) + Prefix func(val string, isPrefix bool) string + Prefixes func(val string, isPrefix bool) []string + func New(objectLocation string, hashLocations []HashLocation, ...) (Namer, error) + type Option func(*namerOpts) + func CompactSingleHash() Option + func CompactSingleSig() Option + func LegacyHashSigLayout() Option + func WithKeyPrefix(prefix string) Option + type Results struct + func NewResults(initial map[string][]Key) Results + func (r Results) Items() iter.Seq2[string, []Key] + func (r Results) Len() int + func (r Results) Result() map[string][]Key + func (r Results) Select(name string) ([]Key, bool) + func (r Results) SelectSingle() ([]Key, bool) + type SigLocation struct + Location string + SignerName string Other modules containing this package github.com/tarantool/go-storage