Documentation
¶
Overview ¶
Package session provides error constructors for session lookup and selection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllWithID ¶
func AllWithID() error
AllWithID returns a validation error when --all is used with a session ID.
Returns:
- error: "cannot use --all with a session ID; use one or the other"
func AllWithPattern ¶
func AllWithPattern() error
AllWithPattern returns a validation error when --all is used with a pattern.
Returns:
- error: "cannot use --all with a pattern; use one or the other"
func AmbiguousQuery ¶
func AmbiguousQuery() error
AmbiguousQuery returns an error when a session query matches multiple results.
Returns:
- error: "ambiguous query, use a more specific ID"
func Find ¶
Find wraps a session-scanning failure.
Parameters:
- cause: the underlying error from the parser.
Returns:
- error: "failed to find sessions: <cause>"
func IDRequired ¶
func IDRequired() error
IDRequired returns an error when no session ID was provided.
Returns:
- error: "please provide a session ID or use --latest"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.