url

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 4 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 string, epoch string, full, isMachine bool) string

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

Sort Key format:

cli-user: cli-user|{{user sub}}|{{epoch}} cli-user-full: cli-user-full|{{user sub}}|{{epoch}} cli-api: cli-api|machine|{{epoch}} cli-api-full: cli-api-full|machine|{{epoch}} cli-user: cli-user|{{user sub}}|{{timestamp}}|status|{{status}} cli-user-full: cli-user-full|{{user sub}}|{{timestamp}}|status|{{status}} cli-api: cli-api|machine|{{timestamp}}|status|{{status}} cli-api-full: cli-api-full|machine|{{timestamp}}|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