(ctx context.Context, id uuid.UUID)
| 4910 | } |
| 4911 | |
| 4912 | func (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 | |
| 4920 | func (q *querier) GetWorkspaceAgentLogSourcesByAgentIDs(ctx context.Context, ids []uuid.UUID) ([]database.WorkspaceAgentLogSource, error) { |
| 4921 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil { |
nothing calls this directly
no test coverage detected