MCPcopy Index your code
hub / github.com/coder/coder / GetWorkspaceAgentLifecycleStateByID

Method GetWorkspaceAgentLifecycleStateByID

coderd/database/dbauthz/dbauthz.go:4912–4918  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

4910}
4911
4912func (q *querier) GetWorkspaceAgentLifecycleStateByID(ctx context.Context, id uuid.UUID) (database.GetWorkspaceAgentLifecycleStateByIDRow, error) {
4913 _, err := q.GetWorkspaceAgentByID(ctx, id)
4914 if err != nil {
4915 return database.GetWorkspaceAgentLifecycleStateByIDRow{}, err
4916 }
4917 return q.db.GetWorkspaceAgentLifecycleStateByID(ctx, id)
4918}
4919
4920func (q *querier) GetWorkspaceAgentLogSourcesByAgentIDs(ctx context.Context, ids []uuid.UUID) ([]database.WorkspaceAgentLogSource, error) {
4921 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil {

Callers

nothing calls this directly

Tested by

no test coverage detected