Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveWorkspaceURL ¶ added in v1.1.1
func ResolveWorkspaceURL(accessToken, targetName, baseDomain string) (newURL, newName string, err error)
ResolveWorkspaceURL finds the target workspace in the JWT and builds its full URL.
Types ¶
type Workspace ¶
type Workspace struct {
SchemaName string `json:"schema_name"`
Auth0ID string `json:"auth0_id"`
Region string `json:"region"`
}
Workspace represents a workspace entry from the JWT token's workspaces claim.
func GetWorkspacesFromToken ¶
GetWorkspacesFromToken decodes the JWT access token and extracts the workspaces claim.
type WorkspaceListEntry ¶
WorkspaceListEntry is used for displaying workspace information in a table.
func GetWorkspaceList ¶
func GetWorkspaceList(cfg config.Config) ([]WorkspaceListEntry, error)
GetWorkspaceList returns a display-ready list of workspaces, marking the current one.
Click to show internal directories.
Click to hide internal directories.