Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.
This repository was archived by the owner on Aug 9, 2025. It is now read-only.

Implement admin API #6

@io7m

Description

@io7m

Implement the shell and API that allows for actually creating assignments, repositories, and etc.

Users

  • Assign roles to user
  • Revoke roles from user
  • Get roles for a user

Repositories

  • Create/update repository
  • Get repository
  • Delete repository
  • List repositories
  • Create/update SCM provider
  • List SCM providers
  • Delete SCM provider
  • Assign/unassign public key to/from repository
  • List public keys assigned to repository

Public Keys

  • Create/update public key
  • Get key
  • List key
  • Delete public key

Agents

  • Create/update agent
  • Get agent
  • List agents
  • Delete agent
  • Create/update label
  • Get label
  • List labels
  • Delete label

Tool executions

  • Delete tool execution
  • Create/update tool execution
  • Validate tool execution without saving
  • Get tool execution
  • List tool executions

Plans

  • Delete plan
  • Create/update plan
  • Validate plan without saving
  • Get plan
  • List plans

Assignments

  • Delete assignment
  • Create/update assignment
  • Get assignment
  • List assignments

Assignment Executions

  • Delete assignment execution (and logs)
  • Get assignment execution (and work items)
  • List assignment executions
  • Get work item log

Need ways to answer the following questions:

  • What is the server doing right now?
    • What assignments are executing right now?
      • Solution: Search for executions by state
    • What agents are currently connected to the system?
    • What users are currently connected to the system?
  • What are the agents doing right now?
    • For each agent, what work items are being executed?
    • What's the most recent logging output for each agent's work item?
      • Solution: Use the agent work items API, and then fetch logs for each item.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestserverIssues involving the server

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions