diff --git a/CLAUDE.md b/CLAUDE.md
index e587796..046bb2d 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -65,6 +65,7 @@ func FunctionName(
- Suite naming: `*_public_test.go` → `{Name}PublicTestSuite`,
`*_test.go` → `{Name}TestSuite`
- Use `testify/suite` with table-driven patterns
+- One suite method per function under test — all scenarios (success, errors, edge cases) as rows in one table
### Go Patterns
diff --git a/docs/development.md b/docs/development.md
index 339e979..cb37209 100644
--- a/docs/development.md
+++ b/docs/development.md
@@ -65,6 +65,10 @@ go test -run TestName -v ./pkg/osapi/... # Run a single test
exported functions.
- Use `testify/suite` with table-driven patterns.
- Table-driven structure with `validateFunc` callbacks.
+- **One suite method per function under test.** All scenarios for a function
+ (success, error codes, transport failures, nil responses) belong as rows in a
+ single table — never split into separate `TestFoo`, `TestFooError`,
+ `TestFooNilResponse` methods.
## Branching
diff --git a/docs/gen/gen.md b/docs/gen/gen.md
index aa7d121..a8bec70 100644
--- a/docs/gen/gen.md
+++ b/docs/gen/gen.md
@@ -16,6 +16,7 @@ Package gen contains generated code for the OSAPI REST API client.
- [Constants](<#constants>)
- [func NewDeleteJobByIDRequest\(server string, id openapi\_types.UUID\) \(\*http.Request, error\)](<#NewDeleteJobByIDRequest>)
+- [func NewDrainAgentRequest\(server string, hostname string\) \(\*http.Request, error\)](<#NewDrainAgentRequest>)
- [func NewGetAgentDetailsRequest\(server string, hostname string\) \(\*http.Request, error\)](<#NewGetAgentDetailsRequest>)
- [func NewGetAgentRequest\(server string\) \(\*http.Request, error\)](<#NewGetAgentRequest>)
- [func NewGetAuditExportRequest\(server string\) \(\*http.Request, error\)](<#NewGetAuditExportRequest>)
@@ -48,8 +49,10 @@ Package gen contains generated code for the OSAPI REST API client.
- [func NewPutNodeNetworkDNSRequestWithBody\(server string, hostname Hostname, contentType string, body io.Reader\) \(\*http.Request, error\)](<#NewPutNodeNetworkDNSRequestWithBody>)
- [func NewRetryJobByIDRequest\(server string, id openapi\_types.UUID, body RetryJobByIDJSONRequestBody\) \(\*http.Request, error\)](<#NewRetryJobByIDRequest>)
- [func NewRetryJobByIDRequestWithBody\(server string, id openapi\_types.UUID, contentType string, body io.Reader\) \(\*http.Request, error\)](<#NewRetryJobByIDRequestWithBody>)
+- [func NewUndrainAgentRequest\(server string, hostname string\) \(\*http.Request, error\)](<#NewUndrainAgentRequest>)
- [type AgentDetail](<#AgentDetail>)
- [type AgentInfo](<#AgentInfo>)
+- [type AgentInfoState](<#AgentInfoState>)
- [type AgentInfoStatus](<#AgentInfoStatus>)
- [type AgentStats](<#AgentStats>)
- [type AuditEntry](<#AuditEntry>)
@@ -57,6 +60,7 @@ Package gen contains generated code for the OSAPI REST API client.
- [type Client](<#Client>)
- [func NewClient\(server string, opts ...ClientOption\) \(\*Client, error\)](<#NewClient>)
- [func \(c \*Client\) DeleteJobByID\(ctx context.Context, id openapi\_types.UUID, reqEditors ...RequestEditorFn\) \(\*http.Response, error\)](<#Client.DeleteJobByID>)
+ - [func \(c \*Client\) DrainAgent\(ctx context.Context, hostname string, reqEditors ...RequestEditorFn\) \(\*http.Response, error\)](<#Client.DrainAgent>)
- [func \(c \*Client\) GetAgent\(ctx context.Context, reqEditors ...RequestEditorFn\) \(\*http.Response, error\)](<#Client.GetAgent>)
- [func \(c \*Client\) GetAgentDetails\(ctx context.Context, hostname string, reqEditors ...RequestEditorFn\) \(\*http.Response, error\)](<#Client.GetAgentDetails>)
- [func \(c \*Client\) GetAuditExport\(ctx context.Context, reqEditors ...RequestEditorFn\) \(\*http.Response, error\)](<#Client.GetAuditExport>)
@@ -89,6 +93,7 @@ Package gen contains generated code for the OSAPI REST API client.
- [func \(c \*Client\) PutNodeNetworkDNSWithBody\(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn\) \(\*http.Response, error\)](<#Client.PutNodeNetworkDNSWithBody>)
- [func \(c \*Client\) RetryJobByID\(ctx context.Context, id openapi\_types.UUID, body RetryJobByIDJSONRequestBody, reqEditors ...RequestEditorFn\) \(\*http.Response, error\)](<#Client.RetryJobByID>)
- [func \(c \*Client\) RetryJobByIDWithBody\(ctx context.Context, id openapi\_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn\) \(\*http.Response, error\)](<#Client.RetryJobByIDWithBody>)
+ - [func \(c \*Client\) UndrainAgent\(ctx context.Context, hostname string, reqEditors ...RequestEditorFn\) \(\*http.Response, error\)](<#Client.UndrainAgent>)
- [type ClientInterface](<#ClientInterface>)
- [type ClientOption](<#ClientOption>)
- [func WithBaseURL\(baseURL string\) ClientOption](<#WithBaseURL>)
@@ -97,6 +102,7 @@ Package gen contains generated code for the OSAPI REST API client.
- [type ClientWithResponses](<#ClientWithResponses>)
- [func NewClientWithResponses\(server string, opts ...ClientOption\) \(\*ClientWithResponses, error\)](<#NewClientWithResponses>)
- [func \(c \*ClientWithResponses\) DeleteJobByIDWithResponse\(ctx context.Context, id openapi\_types.UUID, reqEditors ...RequestEditorFn\) \(\*DeleteJobByIDResponse, error\)](<#ClientWithResponses.DeleteJobByIDWithResponse>)
+ - [func \(c \*ClientWithResponses\) DrainAgentWithResponse\(ctx context.Context, hostname string, reqEditors ...RequestEditorFn\) \(\*DrainAgentResponse, error\)](<#ClientWithResponses.DrainAgentWithResponse>)
- [func \(c \*ClientWithResponses\) GetAgentDetailsWithResponse\(ctx context.Context, hostname string, reqEditors ...RequestEditorFn\) \(\*GetAgentDetailsResponse, error\)](<#ClientWithResponses.GetAgentDetailsWithResponse>)
- [func \(c \*ClientWithResponses\) GetAgentWithResponse\(ctx context.Context, reqEditors ...RequestEditorFn\) \(\*GetAgentResponse, error\)](<#ClientWithResponses.GetAgentWithResponse>)
- [func \(c \*ClientWithResponses\) GetAuditExportWithResponse\(ctx context.Context, reqEditors ...RequestEditorFn\) \(\*GetAuditExportResponse, error\)](<#ClientWithResponses.GetAuditExportWithResponse>)
@@ -129,6 +135,7 @@ Package gen contains generated code for the OSAPI REST API client.
- [func \(c \*ClientWithResponses\) PutNodeNetworkDNSWithResponse\(ctx context.Context, hostname Hostname, body PutNodeNetworkDNSJSONRequestBody, reqEditors ...RequestEditorFn\) \(\*PutNodeNetworkDNSResponse, error\)](<#ClientWithResponses.PutNodeNetworkDNSWithResponse>)
- [func \(c \*ClientWithResponses\) RetryJobByIDWithBodyWithResponse\(ctx context.Context, id openapi\_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn\) \(\*RetryJobByIDResponse, error\)](<#ClientWithResponses.RetryJobByIDWithBodyWithResponse>)
- [func \(c \*ClientWithResponses\) RetryJobByIDWithResponse\(ctx context.Context, id openapi\_types.UUID, body RetryJobByIDJSONRequestBody, reqEditors ...RequestEditorFn\) \(\*RetryJobByIDResponse, error\)](<#ClientWithResponses.RetryJobByIDWithResponse>)
+ - [func \(c \*ClientWithResponses\) UndrainAgentWithResponse\(ctx context.Context, hostname string, reqEditors ...RequestEditorFn\) \(\*UndrainAgentResponse, error\)](<#ClientWithResponses.UndrainAgentWithResponse>)
- [type ClientWithResponsesInterface](<#ClientWithResponsesInterface>)
- [type CommandExecRequest](<#CommandExecRequest>)
- [type CommandResultCollectionResponse](<#CommandResultCollectionResponse>)
@@ -153,6 +160,10 @@ Package gen contains generated code for the OSAPI REST API client.
- [type DiskResponse](<#DiskResponse>)
- [type DiskResultItem](<#DiskResultItem>)
- [type DisksResponse](<#DisksResponse>)
+- [type DrainAgentResponse](<#DrainAgentResponse>)
+ - [func ParseDrainAgentResponse\(rsp \*http.Response\) \(\*DrainAgentResponse, error\)](<#ParseDrainAgentResponse>)
+ - [func \(r DrainAgentResponse\) Status\(\) string](<#DrainAgentResponse.Status>)
+ - [func \(r DrainAgentResponse\) StatusCode\(\) int](<#DrainAgentResponse.StatusCode>)
- [type ErrorResponse](<#ErrorResponse>)
- [type GetAgentDetailsResponse](<#GetAgentDetailsResponse>)
- [func ParseGetAgentDetailsResponse\(rsp \*http.Response\) \(\*GetAgentDetailsResponse, error\)](<#ParseGetAgentDetailsResponse>)
@@ -257,6 +268,8 @@ Package gen contains generated code for the OSAPI REST API client.
- [type NATSInfo](<#NATSInfo>)
- [type NetworkInterfaceResponse](<#NetworkInterfaceResponse>)
- [type NetworkInterfaceResponseFamily](<#NetworkInterfaceResponseFamily>)
+- [type NodeCondition](<#NodeCondition>)
+- [type NodeConditionType](<#NodeConditionType>)
- [type NodeStatusCollectionResponse](<#NodeStatusCollectionResponse>)
- [type NodeStatusResponse](<#NodeStatusResponse>)
- [type OSInfoCollectionResponse](<#OSInfoCollectionResponse>)
@@ -301,6 +314,11 @@ Package gen contains generated code for the OSAPI REST API client.
- [type RetryJobRequest](<#RetryJobRequest>)
- [type StatusResponse](<#StatusResponse>)
- [type StreamInfo](<#StreamInfo>)
+- [type TimelineEvent](<#TimelineEvent>)
+- [type UndrainAgentResponse](<#UndrainAgentResponse>)
+ - [func ParseUndrainAgentResponse\(rsp \*http.Response\) \(\*UndrainAgentResponse, error\)](<#ParseUndrainAgentResponse>)
+ - [func \(r UndrainAgentResponse\) Status\(\) string](<#UndrainAgentResponse.Status>)
+ - [func \(r UndrainAgentResponse\) StatusCode\(\) int](<#UndrainAgentResponse.StatusCode>)
- [type UptimeCollectionResponse](<#UptimeCollectionResponse>)
- [type UptimeResponse](<#UptimeResponse>)
@@ -316,7 +334,7 @@ const (
```
-## func [NewDeleteJobByIDRequest]()
+## func [NewDeleteJobByIDRequest]()
```go
func NewDeleteJobByIDRequest(server string, id openapi_types.UUID) (*http.Request, error)
@@ -324,8 +342,17 @@ func NewDeleteJobByIDRequest(server string, id openapi_types.UUID) (*http.Reques
NewDeleteJobByIDRequest generates requests for DeleteJobByID
+
+## func [NewDrainAgentRequest]()
+
+```go
+func NewDrainAgentRequest(server string, hostname string) (*http.Request, error)
+```
+
+NewDrainAgentRequest generates requests for DrainAgent
+
-## func [NewGetAgentDetailsRequest]()
+## func [NewGetAgentDetailsRequest]()
```go
func NewGetAgentDetailsRequest(server string, hostname string) (*http.Request, error)
@@ -334,7 +361,7 @@ func NewGetAgentDetailsRequest(server string, hostname string) (*http.Request, e
NewGetAgentDetailsRequest generates requests for GetAgentDetails
-## func [NewGetAgentRequest]()
+## func [NewGetAgentRequest]()
```go
func NewGetAgentRequest(server string) (*http.Request, error)
@@ -343,7 +370,7 @@ func NewGetAgentRequest(server string) (*http.Request, error)
NewGetAgentRequest generates requests for GetAgent
-## func [NewGetAuditExportRequest]()
+## func [NewGetAuditExportRequest]()
```go
func NewGetAuditExportRequest(server string) (*http.Request, error)
@@ -352,7 +379,7 @@ func NewGetAuditExportRequest(server string) (*http.Request, error)
NewGetAuditExportRequest generates requests for GetAuditExport
-## func [NewGetAuditLogByIDRequest]()
+## func [NewGetAuditLogByIDRequest]()
```go
func NewGetAuditLogByIDRequest(server string, id openapi_types.UUID) (*http.Request, error)
@@ -361,7 +388,7 @@ func NewGetAuditLogByIDRequest(server string, id openapi_types.UUID) (*http.Requ
NewGetAuditLogByIDRequest generates requests for GetAuditLogByID
-## func [NewGetAuditLogsRequest]()
+## func [NewGetAuditLogsRequest]()
```go
func NewGetAuditLogsRequest(server string, params *GetAuditLogsParams) (*http.Request, error)
@@ -370,7 +397,7 @@ func NewGetAuditLogsRequest(server string, params *GetAuditLogsParams) (*http.Re
NewGetAuditLogsRequest generates requests for GetAuditLogs
-## func [NewGetHealthReadyRequest]()
+## func [NewGetHealthReadyRequest]()
```go
func NewGetHealthReadyRequest(server string) (*http.Request, error)
@@ -379,7 +406,7 @@ func NewGetHealthReadyRequest(server string) (*http.Request, error)
NewGetHealthReadyRequest generates requests for GetHealthReady
-## func [NewGetHealthRequest]()
+## func [NewGetHealthRequest]()
```go
func NewGetHealthRequest(server string) (*http.Request, error)
@@ -388,7 +415,7 @@ func NewGetHealthRequest(server string) (*http.Request, error)
NewGetHealthRequest generates requests for GetHealth
-## func [NewGetHealthStatusRequest]()
+## func [NewGetHealthStatusRequest]()
```go
func NewGetHealthStatusRequest(server string) (*http.Request, error)
@@ -397,7 +424,7 @@ func NewGetHealthStatusRequest(server string) (*http.Request, error)
NewGetHealthStatusRequest generates requests for GetHealthStatus
-## func [NewGetJobByIDRequest]()
+## func [NewGetJobByIDRequest]()
```go
func NewGetJobByIDRequest(server string, id openapi_types.UUID) (*http.Request, error)
@@ -406,7 +433,7 @@ func NewGetJobByIDRequest(server string, id openapi_types.UUID) (*http.Request,
NewGetJobByIDRequest generates requests for GetJobByID
-## func [NewGetJobRequest]()
+## func [NewGetJobRequest]()
```go
func NewGetJobRequest(server string, params *GetJobParams) (*http.Request, error)
@@ -415,7 +442,7 @@ func NewGetJobRequest(server string, params *GetJobParams) (*http.Request, error
NewGetJobRequest generates requests for GetJob
-## func [NewGetJobStatusRequest]()
+## func [NewGetJobStatusRequest]()
```go
func NewGetJobStatusRequest(server string) (*http.Request, error)
@@ -424,7 +451,7 @@ func NewGetJobStatusRequest(server string) (*http.Request, error)
NewGetJobStatusRequest generates requests for GetJobStatus
-## func [NewGetNodeDiskRequest]()
+## func [NewGetNodeDiskRequest]()
```go
func NewGetNodeDiskRequest(server string, hostname Hostname) (*http.Request, error)
@@ -433,7 +460,7 @@ func NewGetNodeDiskRequest(server string, hostname Hostname) (*http.Request, err
NewGetNodeDiskRequest generates requests for GetNodeDisk
-## func [NewGetNodeHostnameRequest]()
+## func [NewGetNodeHostnameRequest]()
```go
func NewGetNodeHostnameRequest(server string, hostname Hostname) (*http.Request, error)
@@ -442,7 +469,7 @@ func NewGetNodeHostnameRequest(server string, hostname Hostname) (*http.Request,
NewGetNodeHostnameRequest generates requests for GetNodeHostname
-## func [NewGetNodeLoadRequest]()
+## func [NewGetNodeLoadRequest]()
```go
func NewGetNodeLoadRequest(server string, hostname Hostname) (*http.Request, error)
@@ -451,7 +478,7 @@ func NewGetNodeLoadRequest(server string, hostname Hostname) (*http.Request, err
NewGetNodeLoadRequest generates requests for GetNodeLoad
-## func [NewGetNodeMemoryRequest]()
+## func [NewGetNodeMemoryRequest]()
```go
func NewGetNodeMemoryRequest(server string, hostname Hostname) (*http.Request, error)
@@ -460,7 +487,7 @@ func NewGetNodeMemoryRequest(server string, hostname Hostname) (*http.Request, e
NewGetNodeMemoryRequest generates requests for GetNodeMemory
-## func [NewGetNodeNetworkDNSByInterfaceRequest]()
+## func [NewGetNodeNetworkDNSByInterfaceRequest]()
```go
func NewGetNodeNetworkDNSByInterfaceRequest(server string, hostname Hostname, interfaceName string) (*http.Request, error)
@@ -469,7 +496,7 @@ func NewGetNodeNetworkDNSByInterfaceRequest(server string, hostname Hostname, in
NewGetNodeNetworkDNSByInterfaceRequest generates requests for GetNodeNetworkDNSByInterface
-## func [NewGetNodeOSRequest]()
+## func [NewGetNodeOSRequest]()
```go
func NewGetNodeOSRequest(server string, hostname Hostname) (*http.Request, error)
@@ -478,7 +505,7 @@ func NewGetNodeOSRequest(server string, hostname Hostname) (*http.Request, error
NewGetNodeOSRequest generates requests for GetNodeOS
-## func [NewGetNodeStatusRequest]()
+## func [NewGetNodeStatusRequest]()
```go
func NewGetNodeStatusRequest(server string, hostname Hostname) (*http.Request, error)
@@ -487,7 +514,7 @@ func NewGetNodeStatusRequest(server string, hostname Hostname) (*http.Request, e
NewGetNodeStatusRequest generates requests for GetNodeStatus
-## func [NewGetNodeUptimeRequest]()
+## func [NewGetNodeUptimeRequest]()
```go
func NewGetNodeUptimeRequest(server string, hostname Hostname) (*http.Request, error)
@@ -496,7 +523,7 @@ func NewGetNodeUptimeRequest(server string, hostname Hostname) (*http.Request, e
NewGetNodeUptimeRequest generates requests for GetNodeUptime
-## func [NewGetVersionRequest]()
+## func [NewGetVersionRequest]()
```go
func NewGetVersionRequest(server string) (*http.Request, error)
@@ -505,7 +532,7 @@ func NewGetVersionRequest(server string) (*http.Request, error)
NewGetVersionRequest generates requests for GetVersion
-## func [NewPostJobRequest]()
+## func [NewPostJobRequest]()
```go
func NewPostJobRequest(server string, body PostJobJSONRequestBody) (*http.Request, error)
@@ -514,7 +541,7 @@ func NewPostJobRequest(server string, body PostJobJSONRequestBody) (*http.Reques
NewPostJobRequest calls the generic PostJob builder with application/json body
-## func [NewPostJobRequestWithBody]()
+## func [NewPostJobRequestWithBody]()
```go
func NewPostJobRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
@@ -523,7 +550,7 @@ func NewPostJobRequestWithBody(server string, contentType string, body io.Reader
NewPostJobRequestWithBody generates requests for PostJob with any type of body
-## func [NewPostNodeCommandExecRequest]()
+## func [NewPostNodeCommandExecRequest]()
```go
func NewPostNodeCommandExecRequest(server string, hostname Hostname, body PostNodeCommandExecJSONRequestBody) (*http.Request, error)
@@ -532,7 +559,7 @@ func NewPostNodeCommandExecRequest(server string, hostname Hostname, body PostNo
NewPostNodeCommandExecRequest calls the generic PostNodeCommandExec builder with application/json body
-## func [NewPostNodeCommandExecRequestWithBody]()
+## func [NewPostNodeCommandExecRequestWithBody]()
```go
func NewPostNodeCommandExecRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
@@ -541,7 +568,7 @@ func NewPostNodeCommandExecRequestWithBody(server string, hostname Hostname, con
NewPostNodeCommandExecRequestWithBody generates requests for PostNodeCommandExec with any type of body
-## func [NewPostNodeCommandShellRequest]()
+## func [NewPostNodeCommandShellRequest]()
```go
func NewPostNodeCommandShellRequest(server string, hostname Hostname, body PostNodeCommandShellJSONRequestBody) (*http.Request, error)
@@ -550,7 +577,7 @@ func NewPostNodeCommandShellRequest(server string, hostname Hostname, body PostN
NewPostNodeCommandShellRequest calls the generic PostNodeCommandShell builder with application/json body
-## func [NewPostNodeCommandShellRequestWithBody]()
+## func [NewPostNodeCommandShellRequestWithBody]()
```go
func NewPostNodeCommandShellRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
@@ -559,7 +586,7 @@ func NewPostNodeCommandShellRequestWithBody(server string, hostname Hostname, co
NewPostNodeCommandShellRequestWithBody generates requests for PostNodeCommandShell with any type of body
-## func [NewPostNodeNetworkPingRequest]()
+## func [NewPostNodeNetworkPingRequest]()
```go
func NewPostNodeNetworkPingRequest(server string, hostname Hostname, body PostNodeNetworkPingJSONRequestBody) (*http.Request, error)
@@ -568,7 +595,7 @@ func NewPostNodeNetworkPingRequest(server string, hostname Hostname, body PostNo
NewPostNodeNetworkPingRequest calls the generic PostNodeNetworkPing builder with application/json body
-## func [NewPostNodeNetworkPingRequestWithBody]()
+## func [NewPostNodeNetworkPingRequestWithBody]()
```go
func NewPostNodeNetworkPingRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
@@ -577,7 +604,7 @@ func NewPostNodeNetworkPingRequestWithBody(server string, hostname Hostname, con
NewPostNodeNetworkPingRequestWithBody generates requests for PostNodeNetworkPing with any type of body
-## func [NewPutNodeNetworkDNSRequest]()
+## func [NewPutNodeNetworkDNSRequest]()
```go
func NewPutNodeNetworkDNSRequest(server string, hostname Hostname, body PutNodeNetworkDNSJSONRequestBody) (*http.Request, error)
@@ -586,7 +613,7 @@ func NewPutNodeNetworkDNSRequest(server string, hostname Hostname, body PutNodeN
NewPutNodeNetworkDNSRequest calls the generic PutNodeNetworkDNS builder with application/json body
-## func [NewPutNodeNetworkDNSRequestWithBody]()
+## func [NewPutNodeNetworkDNSRequestWithBody]()
```go
func NewPutNodeNetworkDNSRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
@@ -595,7 +622,7 @@ func NewPutNodeNetworkDNSRequestWithBody(server string, hostname Hostname, conte
NewPutNodeNetworkDNSRequestWithBody generates requests for PutNodeNetworkDNS with any type of body
-## func [NewRetryJobByIDRequest]()
+## func [NewRetryJobByIDRequest]()
```go
func NewRetryJobByIDRequest(server string, id openapi_types.UUID, body RetryJobByIDJSONRequestBody) (*http.Request, error)
@@ -604,7 +631,7 @@ func NewRetryJobByIDRequest(server string, id openapi_types.UUID, body RetryJobB
NewRetryJobByIDRequest calls the generic RetryJobByID builder with application/json body
-## func [NewRetryJobByIDRequestWithBody]()
+## func [NewRetryJobByIDRequestWithBody]()
```go
func NewRetryJobByIDRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
@@ -612,8 +639,17 @@ func NewRetryJobByIDRequestWithBody(server string, id openapi_types.UUID, conten
NewRetryJobByIDRequestWithBody generates requests for RetryJobByID with any type of body
+
+## func [NewUndrainAgentRequest]()
+
+```go
+func NewUndrainAgentRequest(server string, hostname string) (*http.Request, error)
+```
+
+NewUndrainAgentRequest generates requests for UndrainAgent
+
-## type [AgentDetail]()
+## type [AgentDetail]()
AgentDetail defines model for AgentDetail.
@@ -631,7 +667,7 @@ type AgentDetail struct {
```
-## type [AgentInfo]()
+## type [AgentInfo]()
AgentInfo defines model for AgentInfo.
@@ -640,6 +676,9 @@ type AgentInfo struct {
// Architecture CPU architecture.
Architecture *string `json:"architecture,omitempty"`
+ // Conditions Evaluated node conditions.
+ Conditions *[]NodeCondition `json:"conditions,omitempty"`
+
// CpuCount Number of logical CPUs.
CpuCount *int `json:"cpu_count,omitempty"`
@@ -680,16 +719,41 @@ type AgentInfo struct {
// StartedAt When the agent process started.
StartedAt *time.Time `json:"started_at,omitempty"`
+ // State Agent scheduling state.
+ State *AgentInfoState `json:"state,omitempty"`
+
// Status The current status of the agent.
Status AgentInfoStatus `json:"status"`
+ // Timeline Agent state transition history.
+ Timeline *[]TimelineEvent `json:"timeline,omitempty"`
+
// Uptime The system uptime.
Uptime *string `json:"uptime,omitempty"`
}
```
+
+## type [AgentInfoState]()
+
+AgentInfoState Agent scheduling state.
+
+```go
+type AgentInfoState string
+```
+
+Defines values for AgentInfoState.
+
+```go
+const (
+ AgentInfoStateCordoned AgentInfoState = "Cordoned"
+ AgentInfoStateDraining AgentInfoState = "Draining"
+ AgentInfoStateReady AgentInfoState = "Ready"
+)
+```
+
-## type [AgentInfoStatus]()
+## type [AgentInfoStatus]()
AgentInfoStatus The current status of the agent.
@@ -697,17 +761,17 @@ AgentInfoStatus The current status of the agent.
type AgentInfoStatus string
```
-Defines values for AgentInfoStatus.
+Defines values for AgentInfoStatus.
```go
const (
- NotReady AgentInfoStatus = "NotReady"
- Ready AgentInfoStatus = "Ready"
+ AgentInfoStatusNotReady AgentInfoStatus = "NotReady"
+ AgentInfoStatusReady AgentInfoStatus = "Ready"
)
```
-## type [AgentStats]()
+## type [AgentStats]()
AgentStats defines model for AgentStats.
@@ -725,7 +789,7 @@ type AgentStats struct {
```
-## type [AuditEntry]()
+## type [AuditEntry]()
AuditEntry defines model for AuditEntry.
@@ -764,7 +828,7 @@ type AuditEntry struct {
```
-## type [AuditEntryResponse]()
+## type [AuditEntryResponse]()
AuditEntryResponse defines model for AuditEntryResponse.
@@ -775,7 +839,7 @@ type AuditEntryResponse struct {
```
-## type [Client]()
+## type [Client]()
Client which conforms to the OpenAPI3 specification for this service.
@@ -798,7 +862,7 @@ type Client struct {
```
-### func [NewClient]()
+### func [NewClient]()
```go
func NewClient(server string, opts ...ClientOption) (*Client, error)
@@ -807,7 +871,7 @@ func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
-### func \(\*Client\) [DeleteJobByID]()
+### func \(\*Client\) [DeleteJobByID]()
```go
func (c *Client) DeleteJobByID(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -815,8 +879,17 @@ func (c *Client) DeleteJobByID(ctx context.Context, id openapi_types.UUID, reqEd
+
+### func \(\*Client\) [DrainAgent]()
+
+```go
+func (c *Client) DrainAgent(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*http.Response, error)
+```
+
+
+
-### func \(\*Client\) [GetAgent]()
+### func \(\*Client\) [GetAgent]()
```go
func (c *Client) GetAgent(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -825,7 +898,7 @@ func (c *Client) GetAgent(ctx context.Context, reqEditors ...RequestEditorFn) (*
-### func \(\*Client\) [GetAgentDetails]()
+### func \(\*Client\) [GetAgentDetails]()
```go
func (c *Client) GetAgentDetails(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -834,7 +907,7 @@ func (c *Client) GetAgentDetails(ctx context.Context, hostname string, reqEditor
-### func \(\*Client\) [GetAuditExport]()
+### func \(\*Client\) [GetAuditExport]()
```go
func (c *Client) GetAuditExport(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -843,7 +916,7 @@ func (c *Client) GetAuditExport(ctx context.Context, reqEditors ...RequestEditor
-### func \(\*Client\) [GetAuditLogByID]()
+### func \(\*Client\) [GetAuditLogByID]()
```go
func (c *Client) GetAuditLogByID(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -852,7 +925,7 @@ func (c *Client) GetAuditLogByID(ctx context.Context, id openapi_types.UUID, req
-### func \(\*Client\) [GetAuditLogs]()
+### func \(\*Client\) [GetAuditLogs]()
```go
func (c *Client) GetAuditLogs(ctx context.Context, params *GetAuditLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -861,7 +934,7 @@ func (c *Client) GetAuditLogs(ctx context.Context, params *GetAuditLogsParams, r
-### func \(\*Client\) [GetHealth]()
+### func \(\*Client\) [GetHealth]()
```go
func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -870,7 +943,7 @@ func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (
-### func \(\*Client\) [GetHealthReady]()
+### func \(\*Client\) [GetHealthReady]()
```go
func (c *Client) GetHealthReady(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -879,7 +952,7 @@ func (c *Client) GetHealthReady(ctx context.Context, reqEditors ...RequestEditor
-### func \(\*Client\) [GetHealthStatus]()
+### func \(\*Client\) [GetHealthStatus]()
```go
func (c *Client) GetHealthStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -888,7 +961,7 @@ func (c *Client) GetHealthStatus(ctx context.Context, reqEditors ...RequestEdito
-### func \(\*Client\) [GetJob]()
+### func \(\*Client\) [GetJob]()
```go
func (c *Client) GetJob(ctx context.Context, params *GetJobParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -897,7 +970,7 @@ func (c *Client) GetJob(ctx context.Context, params *GetJobParams, reqEditors ..
-### func \(\*Client\) [GetJobByID]()
+### func \(\*Client\) [GetJobByID]()
```go
func (c *Client) GetJobByID(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -906,7 +979,7 @@ func (c *Client) GetJobByID(ctx context.Context, id openapi_types.UUID, reqEdito
-### func \(\*Client\) [GetJobStatus]()
+### func \(\*Client\) [GetJobStatus]()
```go
func (c *Client) GetJobStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -915,7 +988,7 @@ func (c *Client) GetJobStatus(ctx context.Context, reqEditors ...RequestEditorFn
-### func \(\*Client\) [GetNodeDisk]()
+### func \(\*Client\) [GetNodeDisk]()
```go
func (c *Client) GetNodeDisk(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -924,7 +997,7 @@ func (c *Client) GetNodeDisk(ctx context.Context, hostname Hostname, reqEditors
-### func \(\*Client\) [GetNodeHostname]()
+### func \(\*Client\) [GetNodeHostname]()
```go
func (c *Client) GetNodeHostname(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -933,7 +1006,7 @@ func (c *Client) GetNodeHostname(ctx context.Context, hostname Hostname, reqEdit
-### func \(\*Client\) [GetNodeLoad]()
+### func \(\*Client\) [GetNodeLoad]()
```go
func (c *Client) GetNodeLoad(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -942,7 +1015,7 @@ func (c *Client) GetNodeLoad(ctx context.Context, hostname Hostname, reqEditors
-### func \(\*Client\) [GetNodeMemory]()
+### func \(\*Client\) [GetNodeMemory]()
```go
func (c *Client) GetNodeMemory(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -951,7 +1024,7 @@ func (c *Client) GetNodeMemory(ctx context.Context, hostname Hostname, reqEditor
-### func \(\*Client\) [GetNodeNetworkDNSByInterface]()
+### func \(\*Client\) [GetNodeNetworkDNSByInterface]()
```go
func (c *Client) GetNodeNetworkDNSByInterface(ctx context.Context, hostname Hostname, interfaceName string, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -960,7 +1033,7 @@ func (c *Client) GetNodeNetworkDNSByInterface(ctx context.Context, hostname Host
-### func \(\*Client\) [GetNodeOS]()
+### func \(\*Client\) [GetNodeOS]()
```go
func (c *Client) GetNodeOS(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -969,7 +1042,7 @@ func (c *Client) GetNodeOS(ctx context.Context, hostname Hostname, reqEditors ..
-### func \(\*Client\) [GetNodeStatus]()
+### func \(\*Client\) [GetNodeStatus]()
```go
func (c *Client) GetNodeStatus(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -978,7 +1051,7 @@ func (c *Client) GetNodeStatus(ctx context.Context, hostname Hostname, reqEditor
-### func \(\*Client\) [GetNodeUptime]()
+### func \(\*Client\) [GetNodeUptime]()
```go
func (c *Client) GetNodeUptime(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -987,7 +1060,7 @@ func (c *Client) GetNodeUptime(ctx context.Context, hostname Hostname, reqEditor
-### func \(\*Client\) [GetVersion]()
+### func \(\*Client\) [GetVersion]()
```go
func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -996,7 +1069,7 @@ func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn)
-### func \(\*Client\) [PostJob]()
+### func \(\*Client\) [PostJob]()
```go
func (c *Client) PostJob(ctx context.Context, body PostJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1005,7 +1078,7 @@ func (c *Client) PostJob(ctx context.Context, body PostJobJSONRequestBody, reqEd
-### func \(\*Client\) [PostJobWithBody]()
+### func \(\*Client\) [PostJobWithBody]()
```go
func (c *Client) PostJobWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1014,7 +1087,7 @@ func (c *Client) PostJobWithBody(ctx context.Context, contentType string, body i
-### func \(\*Client\) [PostNodeCommandExec]()
+### func \(\*Client\) [PostNodeCommandExec]()
```go
func (c *Client) PostNodeCommandExec(ctx context.Context, hostname Hostname, body PostNodeCommandExecJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1023,7 +1096,7 @@ func (c *Client) PostNodeCommandExec(ctx context.Context, hostname Hostname, bod
-### func \(\*Client\) [PostNodeCommandExecWithBody]()
+### func \(\*Client\) [PostNodeCommandExecWithBody]()
```go
func (c *Client) PostNodeCommandExecWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1032,7 +1105,7 @@ func (c *Client) PostNodeCommandExecWithBody(ctx context.Context, hostname Hostn
-### func \(\*Client\) [PostNodeCommandShell]()
+### func \(\*Client\) [PostNodeCommandShell]()
```go
func (c *Client) PostNodeCommandShell(ctx context.Context, hostname Hostname, body PostNodeCommandShellJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1041,7 +1114,7 @@ func (c *Client) PostNodeCommandShell(ctx context.Context, hostname Hostname, bo
-### func \(\*Client\) [PostNodeCommandShellWithBody]()
+### func \(\*Client\) [PostNodeCommandShellWithBody]()
```go
func (c *Client) PostNodeCommandShellWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1050,7 +1123,7 @@ func (c *Client) PostNodeCommandShellWithBody(ctx context.Context, hostname Host
-### func \(\*Client\) [PostNodeNetworkPing]()
+### func \(\*Client\) [PostNodeNetworkPing]()
```go
func (c *Client) PostNodeNetworkPing(ctx context.Context, hostname Hostname, body PostNodeNetworkPingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1059,7 +1132,7 @@ func (c *Client) PostNodeNetworkPing(ctx context.Context, hostname Hostname, bod
-### func \(\*Client\) [PostNodeNetworkPingWithBody]()
+### func \(\*Client\) [PostNodeNetworkPingWithBody]()
```go
func (c *Client) PostNodeNetworkPingWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1068,7 +1141,7 @@ func (c *Client) PostNodeNetworkPingWithBody(ctx context.Context, hostname Hostn
-### func \(\*Client\) [PutNodeNetworkDNS]()
+### func \(\*Client\) [PutNodeNetworkDNS]()
```go
func (c *Client) PutNodeNetworkDNS(ctx context.Context, hostname Hostname, body PutNodeNetworkDNSJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1077,7 +1150,7 @@ func (c *Client) PutNodeNetworkDNS(ctx context.Context, hostname Hostname, body
-### func \(\*Client\) [PutNodeNetworkDNSWithBody]()
+### func \(\*Client\) [PutNodeNetworkDNSWithBody]()
```go
func (c *Client) PutNodeNetworkDNSWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1086,7 +1159,7 @@ func (c *Client) PutNodeNetworkDNSWithBody(ctx context.Context, hostname Hostnam
-### func \(\*Client\) [RetryJobByID]()
+### func \(\*Client\) [RetryJobByID]()
```go
func (c *Client) RetryJobByID(ctx context.Context, id openapi_types.UUID, body RetryJobByIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1095,7 +1168,7 @@ func (c *Client) RetryJobByID(ctx context.Context, id openapi_types.UUID, body R
-### func \(\*Client\) [RetryJobByIDWithBody]()
+### func \(\*Client\) [RetryJobByIDWithBody]()
```go
func (c *Client) RetryJobByIDWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1103,8 +1176,17 @@ func (c *Client) RetryJobByIDWithBody(ctx context.Context, id openapi_types.UUID
+
+### func \(\*Client\) [UndrainAgent]()
+
+```go
+func (c *Client) UndrainAgent(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*http.Response, error)
+```
+
+
+
-## type [ClientInterface]()
+## type [ClientInterface]()
The interface specification for the client above.
@@ -1116,6 +1198,12 @@ type ClientInterface interface {
// GetAgentDetails request
GetAgentDetails(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // DrainAgent request
+ DrainAgent(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UndrainAgent request
+ UndrainAgent(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// GetAuditLogs request
GetAuditLogs(ctx context.Context, params *GetAuditLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -1206,7 +1294,7 @@ type ClientInterface interface {
```
-## type [ClientOption]()
+## type [ClientOption]()
ClientOption allows setting custom parameters during construction
@@ -1215,7 +1303,7 @@ type ClientOption func(*Client) error
```
-### func [WithBaseURL]()
+### func [WithBaseURL]()
```go
func WithBaseURL(baseURL string) ClientOption
@@ -1224,7 +1312,7 @@ func WithBaseURL(baseURL string) ClientOption
WithBaseURL overrides the baseURL.
-### func [WithHTTPClient]()
+### func [WithHTTPClient]()
```go
func WithHTTPClient(doer HttpRequestDoer) ClientOption
@@ -1233,7 +1321,7 @@ func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
-### func [WithRequestEditorFn]()
+### func [WithRequestEditorFn]()
```go
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
@@ -1242,7 +1330,7 @@ func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
-## type [ClientWithResponses]()
+## type [ClientWithResponses]()
ClientWithResponses builds on ClientInterface to offer response payloads
@@ -1253,7 +1341,7 @@ type ClientWithResponses struct {
```
-### func [NewClientWithResponses]()
+### func [NewClientWithResponses]()
```go
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
@@ -1262,7 +1350,7 @@ func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithRes
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
-### func \(\*ClientWithResponses\) [DeleteJobByIDWithResponse]()
+### func \(\*ClientWithResponses\) [DeleteJobByIDWithResponse]()
```go
func (c *ClientWithResponses) DeleteJobByIDWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteJobByIDResponse, error)
@@ -1270,8 +1358,17 @@ func (c *ClientWithResponses) DeleteJobByIDWithResponse(ctx context.Context, id
DeleteJobByIDWithResponse request returning \*DeleteJobByIDResponse
+
+### func \(\*ClientWithResponses\) [DrainAgentWithResponse]()
+
+```go
+func (c *ClientWithResponses) DrainAgentWithResponse(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*DrainAgentResponse, error)
+```
+
+DrainAgentWithResponse request returning \*DrainAgentResponse
+
-### func \(\*ClientWithResponses\) [GetAgentDetailsWithResponse]()
+### func \(\*ClientWithResponses\) [GetAgentDetailsWithResponse]()
```go
func (c *ClientWithResponses) GetAgentDetailsWithResponse(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*GetAgentDetailsResponse, error)
@@ -1280,7 +1377,7 @@ func (c *ClientWithResponses) GetAgentDetailsWithResponse(ctx context.Context, h
GetAgentDetailsWithResponse request returning \*GetAgentDetailsResponse
-### func \(\*ClientWithResponses\) [GetAgentWithResponse]()
+### func \(\*ClientWithResponses\) [GetAgentWithResponse]()
```go
func (c *ClientWithResponses) GetAgentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAgentResponse, error)
@@ -1289,7 +1386,7 @@ func (c *ClientWithResponses) GetAgentWithResponse(ctx context.Context, reqEdito
GetAgentWithResponse request returning \*GetAgentResponse
-### func \(\*ClientWithResponses\) [GetAuditExportWithResponse]()
+### func \(\*ClientWithResponses\) [GetAuditExportWithResponse]()
```go
func (c *ClientWithResponses) GetAuditExportWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuditExportResponse, error)
@@ -1298,7 +1395,7 @@ func (c *ClientWithResponses) GetAuditExportWithResponse(ctx context.Context, re
GetAuditExportWithResponse request returning \*GetAuditExportResponse
-### func \(\*ClientWithResponses\) [GetAuditLogByIDWithResponse]()
+### func \(\*ClientWithResponses\) [GetAuditLogByIDWithResponse]()
```go
func (c *ClientWithResponses) GetAuditLogByIDWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuditLogByIDResponse, error)
@@ -1307,7 +1404,7 @@ func (c *ClientWithResponses) GetAuditLogByIDWithResponse(ctx context.Context, i
GetAuditLogByIDWithResponse request returning \*GetAuditLogByIDResponse
-### func \(\*ClientWithResponses\) [GetAuditLogsWithResponse]()
+### func \(\*ClientWithResponses\) [GetAuditLogsWithResponse]()
```go
func (c *ClientWithResponses) GetAuditLogsWithResponse(ctx context.Context, params *GetAuditLogsParams, reqEditors ...RequestEditorFn) (*GetAuditLogsResponse, error)
@@ -1316,7 +1413,7 @@ func (c *ClientWithResponses) GetAuditLogsWithResponse(ctx context.Context, para
GetAuditLogsWithResponse request returning \*GetAuditLogsResponse
-### func \(\*ClientWithResponses\) [GetHealthReadyWithResponse]()
+### func \(\*ClientWithResponses\) [GetHealthReadyWithResponse]()
```go
func (c *ClientWithResponses) GetHealthReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthReadyResponse, error)
@@ -1325,7 +1422,7 @@ func (c *ClientWithResponses) GetHealthReadyWithResponse(ctx context.Context, re
GetHealthReadyWithResponse request returning \*GetHealthReadyResponse
-### func \(\*ClientWithResponses\) [GetHealthStatusWithResponse]()
+### func \(\*ClientWithResponses\) [GetHealthStatusWithResponse]()
```go
func (c *ClientWithResponses) GetHealthStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthStatusResponse, error)
@@ -1334,7 +1431,7 @@ func (c *ClientWithResponses) GetHealthStatusWithResponse(ctx context.Context, r
GetHealthStatusWithResponse request returning \*GetHealthStatusResponse
-### func \(\*ClientWithResponses\) [GetHealthWithResponse]()
+### func \(\*ClientWithResponses\) [GetHealthWithResponse]()
```go
func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
@@ -1343,7 +1440,7 @@ func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEdit
GetHealthWithResponse request returning \*GetHealthResponse
-### func \(\*ClientWithResponses\) [GetJobByIDWithResponse]()
+### func \(\*ClientWithResponses\) [GetJobByIDWithResponse]()
```go
func (c *ClientWithResponses) GetJobByIDWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJobByIDResponse, error)
@@ -1352,7 +1449,7 @@ func (c *ClientWithResponses) GetJobByIDWithResponse(ctx context.Context, id ope
GetJobByIDWithResponse request returning \*GetJobByIDResponse
-### func \(\*ClientWithResponses\) [GetJobStatusWithResponse]()
+### func \(\*ClientWithResponses\) [GetJobStatusWithResponse]()
```go
func (c *ClientWithResponses) GetJobStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetJobStatusResponse, error)
@@ -1361,7 +1458,7 @@ func (c *ClientWithResponses) GetJobStatusWithResponse(ctx context.Context, reqE
GetJobStatusWithResponse request returning \*GetJobStatusResponse
-### func \(\*ClientWithResponses\) [GetJobWithResponse]()
+### func \(\*ClientWithResponses\) [GetJobWithResponse]()
```go
func (c *ClientWithResponses) GetJobWithResponse(ctx context.Context, params *GetJobParams, reqEditors ...RequestEditorFn) (*GetJobResponse, error)
@@ -1370,7 +1467,7 @@ func (c *ClientWithResponses) GetJobWithResponse(ctx context.Context, params *Ge
GetJobWithResponse request returning \*GetJobResponse
-### func \(\*ClientWithResponses\) [GetNodeDiskWithResponse]()
+### func \(\*ClientWithResponses\) [GetNodeDiskWithResponse]()
```go
func (c *ClientWithResponses) GetNodeDiskWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeDiskResponse, error)
@@ -1379,7 +1476,7 @@ func (c *ClientWithResponses) GetNodeDiskWithResponse(ctx context.Context, hostn
GetNodeDiskWithResponse request returning \*GetNodeDiskResponse
-### func \(\*ClientWithResponses\) [GetNodeHostnameWithResponse]()
+### func \(\*ClientWithResponses\) [GetNodeHostnameWithResponse]()
```go
func (c *ClientWithResponses) GetNodeHostnameWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeHostnameResponse, error)
@@ -1388,7 +1485,7 @@ func (c *ClientWithResponses) GetNodeHostnameWithResponse(ctx context.Context, h
GetNodeHostnameWithResponse request returning \*GetNodeHostnameResponse
-### func \(\*ClientWithResponses\) [GetNodeLoadWithResponse]()
+### func \(\*ClientWithResponses\) [GetNodeLoadWithResponse]()
```go
func (c *ClientWithResponses) GetNodeLoadWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeLoadResponse, error)
@@ -1397,7 +1494,7 @@ func (c *ClientWithResponses) GetNodeLoadWithResponse(ctx context.Context, hostn
GetNodeLoadWithResponse request returning \*GetNodeLoadResponse
-### func \(\*ClientWithResponses\) [GetNodeMemoryWithResponse]()
+### func \(\*ClientWithResponses\) [GetNodeMemoryWithResponse]()
```go
func (c *ClientWithResponses) GetNodeMemoryWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeMemoryResponse, error)
@@ -1406,7 +1503,7 @@ func (c *ClientWithResponses) GetNodeMemoryWithResponse(ctx context.Context, hos
GetNodeMemoryWithResponse request returning \*GetNodeMemoryResponse
-### func \(\*ClientWithResponses\) [GetNodeNetworkDNSByInterfaceWithResponse]()
+### func \(\*ClientWithResponses\) [GetNodeNetworkDNSByInterfaceWithResponse]()
```go
func (c *ClientWithResponses) GetNodeNetworkDNSByInterfaceWithResponse(ctx context.Context, hostname Hostname, interfaceName string, reqEditors ...RequestEditorFn) (*GetNodeNetworkDNSByInterfaceResponse, error)
@@ -1415,7 +1512,7 @@ func (c *ClientWithResponses) GetNodeNetworkDNSByInterfaceWithResponse(ctx conte
GetNodeNetworkDNSByInterfaceWithResponse request returning \*GetNodeNetworkDNSByInterfaceResponse
-### func \(\*ClientWithResponses\) [GetNodeOSWithResponse]()
+### func \(\*ClientWithResponses\) [GetNodeOSWithResponse]()
```go
func (c *ClientWithResponses) GetNodeOSWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeOSResponse, error)
@@ -1424,7 +1521,7 @@ func (c *ClientWithResponses) GetNodeOSWithResponse(ctx context.Context, hostnam
GetNodeOSWithResponse request returning \*GetNodeOSResponse
-### func \(\*ClientWithResponses\) [GetNodeStatusWithResponse]()
+### func \(\*ClientWithResponses\) [GetNodeStatusWithResponse]()
```go
func (c *ClientWithResponses) GetNodeStatusWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeStatusResponse, error)
@@ -1433,7 +1530,7 @@ func (c *ClientWithResponses) GetNodeStatusWithResponse(ctx context.Context, hos
GetNodeStatusWithResponse request returning \*GetNodeStatusResponse
-### func \(\*ClientWithResponses\) [GetNodeUptimeWithResponse]()
+### func \(\*ClientWithResponses\) [GetNodeUptimeWithResponse]()
```go
func (c *ClientWithResponses) GetNodeUptimeWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeUptimeResponse, error)
@@ -1442,7 +1539,7 @@ func (c *ClientWithResponses) GetNodeUptimeWithResponse(ctx context.Context, hos
GetNodeUptimeWithResponse request returning \*GetNodeUptimeResponse
-### func \(\*ClientWithResponses\) [GetVersionWithResponse]()
+### func \(\*ClientWithResponses\) [GetVersionWithResponse]()
```go
func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
@@ -1451,7 +1548,7 @@ func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEdi
GetVersionWithResponse request returning \*GetVersionResponse
-### func \(\*ClientWithResponses\) [PostJobWithBodyWithResponse]()
+### func \(\*ClientWithResponses\) [PostJobWithBodyWithResponse]()
```go
func (c *ClientWithResponses) PostJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostJobResponse, error)
@@ -1460,7 +1557,7 @@ func (c *ClientWithResponses) PostJobWithBodyWithResponse(ctx context.Context, c
PostJobWithBodyWithResponse request with arbitrary body returning \*PostJobResponse
-### func \(\*ClientWithResponses\) [PostJobWithResponse]()
+### func \(\*ClientWithResponses\) [PostJobWithResponse]()
```go
func (c *ClientWithResponses) PostJobWithResponse(ctx context.Context, body PostJobJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobResponse, error)
@@ -1469,7 +1566,7 @@ func (c *ClientWithResponses) PostJobWithResponse(ctx context.Context, body Post
-### func \(\*ClientWithResponses\) [PostNodeCommandExecWithBodyWithResponse]()
+### func \(\*ClientWithResponses\) [PostNodeCommandExecWithBodyWithResponse]()
```go
func (c *ClientWithResponses) PostNodeCommandExecWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeCommandExecResponse, error)
@@ -1478,7 +1575,7 @@ func (c *ClientWithResponses) PostNodeCommandExecWithBodyWithResponse(ctx contex
PostNodeCommandExecWithBodyWithResponse request with arbitrary body returning \*PostNodeCommandExecResponse
-### func \(\*ClientWithResponses\) [PostNodeCommandExecWithResponse]()
+### func \(\*ClientWithResponses\) [PostNodeCommandExecWithResponse]()
```go
func (c *ClientWithResponses) PostNodeCommandExecWithResponse(ctx context.Context, hostname Hostname, body PostNodeCommandExecJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeCommandExecResponse, error)
@@ -1487,7 +1584,7 @@ func (c *ClientWithResponses) PostNodeCommandExecWithResponse(ctx context.Contex
-### func \(\*ClientWithResponses\) [PostNodeCommandShellWithBodyWithResponse]()
+### func \(\*ClientWithResponses\) [PostNodeCommandShellWithBodyWithResponse]()
```go
func (c *ClientWithResponses) PostNodeCommandShellWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeCommandShellResponse, error)
@@ -1496,7 +1593,7 @@ func (c *ClientWithResponses) PostNodeCommandShellWithBodyWithResponse(ctx conte
PostNodeCommandShellWithBodyWithResponse request with arbitrary body returning \*PostNodeCommandShellResponse
-### func \(\*ClientWithResponses\) [PostNodeCommandShellWithResponse]()
+### func \(\*ClientWithResponses\) [PostNodeCommandShellWithResponse]()
```go
func (c *ClientWithResponses) PostNodeCommandShellWithResponse(ctx context.Context, hostname Hostname, body PostNodeCommandShellJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeCommandShellResponse, error)
@@ -1505,7 +1602,7 @@ func (c *ClientWithResponses) PostNodeCommandShellWithResponse(ctx context.Conte
-### func \(\*ClientWithResponses\) [PostNodeNetworkPingWithBodyWithResponse]()
+### func \(\*ClientWithResponses\) [PostNodeNetworkPingWithBodyWithResponse]()
```go
func (c *ClientWithResponses) PostNodeNetworkPingWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeNetworkPingResponse, error)
@@ -1514,7 +1611,7 @@ func (c *ClientWithResponses) PostNodeNetworkPingWithBodyWithResponse(ctx contex
PostNodeNetworkPingWithBodyWithResponse request with arbitrary body returning \*PostNodeNetworkPingResponse
-### func \(\*ClientWithResponses\) [PostNodeNetworkPingWithResponse]()
+### func \(\*ClientWithResponses\) [PostNodeNetworkPingWithResponse]()
```go
func (c *ClientWithResponses) PostNodeNetworkPingWithResponse(ctx context.Context, hostname Hostname, body PostNodeNetworkPingJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeNetworkPingResponse, error)
@@ -1523,7 +1620,7 @@ func (c *ClientWithResponses) PostNodeNetworkPingWithResponse(ctx context.Contex
-### func \(\*ClientWithResponses\) [PutNodeNetworkDNSWithBodyWithResponse]()
+### func \(\*ClientWithResponses\) [PutNodeNetworkDNSWithBodyWithResponse]()
```go
func (c *ClientWithResponses) PutNodeNetworkDNSWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutNodeNetworkDNSResponse, error)
@@ -1532,7 +1629,7 @@ func (c *ClientWithResponses) PutNodeNetworkDNSWithBodyWithResponse(ctx context.
PutNodeNetworkDNSWithBodyWithResponse request with arbitrary body returning \*PutNodeNetworkDNSResponse
-### func \(\*ClientWithResponses\) [PutNodeNetworkDNSWithResponse]()
+### func \(\*ClientWithResponses\) [PutNodeNetworkDNSWithResponse]()
```go
func (c *ClientWithResponses) PutNodeNetworkDNSWithResponse(ctx context.Context, hostname Hostname, body PutNodeNetworkDNSJSONRequestBody, reqEditors ...RequestEditorFn) (*PutNodeNetworkDNSResponse, error)
@@ -1541,7 +1638,7 @@ func (c *ClientWithResponses) PutNodeNetworkDNSWithResponse(ctx context.Context,
-### func \(\*ClientWithResponses\) [RetryJobByIDWithBodyWithResponse]()
+### func \(\*ClientWithResponses\) [RetryJobByIDWithBodyWithResponse]()
```go
func (c *ClientWithResponses) RetryJobByIDWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetryJobByIDResponse, error)
@@ -1550,7 +1647,7 @@ func (c *ClientWithResponses) RetryJobByIDWithBodyWithResponse(ctx context.Conte
RetryJobByIDWithBodyWithResponse request with arbitrary body returning \*RetryJobByIDResponse
-### func \(\*ClientWithResponses\) [RetryJobByIDWithResponse]()
+### func \(\*ClientWithResponses\) [RetryJobByIDWithResponse]()
```go
func (c *ClientWithResponses) RetryJobByIDWithResponse(ctx context.Context, id openapi_types.UUID, body RetryJobByIDJSONRequestBody, reqEditors ...RequestEditorFn) (*RetryJobByIDResponse, error)
@@ -1558,8 +1655,17 @@ func (c *ClientWithResponses) RetryJobByIDWithResponse(ctx context.Context, id o
+
+### func \(\*ClientWithResponses\) [UndrainAgentWithResponse]()
+
+```go
+func (c *ClientWithResponses) UndrainAgentWithResponse(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*UndrainAgentResponse, error)
+```
+
+UndrainAgentWithResponse request returning \*UndrainAgentResponse
+
-## type [ClientWithResponsesInterface]()
+## type [ClientWithResponsesInterface]()
ClientWithResponsesInterface is the interface specification for the client with responses above.
@@ -1571,6 +1677,12 @@ type ClientWithResponsesInterface interface {
// GetAgentDetailsWithResponse request
GetAgentDetailsWithResponse(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*GetAgentDetailsResponse, error)
+ // DrainAgentWithResponse request
+ DrainAgentWithResponse(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*DrainAgentResponse, error)
+
+ // UndrainAgentWithResponse request
+ UndrainAgentWithResponse(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*UndrainAgentResponse, error)
+
// GetAuditLogsWithResponse request
GetAuditLogsWithResponse(ctx context.Context, params *GetAuditLogsParams, reqEditors ...RequestEditorFn) (*GetAuditLogsResponse, error)
@@ -1661,7 +1773,7 @@ type ClientWithResponsesInterface interface {
```
-## type [CommandExecRequest]()
+## type [CommandExecRequest]()
CommandExecRequest defines model for CommandExecRequest.
@@ -1682,7 +1794,7 @@ type CommandExecRequest struct {
```
-## type [CommandResultCollectionResponse]()
+## type [CommandResultCollectionResponse]()
CommandResultCollectionResponse defines model for CommandResultCollectionResponse.
@@ -1695,7 +1807,7 @@ type CommandResultCollectionResponse struct {
```
-## type [CommandResultItem]()
+## type [CommandResultItem]()
CommandResultItem defines model for CommandResultItem.
@@ -1725,7 +1837,7 @@ type CommandResultItem struct {
```
-## type [CommandShellRequest]()
+## type [CommandShellRequest]()
CommandShellRequest defines model for CommandShellRequest.
@@ -1743,7 +1855,7 @@ type CommandShellRequest struct {
```
-## type [ComponentHealth]()
+## type [ComponentHealth]()
ComponentHealth defines model for ComponentHealth.
@@ -1758,7 +1870,7 @@ type ComponentHealth struct {
```
-## type [ConsumerDetail]()
+## type [ConsumerDetail]()
ConsumerDetail defines model for ConsumerDetail.
@@ -1779,7 +1891,7 @@ type ConsumerDetail struct {
```
-## type [ConsumerStats]()
+## type [ConsumerStats]()
ConsumerStats defines model for ConsumerStats.
@@ -1794,7 +1906,7 @@ type ConsumerStats struct {
```
-## type [CreateJobRequest]()
+## type [CreateJobRequest]()
CreateJobRequest defines model for CreateJobRequest.
@@ -1809,7 +1921,7 @@ type CreateJobRequest struct {
```
-## type [CreateJobResponse]()
+## type [CreateJobResponse](