url

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(baseURL string, pathSegments ...string) (*string, error)

func CreateSortString added in v0.9.0

func CreateSortString(userID, epoch string, full, isMachine bool, remote, dirName, branch string) string

CreateSortString creates a URL-encoded sort string from user ID, epoch, and repo metadata.

Sort Key format (NEW - includes repo metadata for incremental scanning):

cli-user: cli-user|{{remoteHash}}|{{dirName}}|{{branch}}|{{user sub}}|{{epoch}} cli-user-full: cli-user-full|{{remoteHash}}|{{dirName}}|{{branch}}|{{user sub}}|{{epoch}} cli-api: cli-api|{{remoteHash}}|{{dirName}}|{{branch}}|machine|{{epoch}} cli-api-full: cli-api-full|{{remoteHash}}|{{dirName}}|{{branch}}|machine|{{epoch}}

Status entries append: |status|{{status}}

func GetIDsFromUrl added in v0.9.0

func GetIDsFromUrl(presignUrl string) (string, string, string, bool, error)

GetIDsFromUrl extracts the workspace ID, user ID, and epoch from a presigned URL. Returns workspaceID, userID, epoch, error. Expected URL format: .../workspace/{workspaceID}/user/{userType}/{userID}/.../{epoch}

Types

This section is empty.

Jump to

Keyboard shortcuts

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