Skip to content

Commit

Permalink
model: Switching from multi-source to single-source
Browse files Browse the repository at this point in the history
This commit changes the model from multi-source to single-source (i.e
one source - one agent).

Signed-off-by: Cosmin Tupangiu <[email protected]>
  • Loading branch information
tupyy committed Feb 7, 2025
1 parent 25e90d5 commit 7301991
Show file tree
Hide file tree
Showing 35 changed files with 1,877 additions and 2,389 deletions.
16 changes: 9 additions & 7 deletions api/v1alpha1/agent/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ paths:
put:
tags:
- source
description: replace status of the specified source
operationId: replaceSourceStatus
description: updates the inventory of a source
operationId: updateSourceInventory
parameters:
- name: id
in: path
Expand Down Expand Up @@ -107,8 +107,8 @@ paths:
application/json:
schema:
$ref: '../openapi.yaml#/components/schemas/Error'
"410":
description: Gone
"404":
description: Not found
content:
application/json:
schema:
Expand Down Expand Up @@ -142,11 +142,10 @@ components:
required:
- inventory
- agentId

AgentStatusUpdate:
type: object
properties:
id:
type: string
status:
type: string
statusInfo:
Expand All @@ -155,9 +154,12 @@ components:
type: string
version:
type: string
source_id:
type: string
format: uuid
required:
- status
- statusInfo
- credentialUrl
- id
- version
- source_id
45 changes: 23 additions & 22 deletions api/v1alpha1/agent/spec.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions api/v1alpha1/agent/types.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7301991

Please sign in to comment.