mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 21:00:06 +01:00
Initial Labels Page & API
This commit is contained in:
21
internal/handlers/labels/dto.go
Normal file
21
internal/handlers/labels/dto.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package labels
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type labelResponse struct {
|
||||
ID uuid.UUID `json:"id"`
|
||||
Key string `json:"key"`
|
||||
Value string `json:"value"`
|
||||
NodeGroups []nodePoolBrief `json:"node_groups,omitempty"`
|
||||
}
|
||||
|
||||
type nodePoolBrief struct {
|
||||
ID uuid.UUID `json:"id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type createLabelRequest struct {
|
||||
Key string `json:"key"`
|
||||
Value string `json:"value"`
|
||||
NodePoolIDs []string `json:"node_pool_ids,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user