Versions in this module Expand all Collapse all v0 v0.1.0 Oct 18, 2026 Changes in this version + const PathSeparator + var ErrorUnknownCategory = clues.New("unknown category string") + var ErrorUnknownService = clues.New("unknown service string") + func ArePathsEquivalent(path1, path2 string) bool + func LoggableDir(ref string) string + func Split(segment string) []string + func TrimTrailingSlash(element string) string + func ValidateServiceAndCategory(service ServiceType, category CategoryType) error + type Builder struct + func BuildDriveLocation(driveID string, unescapedElements ...string) *Builder + func BuildGroupsDriveLocation(siteID string, driveID string, unescapedElements ...string) *Builder + func GetDriveFolderPath(p Path) (*Builder, error) + func (pb *Builder) UpdateParent(prev, cur *Builder) bool + func (pb Builder) Append(elements ...string) *Builder + func (pb Builder) Conceal() string + func (pb Builder) Dir() *Builder + func (pb Builder) Elements() Elements + func (pb Builder) Format(fs fmt.State, _ rune) + func (pb Builder) HeadElem() string + func (pb Builder) LastElem() string + func (pb Builder) PlainString() string + func (pb Builder) PopFront() *Builder + func (pb Builder) ShortRef() string + func (pb Builder) SplitUnescapeAppend(s string) (*Builder, error) + func (pb Builder) String() string + func (pb Builder) ToDataLayerPath(tenant, resource string, service ServiceType, category CategoryType, ...) (Path, error) + func (pb Builder) ToServiceCategoryMetadataPath(tenant, resource string, service ServiceType, category CategoryType, ...) (Path, error) + func (pb Builder) ToStreamStorePath(tenant, purpose string, service ServiceType, isItem bool) (Path, error) + func (pb Builder) UnescapeAndAppend(elements ...string) (*Builder, error) + type CategoryType int + const ChannelMessagesCategory + const ChatsCategory + const ContactsCategory + const ConversationPostsCategory + const DetailsCategory + const EmailCategory + const EventsCategory + const FilesCategory + const LibrariesCategory + const ListsCategory + const PagesCategory + const UnknownCategory + func ToCategoryType(s string) CategoryType + func (cat CategoryType) HumanString() string + func (i CategoryType) String() string + type DrivePath struct + DriveID string + Folders Elements + Root string + func ToDrivePath(p Path) (*DrivePath, error) + type Elements []string + func NewElements(p string) Elements + func (el Elements) Builder() *Builder + func (el Elements) Conceal() string + func (el Elements) Format(fs fmt.State, _ rune) + func (el Elements) Last() string + func (el Elements) PlainString() string + func (el Elements) String() string + type Path interface + Append func(isItem bool, elems ...string) (Path, error) + AppendItem func(item string) (Path, error) + Category func() CategoryType + Dir func() (Path, error) + Elements func() Elements + Equal func(other Path) bool + Folder func(escaped bool) string + Folders func() Elements + Item func() string + PopFront func() *Builder + ProtectedResource func() string + Service func() ServiceType + ShortRef func() string + String func() string + Tenant func() string + ToBuilder func() *Builder + UpdateParent func(prev, cur Path) bool + func Build(tenant, resourceOwner string, service ServiceType, category CategoryType, ...) (Path, error) + func BuildMetadata(tenant, resourceOwner string, service ServiceType, category CategoryType, ...) (Path, error) + func BuildOrPrefix(tenant, resourceOwner string, service ServiceType, category CategoryType, ...) (Path, error) + func BuildPrefix(tenant, resourceOwner string, s ServiceType, c CategoryType) (Path, error) + func FromDataLayerPath(p string, isItem bool) (Path, error) + func PrefixOrPathFromDataLayerPath(p string, isItem bool) (Path, error) + type RestorePaths struct + RestorePath Path + StoragePath Path + type ServiceType int + const ExchangeMetadataService + const ExchangeService + const GroupsMetadataService + const GroupsService + const OneDriveMetadataService + const OneDriveService + const SharePointMetadataService + const SharePointService + const TeamsChatsMetadataService + const TeamsChatsService + const UnknownService + func ToServiceType(service string) ServiceType + func (i ServiceType) String() string + func (svc ServiceType) HumanString() string + func (svc ServiceType) ToMetadata() ServiceType