searchquery

package
v2.34.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AIBridgeClients added in v2.32.0

func AIBridgeInterceptions added in v2.27.0

func AIBridgeModels added in v2.32.0

func AIBridgeSessions added in v2.32.0

func AIBridgeSessions(ctx context.Context, db database.Store, query string, page codersdk.Pagination, actorID uuid.UUID, afterSessionID string) (database.ListAIBridgeSessionsParams, []codersdk.ValidationError)

func AuditLogs

AuditLogs requires the database to fetch an organization by name to convert to organization uuid.

Supported query parameters:

  • request_id: UUID (can be used to search for associated audits e.g. connect/disconnect or open/close)
  • resource_id: UUID
  • resource_target: string
  • username: string
  • email: string
  • date_from: string (date in format "2006-01-02")
  • date_to: string (date in format "2006-01-02")
  • organization: string (organization UUID or name)
  • resource_type: string (enum)
  • action: string (enum)
  • build_reason: string (enum)

func Chats added in v2.32.0

Chats parses a search query for chats.

Supported query parameters:

  • title: case-insensitive title substring match via ILIKE (bare terms are rejected; use title:<value> for title filtering)
  • archived: boolean (default: false, excludes archived chats unless explicitly set)
  • has_unread: nullable boolean (filter by unread message status)
  • pr_status: repeated or comma-separated list of draft, open, merged, closed
  • diff_url: string (matches chats whose linked diff URL equals the given value, case-insensitively; URLs typically contain ':' so they must be quoted, e.g. q=diff_url:"https://github.com/o/r/pull/1")
  • pr: positive integer (exact PR number match)
  • repo: string (case-insensitive substring match against git remote origin or URL)
  • pr_title: string (case-insensitive PR title substring match)

func Members added in v2.27.0

func Members(query string, organizationID uuid.UUID) (database.OrganizationMembersParams, []codersdk.ValidationError)

func Tasks added in v2.28.0

Tasks parses a search query for tasks.

Supported query parameters:

  • owner: string (username, UUID, or 'me' for current user)
  • organization: string (organization UUID or name)
  • status: string (pending, initializing, active, paused, error, unknown)

func Templates added in v2.14.0

func Workspaces

func Workspaces(ctx context.Context, db database.Store, query string, page codersdk.Pagination, agentInactiveDisconnectTimeout time.Duration) (database.GetWorkspacesParams, []codersdk.ValidationError)

Types

This section is empty.

Jump to

Keyboard shortcuts

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