Versions in this module Expand all Collapse all v0 v0.1.0 Dec 19, 2023 Changes in this version + const DeP2PNamespace + const IPLDNamespace + const IPNSNamespace + var ErrExpectedImmutable = errors.New("path was expected to be immutable") + var ErrInsufficientComponents = errors.New("path does not have enough components") + var ErrUnknownNamespace = errors.New("unknown namespace") + func SegmentsToString(segments ...string) string + func StringToSegments(str string) []string + type ErrInvalidPath struct + func (e *ErrInvalidPath) Error() string + func (e *ErrInvalidPath) Is(err error) bool + func (e *ErrInvalidPath) Unwrap() error + type ImmutablePath struct + func FromCid(cid cid.Cid) ImmutablePath + func NewImmutablePath(p Path) (ImmutablePath, error) + func (ip ImmutablePath) Mutable() bool + func (ip ImmutablePath) Namespace() string + func (ip ImmutablePath) RootCid() cid.Cid + func (ip ImmutablePath) Segments() []string + func (ip ImmutablePath) String() string + type Path interface + Mutable func() bool + Namespace func() string + Segments func() []string + String func() string + func Join(p Path, segments ...string) (Path, error) + func NewPath(str string) (Path, error) + func NewPathFromSegments(segments ...string) (Path, error)