mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
34 lines
838 B
Go
34 lines
838 B
Go
package taints
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type taintResponse struct {
|
|
ID uuid.UUID `json:"id"`
|
|
Key string `json:"key"`
|
|
Value string `json:"value"`
|
|
Effect string `json:"effect"`
|
|
NodeGroups []nodePoolBrief `json:"node_groups,omitempty"`
|
|
}
|
|
|
|
type nodePoolBrief struct {
|
|
ID uuid.UUID `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type createTaintRequest struct {
|
|
Key string `json:"key"`
|
|
Value string `json:"value"`
|
|
Effect string `json:"effect"`
|
|
NodePoolIDs []string `json:"node_pool_ids,omitempty"`
|
|
}
|
|
|
|
type updateTaintRequest struct {
|
|
Key *string `json:"key,omitempty"`
|
|
Value *string `json:"value,omitempty"`
|
|
Effect *string `json:"effect,omitempty"`
|
|
}
|
|
|
|
type addTaintToPoolRequest struct {
|
|
NodePoolIDs []string `json:"node_pool_ids"`
|
|
}
|