Documentation
¶
Overview ¶
Package gen provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Package gen contains generated code for the OSAPI REST API client.
Index ¶
- Constants
- func NewDeleteFileByNameRequest(server string, name FileName) (*http.Request, error)
- func NewDeleteJobByIDRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewDrainAgentRequest(server string, hostname string) (*http.Request, error)
- func NewGetAgentDetailsRequest(server string, hostname string) (*http.Request, error)
- func NewGetAgentRequest(server string) (*http.Request, error)
- func NewGetAuditExportRequest(server string) (*http.Request, error)
- func NewGetAuditLogByIDRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetAuditLogsRequest(server string, params *GetAuditLogsParams) (*http.Request, error)
- func NewGetFileByNameRequest(server string, name FileName) (*http.Request, error)
- func NewGetFilesRequest(server string) (*http.Request, error)
- func NewGetHealthReadyRequest(server string) (*http.Request, error)
- func NewGetHealthRequest(server string) (*http.Request, error)
- func NewGetHealthStatusRequest(server string) (*http.Request, error)
- func NewGetJobByIDRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetJobRequest(server string, params *GetJobParams) (*http.Request, error)
- func NewGetJobStatusRequest(server string) (*http.Request, error)
- func NewGetNodeDiskRequest(server string, hostname Hostname) (*http.Request, error)
- func NewGetNodeHostnameRequest(server string, hostname Hostname) (*http.Request, error)
- func NewGetNodeLoadRequest(server string, hostname Hostname) (*http.Request, error)
- func NewGetNodeMemoryRequest(server string, hostname Hostname) (*http.Request, error)
- func NewGetNodeNetworkDNSByInterfaceRequest(server string, hostname Hostname, interfaceName string) (*http.Request, error)
- func NewGetNodeOSRequest(server string, hostname Hostname) (*http.Request, error)
- func NewGetNodeStatusRequest(server string, hostname Hostname) (*http.Request, error)
- func NewGetNodeUptimeRequest(server string, hostname Hostname) (*http.Request, error)
- func NewGetVersionRequest(server string) (*http.Request, error)
- func NewPostFileRequestWithBody(server string, params *PostFileParams, contentType string, body io.Reader) (*http.Request, error)
- func NewPostJobRequest(server string, body PostJobJSONRequestBody) (*http.Request, error)
- func NewPostJobRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostNodeCommandExecRequest(server string, hostname Hostname, body PostNodeCommandExecJSONRequestBody) (*http.Request, error)
- func NewPostNodeCommandExecRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
- func NewPostNodeCommandShellRequest(server string, hostname Hostname, body PostNodeCommandShellJSONRequestBody) (*http.Request, error)
- func NewPostNodeCommandShellRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
- func NewPostNodeFileDeployRequest(server string, hostname Hostname, body PostNodeFileDeployJSONRequestBody) (*http.Request, error)
- func NewPostNodeFileDeployRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
- func NewPostNodeFileStatusRequest(server string, hostname Hostname, body PostNodeFileStatusJSONRequestBody) (*http.Request, error)
- func NewPostNodeFileStatusRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
- func NewPostNodeNetworkPingRequest(server string, hostname Hostname, body PostNodeNetworkPingJSONRequestBody) (*http.Request, error)
- func NewPostNodeNetworkPingRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
- func NewPutNodeNetworkDNSRequest(server string, hostname Hostname, body PutNodeNetworkDNSJSONRequestBody) (*http.Request, error)
- func NewPutNodeNetworkDNSRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
- func NewRetryJobByIDRequest(server string, id openapi_types.UUID, body RetryJobByIDJSONRequestBody) (*http.Request, error)
- func NewRetryJobByIDRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUndrainAgentRequest(server string, hostname string) (*http.Request, error)
- type AgentDetail
- type AgentInfo
- type AgentInfoState
- type AgentInfoStatus
- type AgentStats
- type AuditEntry
- type AuditEntryResponse
- type Client
- func (c *Client) DeleteFileByName(ctx context.Context, name FileName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteJobByID(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DrainAgent(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAgent(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAgentDetails(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAuditExport(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAuditLogByID(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAuditLogs(ctx context.Context, params *GetAuditLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFileByName(ctx context.Context, name FileName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHealthReady(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHealthStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetJob(ctx context.Context, params *GetJobParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetJobByID(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetJobStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNodeDisk(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNodeHostname(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNodeLoad(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNodeMemory(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNodeNetworkDNSByInterface(ctx context.Context, hostname Hostname, interfaceName string, ...) (*http.Response, error)
- func (c *Client) GetNodeOS(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNodeStatus(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNodeUptime(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostFileWithBody(ctx context.Context, params *PostFileParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PostJob(ctx context.Context, body PostJobJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostJobWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostNodeCommandExec(ctx context.Context, hostname Hostname, ...) (*http.Response, error)
- func (c *Client) PostNodeCommandExecWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostNodeCommandShell(ctx context.Context, hostname Hostname, ...) (*http.Response, error)
- func (c *Client) PostNodeCommandShellWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostNodeFileDeploy(ctx context.Context, hostname Hostname, body PostNodeFileDeployJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostNodeFileDeployWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostNodeFileStatus(ctx context.Context, hostname Hostname, body PostNodeFileStatusJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostNodeFileStatusWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostNodeNetworkPing(ctx context.Context, hostname Hostname, ...) (*http.Response, error)
- func (c *Client) PostNodeNetworkPingWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutNodeNetworkDNS(ctx context.Context, hostname Hostname, body PutNodeNetworkDNSJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutNodeNetworkDNSWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RetryJobByID(ctx context.Context, id openapi_types.UUID, body RetryJobByIDJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RetryJobByIDWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UndrainAgent(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteFileByNameWithResponse(ctx context.Context, name FileName, reqEditors ...RequestEditorFn) (*DeleteFileByNameResponse, error)
- func (c *ClientWithResponses) DeleteJobByIDWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteJobByIDResponse, error)
- func (c *ClientWithResponses) DrainAgentWithResponse(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*DrainAgentResponse, error)
- func (c *ClientWithResponses) GetAgentDetailsWithResponse(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*GetAgentDetailsResponse, error)
- func (c *ClientWithResponses) GetAgentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAgentResponse, error)
- func (c *ClientWithResponses) GetAuditExportWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuditExportResponse, error)
- func (c *ClientWithResponses) GetAuditLogByIDWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuditLogByIDResponse, error)
- func (c *ClientWithResponses) GetAuditLogsWithResponse(ctx context.Context, params *GetAuditLogsParams, reqEditors ...RequestEditorFn) (*GetAuditLogsResponse, error)
- func (c *ClientWithResponses) GetFileByNameWithResponse(ctx context.Context, name FileName, reqEditors ...RequestEditorFn) (*GetFileByNameResponse, error)
- func (c *ClientWithResponses) GetFilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFilesResponse, error)
- func (c *ClientWithResponses) GetHealthReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthReadyResponse, error)
- func (c *ClientWithResponses) GetHealthStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthStatusResponse, error)
- func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
- func (c *ClientWithResponses) GetJobByIDWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJobByIDResponse, error)
- func (c *ClientWithResponses) GetJobStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetJobStatusResponse, error)
- func (c *ClientWithResponses) GetJobWithResponse(ctx context.Context, params *GetJobParams, reqEditors ...RequestEditorFn) (*GetJobResponse, error)
- func (c *ClientWithResponses) GetNodeDiskWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeDiskResponse, error)
- func (c *ClientWithResponses) GetNodeHostnameWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeHostnameResponse, error)
- func (c *ClientWithResponses) GetNodeLoadWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeLoadResponse, error)
- func (c *ClientWithResponses) GetNodeMemoryWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeMemoryResponse, error)
- func (c *ClientWithResponses) GetNodeNetworkDNSByInterfaceWithResponse(ctx context.Context, hostname Hostname, interfaceName string, ...) (*GetNodeNetworkDNSByInterfaceResponse, error)
- func (c *ClientWithResponses) GetNodeOSWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeOSResponse, error)
- func (c *ClientWithResponses) GetNodeStatusWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeStatusResponse, error)
- func (c *ClientWithResponses) GetNodeUptimeWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeUptimeResponse, error)
- func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
- func (c *ClientWithResponses) PostFileWithBodyWithResponse(ctx context.Context, params *PostFileParams, contentType string, ...) (*PostFileResponse, error)
- func (c *ClientWithResponses) PostJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostJobResponse, error)
- func (c *ClientWithResponses) PostJobWithResponse(ctx context.Context, body PostJobJSONRequestBody, ...) (*PostJobResponse, error)
- func (c *ClientWithResponses) PostNodeCommandExecWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, ...) (*PostNodeCommandExecResponse, error)
- func (c *ClientWithResponses) PostNodeCommandExecWithResponse(ctx context.Context, hostname Hostname, ...) (*PostNodeCommandExecResponse, error)
- func (c *ClientWithResponses) PostNodeCommandShellWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, ...) (*PostNodeCommandShellResponse, error)
- func (c *ClientWithResponses) PostNodeCommandShellWithResponse(ctx context.Context, hostname Hostname, ...) (*PostNodeCommandShellResponse, error)
- func (c *ClientWithResponses) PostNodeFileDeployWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, ...) (*PostNodeFileDeployResponse, error)
- func (c *ClientWithResponses) PostNodeFileDeployWithResponse(ctx context.Context, hostname Hostname, body PostNodeFileDeployJSONRequestBody, ...) (*PostNodeFileDeployResponse, error)
- func (c *ClientWithResponses) PostNodeFileStatusWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, ...) (*PostNodeFileStatusResponse, error)
- func (c *ClientWithResponses) PostNodeFileStatusWithResponse(ctx context.Context, hostname Hostname, body PostNodeFileStatusJSONRequestBody, ...) (*PostNodeFileStatusResponse, error)
- func (c *ClientWithResponses) PostNodeNetworkPingWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, ...) (*PostNodeNetworkPingResponse, error)
- func (c *ClientWithResponses) PostNodeNetworkPingWithResponse(ctx context.Context, hostname Hostname, ...) (*PostNodeNetworkPingResponse, error)
- func (c *ClientWithResponses) PutNodeNetworkDNSWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, ...) (*PutNodeNetworkDNSResponse, error)
- func (c *ClientWithResponses) PutNodeNetworkDNSWithResponse(ctx context.Context, hostname Hostname, body PutNodeNetworkDNSJSONRequestBody, ...) (*PutNodeNetworkDNSResponse, error)
- func (c *ClientWithResponses) RetryJobByIDWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*RetryJobByIDResponse, error)
- func (c *ClientWithResponses) RetryJobByIDWithResponse(ctx context.Context, id openapi_types.UUID, body RetryJobByIDJSONRequestBody, ...) (*RetryJobByIDResponse, error)
- func (c *ClientWithResponses) UndrainAgentWithResponse(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*UndrainAgentResponse, error)
- type ClientWithResponsesInterface
- type CommandExecRequest
- type CommandResultCollectionResponse
- type CommandResultItem
- type CommandShellRequest
- type ComponentHealth
- type ConsumerDetail
- type ConsumerStats
- type CreateJobRequest
- type CreateJobResponse
- type DNSConfigCollectionResponse
- type DNSConfigResponse
- type DNSConfigUpdateRequest
- type DNSUpdateCollectionResponse
- type DNSUpdateResultItem
- type DNSUpdateResultItemStatus
- type DeleteFileByNameResponse
- type DeleteJobByIDResponse
- type DiskCollectionResponse
- type DiskResponse
- type DiskResultItem
- type DisksResponse
- type DrainAgentResponse
- type ErrorResponse
- type FileDeleteResponse
- type FileDeployRequest
- type FileDeployRequestContentType
- type FileDeployResponse
- type FileInfo
- type FileInfoResponse
- type FileListResponse
- type FileName
- type FileStatusRequest
- type FileStatusResponse
- type FileUploadResponse
- type GetAgentDetailsResponse
- type GetAgentResponse
- type GetAuditExportResponse
- type GetAuditLogByIDResponse
- type GetAuditLogsParams
- type GetAuditLogsResponse
- type GetFileByNameResponse
- type GetFilesResponse
- type GetHealthReadyResponse
- type GetHealthResponse
- type GetHealthStatusResponse
- type GetJobByIDResponse
- type GetJobParams
- type GetJobParamsStatus
- type GetJobResponse
- type GetJobStatusResponse
- type GetNodeDiskResponse
- type GetNodeHostnameResponse
- type GetNodeLoadResponse
- type GetNodeMemoryResponse
- type GetNodeNetworkDNSByInterfaceResponse
- type GetNodeOSResponse
- type GetNodeStatusResponse
- type GetNodeUptimeResponse
- type GetVersionResponse
- type HealthResponse
- type Hostname
- type HostnameCollectionResponse
- type HostnameResponse
- type HttpRequestDoer
- type JobDetailResponse
- type JobStats
- type KVBucketInfo
- type ListAgentsResponse
- type ListAuditResponse
- type ListJobsResponse
- type LoadAverageResponse
- type LoadCollectionResponse
- type LoadResultItem
- type MemoryCollectionResponse
- type MemoryResponse
- type MemoryResultItem
- type NATSInfo
- type NetworkInterfaceResponse
- type NetworkInterfaceResponseFamily
- type NodeCondition
- type NodeConditionType
- type NodeStatusCollectionResponse
- type NodeStatusResponse
- type OSInfoCollectionResponse
- type OSInfoResponse
- type OSInfoResultItem
- type ObjectStoreInfo
- type PingCollectionResponse
- type PingResponse
- type PostFileMultipartBody
- type PostFileMultipartBodyContentType
- type PostFileMultipartRequestBody
- type PostFileParams
- type PostFileResponse
- type PostJobJSONRequestBody
- type PostJobResponse
- type PostNodeCommandExecJSONRequestBody
- type PostNodeCommandExecResponse
- type PostNodeCommandShellJSONRequestBody
- type PostNodeCommandShellResponse
- type PostNodeFileDeployJSONRequestBody
- type PostNodeFileDeployResponse
- type PostNodeFileStatusJSONRequestBody
- type PostNodeFileStatusResponse
- type PostNodeNetworkPingJSONBody
- type PostNodeNetworkPingJSONRequestBody
- type PostNodeNetworkPingResponse
- type PutNodeNetworkDNSJSONRequestBody
- type PutNodeNetworkDNSResponse
- type QueueStatsResponse
- type ReadyResponse
- type RequestEditorFn
- type RetryJobByIDJSONRequestBody
- type RetryJobByIDResponse
- type RetryJobRequest
- type RouteResponse
- type StatusResponse
- type StreamInfo
- type TimelineEvent
- type UndrainAgentResponse
- type UptimeCollectionResponse
- type UptimeResponse
Constants ¶
const (
BearerAuthScopes = "BearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeleteFileByNameRequest ¶
NewDeleteFileByNameRequest generates requests for DeleteFileByName
func NewDeleteJobByIDRequest ¶
NewDeleteJobByIDRequest generates requests for DeleteJobByID
func NewDrainAgentRequest ¶
NewDrainAgentRequest generates requests for DrainAgent
func NewGetAgentDetailsRequest ¶
NewGetAgentDetailsRequest generates requests for GetAgentDetails
func NewGetAgentRequest ¶
NewGetAgentRequest generates requests for GetAgent
func NewGetAuditExportRequest ¶
NewGetAuditExportRequest generates requests for GetAuditExport
func NewGetAuditLogByIDRequest ¶
NewGetAuditLogByIDRequest generates requests for GetAuditLogByID
func NewGetAuditLogsRequest ¶
func NewGetAuditLogsRequest(server string, params *GetAuditLogsParams) (*http.Request, error)
NewGetAuditLogsRequest generates requests for GetAuditLogs
func NewGetFileByNameRequest ¶
NewGetFileByNameRequest generates requests for GetFileByName
func NewGetFilesRequest ¶
NewGetFilesRequest generates requests for GetFiles
func NewGetHealthReadyRequest ¶
NewGetHealthReadyRequest generates requests for GetHealthReady
func NewGetHealthRequest ¶
NewGetHealthRequest generates requests for GetHealth
func NewGetHealthStatusRequest ¶
NewGetHealthStatusRequest generates requests for GetHealthStatus
func NewGetJobByIDRequest ¶
NewGetJobByIDRequest generates requests for GetJobByID
func NewGetJobRequest ¶
func NewGetJobRequest(server string, params *GetJobParams) (*http.Request, error)
NewGetJobRequest generates requests for GetJob
func NewGetJobStatusRequest ¶
NewGetJobStatusRequest generates requests for GetJobStatus
func NewGetNodeDiskRequest ¶
NewGetNodeDiskRequest generates requests for GetNodeDisk
func NewGetNodeHostnameRequest ¶
NewGetNodeHostnameRequest generates requests for GetNodeHostname
func NewGetNodeLoadRequest ¶
NewGetNodeLoadRequest generates requests for GetNodeLoad
func NewGetNodeMemoryRequest ¶
NewGetNodeMemoryRequest generates requests for GetNodeMemory
func NewGetNodeNetworkDNSByInterfaceRequest ¶
func NewGetNodeNetworkDNSByInterfaceRequest(server string, hostname Hostname, interfaceName string) (*http.Request, error)
NewGetNodeNetworkDNSByInterfaceRequest generates requests for GetNodeNetworkDNSByInterface
func NewGetNodeOSRequest ¶
NewGetNodeOSRequest generates requests for GetNodeOS
func NewGetNodeStatusRequest ¶
NewGetNodeStatusRequest generates requests for GetNodeStatus
func NewGetNodeUptimeRequest ¶
NewGetNodeUptimeRequest generates requests for GetNodeUptime
func NewGetVersionRequest ¶
NewGetVersionRequest generates requests for GetVersion
func NewPostFileRequestWithBody ¶
func NewPostFileRequestWithBody(server string, params *PostFileParams, contentType string, body io.Reader) (*http.Request, error)
NewPostFileRequestWithBody generates requests for PostFile with any type of body
func NewPostJobRequest ¶
func NewPostJobRequest(server string, body PostJobJSONRequestBody) (*http.Request, error)
NewPostJobRequest calls the generic PostJob builder with application/json body
func NewPostJobRequestWithBody ¶
func NewPostJobRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostJobRequestWithBody generates requests for PostJob with any type of body
func NewPostNodeCommandExecRequest ¶
func NewPostNodeCommandExecRequest(server string, hostname Hostname, body PostNodeCommandExecJSONRequestBody) (*http.Request, error)
NewPostNodeCommandExecRequest calls the generic PostNodeCommandExec builder with application/json body
func NewPostNodeCommandExecRequestWithBody ¶
func NewPostNodeCommandExecRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
NewPostNodeCommandExecRequestWithBody generates requests for PostNodeCommandExec with any type of body
func NewPostNodeCommandShellRequest ¶
func NewPostNodeCommandShellRequest(server string, hostname Hostname, body PostNodeCommandShellJSONRequestBody) (*http.Request, error)
NewPostNodeCommandShellRequest calls the generic PostNodeCommandShell builder with application/json body
func NewPostNodeCommandShellRequestWithBody ¶
func NewPostNodeCommandShellRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
NewPostNodeCommandShellRequestWithBody generates requests for PostNodeCommandShell with any type of body
func NewPostNodeFileDeployRequest ¶
func NewPostNodeFileDeployRequest(server string, hostname Hostname, body PostNodeFileDeployJSONRequestBody) (*http.Request, error)
NewPostNodeFileDeployRequest calls the generic PostNodeFileDeploy builder with application/json body
func NewPostNodeFileDeployRequestWithBody ¶
func NewPostNodeFileDeployRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
NewPostNodeFileDeployRequestWithBody generates requests for PostNodeFileDeploy with any type of body
func NewPostNodeFileStatusRequest ¶
func NewPostNodeFileStatusRequest(server string, hostname Hostname, body PostNodeFileStatusJSONRequestBody) (*http.Request, error)
NewPostNodeFileStatusRequest calls the generic PostNodeFileStatus builder with application/json body
func NewPostNodeFileStatusRequestWithBody ¶
func NewPostNodeFileStatusRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
NewPostNodeFileStatusRequestWithBody generates requests for PostNodeFileStatus with any type of body
func NewPostNodeNetworkPingRequest ¶
func NewPostNodeNetworkPingRequest(server string, hostname Hostname, body PostNodeNetworkPingJSONRequestBody) (*http.Request, error)
NewPostNodeNetworkPingRequest calls the generic PostNodeNetworkPing builder with application/json body
func NewPostNodeNetworkPingRequestWithBody ¶
func NewPostNodeNetworkPingRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
NewPostNodeNetworkPingRequestWithBody generates requests for PostNodeNetworkPing with any type of body
func NewPutNodeNetworkDNSRequest ¶
func NewPutNodeNetworkDNSRequest(server string, hostname Hostname, body PutNodeNetworkDNSJSONRequestBody) (*http.Request, error)
NewPutNodeNetworkDNSRequest calls the generic PutNodeNetworkDNS builder with application/json body
func NewPutNodeNetworkDNSRequestWithBody ¶
func NewPutNodeNetworkDNSRequestWithBody(server string, hostname Hostname, contentType string, body io.Reader) (*http.Request, error)
NewPutNodeNetworkDNSRequestWithBody generates requests for PutNodeNetworkDNS with any type of body
func NewRetryJobByIDRequest ¶
func NewRetryJobByIDRequest(server string, id openapi_types.UUID, body RetryJobByIDJSONRequestBody) (*http.Request, error)
NewRetryJobByIDRequest calls the generic RetryJobByID builder with application/json body
Types ¶
type AgentDetail ¶
type AgentDetail struct {
// Hostname Agent hostname.
Hostname string `json:"hostname"`
// Labels Formatted label string.
Labels *string `json:"labels,omitempty"`
// Registered Time since last heartbeat registration.
Registered string `json:"registered"`
}
AgentDetail defines model for AgentDetail.
type AgentInfo ¶
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"`
// Facts Extended facts from additional providers.
Facts *map[string]interface{} `json:"facts,omitempty"`
// Fqdn Fully qualified domain name.
Fqdn *string `json:"fqdn,omitempty"`
// Hostname The hostname of the agent.
Hostname string `json:"hostname"`
Interfaces *[]NetworkInterfaceResponse `json:"interfaces,omitempty"`
// KernelVersion OS kernel version.
KernelVersion *string `json:"kernel_version,omitempty"`
// Labels Key-value labels configured on the agent.
Labels *map[string]string `json:"labels,omitempty"`
// LoadAverage The system load averages for 1, 5, and 15 minutes.
LoadAverage *LoadAverageResponse `json:"load_average,omitempty"`
// Memory Memory usage information.
Memory *MemoryResponse `json:"memory,omitempty"`
// OsInfo Operating system information.
OsInfo *OSInfoResponse `json:"os_info,omitempty"`
// PackageMgr Package manager.
PackageMgr *string `json:"package_mgr,omitempty"`
// PrimaryInterface Name of the interface used for the default route.
PrimaryInterface *string `json:"primary_interface,omitempty"`
// RegisteredAt When the agent last refreshed its heartbeat.
RegisteredAt *time.Time `json:"registered_at,omitempty"`
// Routes Network routing table entries.
Routes *[]RouteResponse `json:"routes,omitempty"`
// ServiceMgr Init system.
ServiceMgr *string `json:"service_mgr,omitempty"`
// 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"`
}
AgentInfo defines model for AgentInfo.
type AgentInfoState ¶
type AgentInfoState string
AgentInfoState Agent scheduling state.
const ( AgentInfoStateCordoned AgentInfoState = "Cordoned" AgentInfoStateDraining AgentInfoState = "Draining" AgentInfoStateReady AgentInfoState = "Ready" )
Defines values for AgentInfoState.
type AgentInfoStatus ¶
type AgentInfoStatus string
AgentInfoStatus The current status of the agent.
const ( AgentInfoStatusNotReady AgentInfoStatus = "NotReady" AgentInfoStatusReady AgentInfoStatus = "Ready" )
Defines values for AgentInfoStatus.
type AgentStats ¶
type AgentStats struct {
// Agents Per-agent registration details.
Agents *[]AgentDetail `json:"agents,omitempty"`
// Ready Number of agents with Ready status.
Ready int `json:"ready"`
// Total Total number of registered agents.
Total int `json:"total"`
}
AgentStats defines model for AgentStats.
type AuditEntry ¶
type AuditEntry struct {
// DurationMs Request duration in milliseconds.
DurationMs int64 `json:"duration_ms"`
// Id Unique identifier for the audit entry.
Id openapi_types.UUID `json:"id"`
// Method HTTP method.
Method string `json:"method"`
// OperationId OpenAPI operation ID.
OperationId *string `json:"operation_id,omitempty"`
// Path Request URL path.
Path string `json:"path"`
// ResponseCode HTTP response status code.
ResponseCode int `json:"response_code"`
// Roles Roles from the JWT token.
Roles []string `json:"roles"`
// SourceIp Client IP address.
SourceIp string `json:"source_ip"`
// Timestamp When the request was processed.
Timestamp time.Time `json:"timestamp"`
// User Authenticated user (JWT subject).
User string `json:"user"`
}
AuditEntry defines model for AuditEntry.
type AuditEntryResponse ¶
type AuditEntryResponse struct {
Entry AuditEntry `json:"entry"`
}
AuditEntryResponse defines model for AuditEntryResponse.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) DeleteFileByName ¶
func (*Client) DeleteJobByID ¶
func (c *Client) DeleteJobByID(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DrainAgent ¶
func (*Client) GetAgentDetails ¶
func (*Client) GetAuditExport ¶
func (*Client) GetAuditLogByID ¶
func (c *Client) GetAuditLogByID(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAuditLogs ¶
func (c *Client) GetAuditLogs(ctx context.Context, params *GetAuditLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFileByName ¶
func (*Client) GetHealthReady ¶
func (*Client) GetHealthStatus ¶
func (*Client) GetJob ¶
func (c *Client) GetJob(ctx context.Context, params *GetJobParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetJobByID ¶
func (c *Client) GetJobByID(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetJobStatus ¶
func (*Client) GetNodeDisk ¶
func (*Client) GetNodeHostname ¶
func (*Client) GetNodeLoad ¶
func (*Client) GetNodeMemory ¶
func (*Client) GetNodeNetworkDNSByInterface ¶
func (*Client) GetNodeStatus ¶
func (*Client) GetNodeUptime ¶
func (*Client) GetVersion ¶
func (*Client) PostFileWithBody ¶
func (*Client) PostJob ¶
func (c *Client) PostJob(ctx context.Context, body PostJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostJobWithBody ¶
func (*Client) PostNodeCommandExec ¶
func (c *Client) PostNodeCommandExec(ctx context.Context, hostname Hostname, body PostNodeCommandExecJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostNodeCommandExecWithBody ¶
func (*Client) PostNodeCommandShell ¶
func (c *Client) PostNodeCommandShell(ctx context.Context, hostname Hostname, body PostNodeCommandShellJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostNodeCommandShellWithBody ¶
func (*Client) PostNodeFileDeploy ¶
func (c *Client) PostNodeFileDeploy(ctx context.Context, hostname Hostname, body PostNodeFileDeployJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostNodeFileDeployWithBody ¶
func (*Client) PostNodeFileStatus ¶
func (c *Client) PostNodeFileStatus(ctx context.Context, hostname Hostname, body PostNodeFileStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostNodeFileStatusWithBody ¶
func (*Client) PostNodeNetworkPing ¶
func (c *Client) PostNodeNetworkPing(ctx context.Context, hostname Hostname, body PostNodeNetworkPingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostNodeNetworkPingWithBody ¶
func (*Client) PutNodeNetworkDNS ¶
func (c *Client) PutNodeNetworkDNS(ctx context.Context, hostname Hostname, body PutNodeNetworkDNSJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutNodeNetworkDNSWithBody ¶
func (*Client) RetryJobByID ¶
func (c *Client) RetryJobByID(ctx context.Context, id openapi_types.UUID, body RetryJobByIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RetryJobByIDWithBody ¶
func (*Client) UndrainAgent ¶
type ClientInterface ¶
type ClientInterface interface {
// GetAgent request
GetAgent(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// 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)
// GetAuditExport request
GetAuditExport(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAuditLogByID request
GetAuditLogByID(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFiles request
GetFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostFileWithBody request with any body
PostFileWithBody(ctx context.Context, params *PostFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteFileByName request
DeleteFileByName(ctx context.Context, name FileName, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFileByName request
GetFileByName(ctx context.Context, name FileName, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHealth request
GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHealthReady request
GetHealthReady(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHealthStatus request
GetHealthStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetJob request
GetJob(ctx context.Context, params *GetJobParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostJobWithBody request with any body
PostJobWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostJob(ctx context.Context, body PostJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetJobStatus request
GetJobStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteJobByID request
DeleteJobByID(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetJobByID request
GetJobByID(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// RetryJobByIDWithBody request with any body
RetryJobByIDWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RetryJobByID(ctx context.Context, id openapi_types.UUID, body RetryJobByIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNodeStatus request
GetNodeStatus(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostNodeCommandExecWithBody request with any body
PostNodeCommandExecWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostNodeCommandExec(ctx context.Context, hostname Hostname, body PostNodeCommandExecJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostNodeCommandShellWithBody request with any body
PostNodeCommandShellWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostNodeCommandShell(ctx context.Context, hostname Hostname, body PostNodeCommandShellJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNodeDisk request
GetNodeDisk(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostNodeFileDeployWithBody request with any body
PostNodeFileDeployWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostNodeFileDeploy(ctx context.Context, hostname Hostname, body PostNodeFileDeployJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostNodeFileStatusWithBody request with any body
PostNodeFileStatusWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostNodeFileStatus(ctx context.Context, hostname Hostname, body PostNodeFileStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNodeHostname request
GetNodeHostname(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNodeLoad request
GetNodeLoad(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNodeMemory request
GetNodeMemory(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutNodeNetworkDNSWithBody request with any body
PutNodeNetworkDNSWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutNodeNetworkDNS(ctx context.Context, hostname Hostname, body PutNodeNetworkDNSJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNodeNetworkDNSByInterface request
GetNodeNetworkDNSByInterface(ctx context.Context, hostname Hostname, interfaceName string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostNodeNetworkPingWithBody request with any body
PostNodeNetworkPingWithBody(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostNodeNetworkPing(ctx context.Context, hostname Hostname, body PostNodeNetworkPingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNodeOS request
GetNodeOS(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNodeUptime request
GetNodeUptime(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVersion request
GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
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(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 struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteFileByNameWithResponse ¶
func (c *ClientWithResponses) DeleteFileByNameWithResponse(ctx context.Context, name FileName, reqEditors ...RequestEditorFn) (*DeleteFileByNameResponse, error)
DeleteFileByNameWithResponse request returning *DeleteFileByNameResponse
func (*ClientWithResponses) DeleteJobByIDWithResponse ¶
func (c *ClientWithResponses) DeleteJobByIDWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteJobByIDResponse, error)
DeleteJobByIDWithResponse request returning *DeleteJobByIDResponse
func (*ClientWithResponses) DrainAgentWithResponse ¶
func (c *ClientWithResponses) DrainAgentWithResponse(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*DrainAgentResponse, error)
DrainAgentWithResponse request returning *DrainAgentResponse
func (*ClientWithResponses) GetAgentDetailsWithResponse ¶
func (c *ClientWithResponses) GetAgentDetailsWithResponse(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*GetAgentDetailsResponse, error)
GetAgentDetailsWithResponse request returning *GetAgentDetailsResponse
func (*ClientWithResponses) GetAgentWithResponse ¶
func (c *ClientWithResponses) GetAgentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAgentResponse, error)
GetAgentWithResponse request returning *GetAgentResponse
func (*ClientWithResponses) GetAuditExportWithResponse ¶
func (c *ClientWithResponses) GetAuditExportWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuditExportResponse, error)
GetAuditExportWithResponse request returning *GetAuditExportResponse
func (*ClientWithResponses) GetAuditLogByIDWithResponse ¶
func (c *ClientWithResponses) GetAuditLogByIDWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuditLogByIDResponse, error)
GetAuditLogByIDWithResponse request returning *GetAuditLogByIDResponse
func (*ClientWithResponses) GetAuditLogsWithResponse ¶
func (c *ClientWithResponses) GetAuditLogsWithResponse(ctx context.Context, params *GetAuditLogsParams, reqEditors ...RequestEditorFn) (*GetAuditLogsResponse, error)
GetAuditLogsWithResponse request returning *GetAuditLogsResponse
func (*ClientWithResponses) GetFileByNameWithResponse ¶
func (c *ClientWithResponses) GetFileByNameWithResponse(ctx context.Context, name FileName, reqEditors ...RequestEditorFn) (*GetFileByNameResponse, error)
GetFileByNameWithResponse request returning *GetFileByNameResponse
func (*ClientWithResponses) GetFilesWithResponse ¶
func (c *ClientWithResponses) GetFilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFilesResponse, error)
GetFilesWithResponse request returning *GetFilesResponse
func (*ClientWithResponses) GetHealthReadyWithResponse ¶
func (c *ClientWithResponses) GetHealthReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthReadyResponse, error)
GetHealthReadyWithResponse request returning *GetHealthReadyResponse
func (*ClientWithResponses) GetHealthStatusWithResponse ¶
func (c *ClientWithResponses) GetHealthStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthStatusResponse, error)
GetHealthStatusWithResponse request returning *GetHealthStatusResponse
func (*ClientWithResponses) GetHealthWithResponse ¶
func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
GetHealthWithResponse request returning *GetHealthResponse
func (*ClientWithResponses) GetJobByIDWithResponse ¶
func (c *ClientWithResponses) GetJobByIDWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJobByIDResponse, error)
GetJobByIDWithResponse request returning *GetJobByIDResponse
func (*ClientWithResponses) GetJobStatusWithResponse ¶
func (c *ClientWithResponses) GetJobStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetJobStatusResponse, error)
GetJobStatusWithResponse request returning *GetJobStatusResponse
func (*ClientWithResponses) GetJobWithResponse ¶
func (c *ClientWithResponses) GetJobWithResponse(ctx context.Context, params *GetJobParams, reqEditors ...RequestEditorFn) (*GetJobResponse, error)
GetJobWithResponse request returning *GetJobResponse
func (*ClientWithResponses) GetNodeDiskWithResponse ¶
func (c *ClientWithResponses) GetNodeDiskWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeDiskResponse, error)
GetNodeDiskWithResponse request returning *GetNodeDiskResponse
func (*ClientWithResponses) GetNodeHostnameWithResponse ¶
func (c *ClientWithResponses) GetNodeHostnameWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeHostnameResponse, error)
GetNodeHostnameWithResponse request returning *GetNodeHostnameResponse
func (*ClientWithResponses) GetNodeLoadWithResponse ¶
func (c *ClientWithResponses) GetNodeLoadWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeLoadResponse, error)
GetNodeLoadWithResponse request returning *GetNodeLoadResponse
func (*ClientWithResponses) GetNodeMemoryWithResponse ¶
func (c *ClientWithResponses) GetNodeMemoryWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeMemoryResponse, error)
GetNodeMemoryWithResponse request returning *GetNodeMemoryResponse
func (*ClientWithResponses) GetNodeNetworkDNSByInterfaceWithResponse ¶
func (c *ClientWithResponses) GetNodeNetworkDNSByInterfaceWithResponse(ctx context.Context, hostname Hostname, interfaceName string, reqEditors ...RequestEditorFn) (*GetNodeNetworkDNSByInterfaceResponse, error)
GetNodeNetworkDNSByInterfaceWithResponse request returning *GetNodeNetworkDNSByInterfaceResponse
func (*ClientWithResponses) GetNodeOSWithResponse ¶
func (c *ClientWithResponses) GetNodeOSWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeOSResponse, error)
GetNodeOSWithResponse request returning *GetNodeOSResponse
func (*ClientWithResponses) GetNodeStatusWithResponse ¶
func (c *ClientWithResponses) GetNodeStatusWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeStatusResponse, error)
GetNodeStatusWithResponse request returning *GetNodeStatusResponse
func (*ClientWithResponses) GetNodeUptimeWithResponse ¶
func (c *ClientWithResponses) GetNodeUptimeWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeUptimeResponse, error)
GetNodeUptimeWithResponse request returning *GetNodeUptimeResponse
func (*ClientWithResponses) GetVersionWithResponse ¶
func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
GetVersionWithResponse request returning *GetVersionResponse
func (*ClientWithResponses) PostFileWithBodyWithResponse ¶
func (c *ClientWithResponses) PostFileWithBodyWithResponse(ctx context.Context, params *PostFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostFileResponse, error)
PostFileWithBodyWithResponse request with arbitrary body returning *PostFileResponse
func (*ClientWithResponses) PostJobWithBodyWithResponse ¶
func (c *ClientWithResponses) PostJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostJobResponse, error)
PostJobWithBodyWithResponse request with arbitrary body returning *PostJobResponse
func (*ClientWithResponses) PostJobWithResponse ¶
func (c *ClientWithResponses) PostJobWithResponse(ctx context.Context, body PostJobJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobResponse, error)
func (*ClientWithResponses) PostNodeCommandExecWithBodyWithResponse ¶
func (c *ClientWithResponses) PostNodeCommandExecWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeCommandExecResponse, error)
PostNodeCommandExecWithBodyWithResponse request with arbitrary body returning *PostNodeCommandExecResponse
func (*ClientWithResponses) PostNodeCommandExecWithResponse ¶
func (c *ClientWithResponses) PostNodeCommandExecWithResponse(ctx context.Context, hostname Hostname, body PostNodeCommandExecJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeCommandExecResponse, error)
func (*ClientWithResponses) PostNodeCommandShellWithBodyWithResponse ¶
func (c *ClientWithResponses) PostNodeCommandShellWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeCommandShellResponse, error)
PostNodeCommandShellWithBodyWithResponse request with arbitrary body returning *PostNodeCommandShellResponse
func (*ClientWithResponses) PostNodeCommandShellWithResponse ¶
func (c *ClientWithResponses) PostNodeCommandShellWithResponse(ctx context.Context, hostname Hostname, body PostNodeCommandShellJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeCommandShellResponse, error)
func (*ClientWithResponses) PostNodeFileDeployWithBodyWithResponse ¶
func (c *ClientWithResponses) PostNodeFileDeployWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeFileDeployResponse, error)
PostNodeFileDeployWithBodyWithResponse request with arbitrary body returning *PostNodeFileDeployResponse
func (*ClientWithResponses) PostNodeFileDeployWithResponse ¶
func (c *ClientWithResponses) PostNodeFileDeployWithResponse(ctx context.Context, hostname Hostname, body PostNodeFileDeployJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeFileDeployResponse, error)
func (*ClientWithResponses) PostNodeFileStatusWithBodyWithResponse ¶
func (c *ClientWithResponses) PostNodeFileStatusWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeFileStatusResponse, error)
PostNodeFileStatusWithBodyWithResponse request with arbitrary body returning *PostNodeFileStatusResponse
func (*ClientWithResponses) PostNodeFileStatusWithResponse ¶
func (c *ClientWithResponses) PostNodeFileStatusWithResponse(ctx context.Context, hostname Hostname, body PostNodeFileStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeFileStatusResponse, error)
func (*ClientWithResponses) PostNodeNetworkPingWithBodyWithResponse ¶
func (c *ClientWithResponses) PostNodeNetworkPingWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeNetworkPingResponse, error)
PostNodeNetworkPingWithBodyWithResponse request with arbitrary body returning *PostNodeNetworkPingResponse
func (*ClientWithResponses) PostNodeNetworkPingWithResponse ¶
func (c *ClientWithResponses) PostNodeNetworkPingWithResponse(ctx context.Context, hostname Hostname, body PostNodeNetworkPingJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeNetworkPingResponse, error)
func (*ClientWithResponses) PutNodeNetworkDNSWithBodyWithResponse ¶
func (c *ClientWithResponses) PutNodeNetworkDNSWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutNodeNetworkDNSResponse, error)
PutNodeNetworkDNSWithBodyWithResponse request with arbitrary body returning *PutNodeNetworkDNSResponse
func (*ClientWithResponses) PutNodeNetworkDNSWithResponse ¶
func (c *ClientWithResponses) PutNodeNetworkDNSWithResponse(ctx context.Context, hostname Hostname, body PutNodeNetworkDNSJSONRequestBody, reqEditors ...RequestEditorFn) (*PutNodeNetworkDNSResponse, error)
func (*ClientWithResponses) RetryJobByIDWithBodyWithResponse ¶
func (c *ClientWithResponses) RetryJobByIDWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetryJobByIDResponse, error)
RetryJobByIDWithBodyWithResponse request with arbitrary body returning *RetryJobByIDResponse
func (*ClientWithResponses) RetryJobByIDWithResponse ¶
func (c *ClientWithResponses) RetryJobByIDWithResponse(ctx context.Context, id openapi_types.UUID, body RetryJobByIDJSONRequestBody, reqEditors ...RequestEditorFn) (*RetryJobByIDResponse, error)
func (*ClientWithResponses) UndrainAgentWithResponse ¶
func (c *ClientWithResponses) UndrainAgentWithResponse(ctx context.Context, hostname string, reqEditors ...RequestEditorFn) (*UndrainAgentResponse, error)
UndrainAgentWithResponse request returning *UndrainAgentResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetAgentWithResponse request
GetAgentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAgentResponse, error)
// 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)
// GetAuditExportWithResponse request
GetAuditExportWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuditExportResponse, error)
// GetAuditLogByIDWithResponse request
GetAuditLogByIDWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuditLogByIDResponse, error)
// GetFilesWithResponse request
GetFilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFilesResponse, error)
// PostFileWithBodyWithResponse request with any body
PostFileWithBodyWithResponse(ctx context.Context, params *PostFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostFileResponse, error)
// DeleteFileByNameWithResponse request
DeleteFileByNameWithResponse(ctx context.Context, name FileName, reqEditors ...RequestEditorFn) (*DeleteFileByNameResponse, error)
// GetFileByNameWithResponse request
GetFileByNameWithResponse(ctx context.Context, name FileName, reqEditors ...RequestEditorFn) (*GetFileByNameResponse, error)
// GetHealthWithResponse request
GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
// GetHealthReadyWithResponse request
GetHealthReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthReadyResponse, error)
// GetHealthStatusWithResponse request
GetHealthStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthStatusResponse, error)
// GetJobWithResponse request
GetJobWithResponse(ctx context.Context, params *GetJobParams, reqEditors ...RequestEditorFn) (*GetJobResponse, error)
// PostJobWithBodyWithResponse request with any body
PostJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostJobResponse, error)
PostJobWithResponse(ctx context.Context, body PostJobJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobResponse, error)
// GetJobStatusWithResponse request
GetJobStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetJobStatusResponse, error)
// DeleteJobByIDWithResponse request
DeleteJobByIDWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteJobByIDResponse, error)
// GetJobByIDWithResponse request
GetJobByIDWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJobByIDResponse, error)
// RetryJobByIDWithBodyWithResponse request with any body
RetryJobByIDWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetryJobByIDResponse, error)
RetryJobByIDWithResponse(ctx context.Context, id openapi_types.UUID, body RetryJobByIDJSONRequestBody, reqEditors ...RequestEditorFn) (*RetryJobByIDResponse, error)
// GetNodeStatusWithResponse request
GetNodeStatusWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeStatusResponse, error)
// PostNodeCommandExecWithBodyWithResponse request with any body
PostNodeCommandExecWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeCommandExecResponse, error)
PostNodeCommandExecWithResponse(ctx context.Context, hostname Hostname, body PostNodeCommandExecJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeCommandExecResponse, error)
// PostNodeCommandShellWithBodyWithResponse request with any body
PostNodeCommandShellWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeCommandShellResponse, error)
PostNodeCommandShellWithResponse(ctx context.Context, hostname Hostname, body PostNodeCommandShellJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeCommandShellResponse, error)
// GetNodeDiskWithResponse request
GetNodeDiskWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeDiskResponse, error)
// PostNodeFileDeployWithBodyWithResponse request with any body
PostNodeFileDeployWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeFileDeployResponse, error)
PostNodeFileDeployWithResponse(ctx context.Context, hostname Hostname, body PostNodeFileDeployJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeFileDeployResponse, error)
// PostNodeFileStatusWithBodyWithResponse request with any body
PostNodeFileStatusWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeFileStatusResponse, error)
PostNodeFileStatusWithResponse(ctx context.Context, hostname Hostname, body PostNodeFileStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeFileStatusResponse, error)
// GetNodeHostnameWithResponse request
GetNodeHostnameWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeHostnameResponse, error)
// GetNodeLoadWithResponse request
GetNodeLoadWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeLoadResponse, error)
// GetNodeMemoryWithResponse request
GetNodeMemoryWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeMemoryResponse, error)
// PutNodeNetworkDNSWithBodyWithResponse request with any body
PutNodeNetworkDNSWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutNodeNetworkDNSResponse, error)
PutNodeNetworkDNSWithResponse(ctx context.Context, hostname Hostname, body PutNodeNetworkDNSJSONRequestBody, reqEditors ...RequestEditorFn) (*PutNodeNetworkDNSResponse, error)
// GetNodeNetworkDNSByInterfaceWithResponse request
GetNodeNetworkDNSByInterfaceWithResponse(ctx context.Context, hostname Hostname, interfaceName string, reqEditors ...RequestEditorFn) (*GetNodeNetworkDNSByInterfaceResponse, error)
// PostNodeNetworkPingWithBodyWithResponse request with any body
PostNodeNetworkPingWithBodyWithResponse(ctx context.Context, hostname Hostname, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNodeNetworkPingResponse, error)
PostNodeNetworkPingWithResponse(ctx context.Context, hostname Hostname, body PostNodeNetworkPingJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNodeNetworkPingResponse, error)
// GetNodeOSWithResponse request
GetNodeOSWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeOSResponse, error)
// GetNodeUptimeWithResponse request
GetNodeUptimeWithResponse(ctx context.Context, hostname Hostname, reqEditors ...RequestEditorFn) (*GetNodeUptimeResponse, error)
// GetVersionWithResponse request
GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CommandExecRequest ¶
type CommandExecRequest struct {
// Args Command arguments.
Args *[]string `json:"args,omitempty"`
// Command The executable name or path.
Command string `json:"command" validate:"required,min=1"`
// Cwd Working directory for the command.
Cwd *string `json:"cwd,omitempty"`
// Timeout Timeout in seconds (default 30, max 300).
Timeout *int `json:"timeout,omitempty" validate:"omitempty,min=1,max=300"`
}
CommandExecRequest defines model for CommandExecRequest.
type CommandResultCollectionResponse ¶
type CommandResultCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []CommandResultItem `json:"results"`
}
CommandResultCollectionResponse defines model for CommandResultCollectionResponse.
type CommandResultItem ¶
type CommandResultItem struct {
// Changed Whether the command modified system state.
Changed *bool `json:"changed,omitempty"`
// DurationMs Execution time in milliseconds.
DurationMs *int64 `json:"duration_ms,omitempty"`
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// ExitCode Exit code of the command.
ExitCode *int `json:"exit_code,omitempty"`
// Hostname The hostname of the agent that executed the command.
Hostname string `json:"hostname"`
// Stderr Standard error output of the command.
Stderr *string `json:"stderr,omitempty"`
// Stdout Standard output of the command.
Stdout *string `json:"stdout,omitempty"`
}
CommandResultItem defines model for CommandResultItem.
type CommandShellRequest ¶
type CommandShellRequest struct {
// Command The full shell command string.
Command string `json:"command" validate:"required,min=1"`
// Cwd Working directory for the command.
Cwd *string `json:"cwd,omitempty"`
// Timeout Timeout in seconds (default 30, max 300).
Timeout *int `json:"timeout,omitempty" validate:"omitempty,min=1,max=300"`
}
CommandShellRequest defines model for CommandShellRequest.
type ComponentHealth ¶
type ComponentHealth struct {
// Error Error message when component is unhealthy.
Error *string `json:"error,omitempty"`
// Status Component health status.
Status string `json:"status"`
}
ComponentHealth defines model for ComponentHealth.
type ConsumerDetail ¶
type ConsumerDetail struct {
// AckPending Messages delivered but not yet acknowledged.
AckPending int `json:"ack_pending"`
// Name Consumer name.
Name string `json:"name"`
// Pending Messages not yet delivered.
Pending int `json:"pending"`
// Redelivered Messages redelivered and not yet acknowledged.
Redelivered int `json:"redelivered"`
}
ConsumerDetail defines model for ConsumerDetail.
type ConsumerStats ¶
type ConsumerStats struct {
// Consumers Per-consumer details.
Consumers *[]ConsumerDetail `json:"consumers,omitempty"`
// Total Total number of JetStream consumers.
Total int `json:"total"`
}
ConsumerStats defines model for ConsumerStats.
type CreateJobRequest ¶
type CreateJobRequest struct {
// Operation The operation to perform, as a JSON object.
Operation map[string]interface{} `json:"operation" validate:"required"`
// TargetHostname The target hostname for routing (_any, _all, or specific hostname).
TargetHostname string `json:"target_hostname" validate:"required,min=1,valid_target"`
}
CreateJobRequest defines model for CreateJobRequest.
type CreateJobResponse ¶
type CreateJobResponse struct {
// JobId Unique identifier for the created job.
JobId openapi_types.UUID `json:"job_id"`
// Revision The KV revision number.
Revision *int64 `json:"revision,omitempty"`
// Status Initial status of the job.
Status string `json:"status"`
// Timestamp Creation timestamp.
Timestamp *string `json:"timestamp,omitempty"`
}
CreateJobResponse defines model for CreateJobResponse.
type DNSConfigCollectionResponse ¶
type DNSConfigCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []DNSConfigResponse `json:"results"`
}
DNSConfigCollectionResponse defines model for DNSConfigCollectionResponse.
type DNSConfigResponse ¶
type DNSConfigResponse struct {
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname The hostname of the agent that served this config.
Hostname string `json:"hostname"`
// SearchDomains List of search domains.
SearchDomains *[]string `json:"search_domains,omitempty"`
// Servers List of configured DNS servers.
Servers *[]string `json:"servers,omitempty"`
}
DNSConfigResponse defines model for DNSConfigResponse.
type DNSConfigUpdateRequest ¶
type DNSConfigUpdateRequest struct {
// InterfaceName The name of the network interface to apply DNS configuration to. Accepts alphanumeric names or @fact. references.
InterfaceName string `json:"interface_name" validate:"required,alphanum_or_fact"`
// SearchDomains New list of search domains to configure.
SearchDomains *[]string `json:"search_domains,omitempty" validate:"required_without=Servers,omitempty,dive,hostname,min=1"`
// Servers New list of DNS servers to configure.
Servers *[]string `json:"servers,omitempty" validate:"required_without=SearchDomains,omitempty,dive,ip,min=1"`
}
DNSConfigUpdateRequest defines model for DNSConfigUpdateRequest.
type DNSUpdateCollectionResponse ¶
type DNSUpdateCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []DNSUpdateResultItem `json:"results"`
}
DNSUpdateCollectionResponse defines model for DNSUpdateCollectionResponse.
type DNSUpdateResultItem ¶
type DNSUpdateResultItem struct {
// Changed Whether the DNS configuration was actually modified.
Changed *bool `json:"changed,omitempty"`
Error *string `json:"error,omitempty"`
Hostname string `json:"hostname"`
Status DNSUpdateResultItemStatus `json:"status"`
}
DNSUpdateResultItem defines model for DNSUpdateResultItem.
type DNSUpdateResultItemStatus ¶
type DNSUpdateResultItemStatus string
DNSUpdateResultItemStatus defines model for DNSUpdateResultItem.Status.
const ( DNSUpdateResultItemStatusFailed DNSUpdateResultItemStatus = "failed" DNSUpdateResultItemStatusOk DNSUpdateResultItemStatus = "ok" )
Defines values for DNSUpdateResultItemStatus.
type DeleteFileByNameResponse ¶
type DeleteFileByNameResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *FileDeleteResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseDeleteFileByNameResponse ¶
func ParseDeleteFileByNameResponse(rsp *http.Response) (*DeleteFileByNameResponse, error)
ParseDeleteFileByNameResponse parses an HTTP response from a DeleteFileByNameWithResponse call
func (DeleteFileByNameResponse) Status ¶
func (r DeleteFileByNameResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteFileByNameResponse) StatusCode ¶
func (r DeleteFileByNameResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteJobByIDResponse ¶
type DeleteJobByIDResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseDeleteJobByIDResponse ¶
func ParseDeleteJobByIDResponse(rsp *http.Response) (*DeleteJobByIDResponse, error)
ParseDeleteJobByIDResponse parses an HTTP response from a DeleteJobByIDWithResponse call
func (DeleteJobByIDResponse) Status ¶
func (r DeleteJobByIDResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteJobByIDResponse) StatusCode ¶
func (r DeleteJobByIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DiskCollectionResponse ¶
type DiskCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []DiskResultItem `json:"results"`
}
DiskCollectionResponse defines model for DiskCollectionResponse.
type DiskResponse ¶
type DiskResponse struct {
// Free Free disk space in bytes.
Free int `json:"free"`
// Name Disk identifier, e.g., "/dev/sda1".
Name string `json:"name"`
// Total Total disk space in bytes.
Total int `json:"total"`
// Used Used disk space in bytes.
Used int `json:"used"`
}
DiskResponse Local disk usage information.
type DiskResultItem ¶
type DiskResultItem struct {
// Disks List of local disk usage information.
Disks *DisksResponse `json:"disks,omitempty"`
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname The hostname of the agent.
Hostname string `json:"hostname"`
}
DiskResultItem defines model for DiskResultItem.
type DisksResponse ¶
type DisksResponse = []DiskResponse
DisksResponse List of local disk usage information.
type DrainAgentResponse ¶
type DrainAgentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Message string `json:"message"`
}
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON409 *ErrorResponse
}
func ParseDrainAgentResponse ¶
func ParseDrainAgentResponse(rsp *http.Response) (*DrainAgentResponse, error)
ParseDrainAgentResponse parses an HTTP response from a DrainAgentWithResponse call
func (DrainAgentResponse) Status ¶
func (r DrainAgentResponse) Status() string
Status returns HTTPResponse.Status
func (DrainAgentResponse) StatusCode ¶
func (r DrainAgentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ErrorResponse ¶
type ErrorResponse struct {
// Code The error code.
Code *int `json:"code,omitempty"`
// Details Additional details about the error.
Details *string `json:"details,omitempty"`
// Error A description of the error that occurred.
Error *string `json:"error,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type FileDeleteResponse ¶
type FileDeleteResponse struct {
// Deleted Whether the file was deleted.
Deleted bool `json:"deleted"`
// Name The name of the deleted file.
Name string `json:"name"`
}
FileDeleteResponse defines model for FileDeleteResponse.
type FileDeployRequest ¶
type FileDeployRequest struct {
// ContentType Content type — "raw" or "template".
ContentType FileDeployRequestContentType `json:"content_type" validate:"required,oneof=raw template"`
// Group File owner group.
Group *string `json:"group,omitempty"`
// Mode File permission mode (e.g., "0644").
Mode *string `json:"mode,omitempty"`
// ObjectName Name of the file in the Object Store.
ObjectName string `json:"object_name" validate:"required,min=1,max=255"`
// Owner File owner user.
Owner *string `json:"owner,omitempty"`
// Path Destination path on the target filesystem.
Path string `json:"path" validate:"required,min=1"`
// Vars Template variables when content_type is "template".
Vars *map[string]interface{} `json:"vars,omitempty"`
}
FileDeployRequest defines model for FileDeployRequest.
type FileDeployRequestContentType ¶
type FileDeployRequestContentType string
FileDeployRequestContentType Content type — "raw" or "template".
const ( FileDeployRequestContentTypeRaw FileDeployRequestContentType = "raw" FileDeployRequestContentTypeTemplate FileDeployRequestContentType = "template" )
Defines values for FileDeployRequestContentType.
type FileDeployResponse ¶
type FileDeployResponse struct {
// Changed Whether the file was actually written.
Changed bool `json:"changed"`
// Hostname The agent that processed the job.
Hostname string `json:"hostname"`
// JobId The ID of the created job.
JobId string `json:"job_id"`
}
FileDeployResponse defines model for FileDeployResponse.
type FileInfo ¶
type FileInfo struct {
// ContentType How the file should be treated during deploy (raw or template).
ContentType string `json:"content_type"`
// Name The name of the file.
Name string `json:"name"`
// Sha256 SHA-256 hash of the file content.
Sha256 string `json:"sha256"`
// Size File size in bytes.
Size int `json:"size"`
}
FileInfo defines model for FileInfo.
type FileInfoResponse ¶
type FileInfoResponse struct {
// ContentType How the file should be treated during deploy (raw or template).
ContentType string `json:"content_type"`
// Name The name of the file.
Name string `json:"name"`
// Sha256 SHA-256 hash of the file content.
Sha256 string `json:"sha256"`
// Size File size in bytes.
Size int `json:"size"`
}
FileInfoResponse defines model for FileInfoResponse.
type FileListResponse ¶
type FileListResponse struct {
// Files List of stored files.
Files []FileInfo `json:"files"`
// Total Total number of files.
Total int `json:"total"`
}
FileListResponse defines model for FileListResponse.
type FileStatusRequest ¶
type FileStatusRequest struct {
// Path Filesystem path to check.
Path string `json:"path" validate:"required,min=1"`
}
FileStatusRequest defines model for FileStatusRequest.
type FileStatusResponse ¶
type FileStatusResponse struct {
// Hostname The agent that processed the job.
Hostname string `json:"hostname"`
// JobId The ID of the created job.
JobId string `json:"job_id"`
// Path The filesystem path.
Path string `json:"path"`
// Sha256 Current SHA-256 of the file on disk.
Sha256 *string `json:"sha256,omitempty"`
// Status File state — "in-sync", "drifted", or "missing".
Status string `json:"status"`
}
FileStatusResponse defines model for FileStatusResponse.
type FileUploadResponse ¶
type FileUploadResponse struct {
// Changed Whether the file content changed. False when the Object Store already held an object with the same SHA-256 digest.
Changed bool `json:"changed"`
// ContentType How the file should be treated during deploy (raw or template).
ContentType string `json:"content_type"`
// Name The name of the uploaded file.
Name string `json:"name"`
// Sha256 SHA-256 hash of the file content.
Sha256 string `json:"sha256"`
// Size File size in bytes.
Size int `json:"size"`
}
FileUploadResponse defines model for FileUploadResponse.
type GetAgentDetailsResponse ¶
type GetAgentDetailsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AgentInfo
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetAgentDetailsResponse ¶
func ParseGetAgentDetailsResponse(rsp *http.Response) (*GetAgentDetailsResponse, error)
ParseGetAgentDetailsResponse parses an HTTP response from a GetAgentDetailsWithResponse call
func (GetAgentDetailsResponse) Status ¶
func (r GetAgentDetailsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAgentDetailsResponse) StatusCode ¶
func (r GetAgentDetailsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAgentResponse ¶
type GetAgentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListAgentsResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetAgentResponse ¶
func ParseGetAgentResponse(rsp *http.Response) (*GetAgentResponse, error)
ParseGetAgentResponse parses an HTTP response from a GetAgentWithResponse call
func (GetAgentResponse) Status ¶
func (r GetAgentResponse) Status() string
Status returns HTTPResponse.Status
func (GetAgentResponse) StatusCode ¶
func (r GetAgentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAuditExportResponse ¶
type GetAuditExportResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListAuditResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetAuditExportResponse ¶
func ParseGetAuditExportResponse(rsp *http.Response) (*GetAuditExportResponse, error)
ParseGetAuditExportResponse parses an HTTP response from a GetAuditExportWithResponse call
func (GetAuditExportResponse) Status ¶
func (r GetAuditExportResponse) Status() string
Status returns HTTPResponse.Status
func (GetAuditExportResponse) StatusCode ¶
func (r GetAuditExportResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAuditLogByIDResponse ¶
type GetAuditLogByIDResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AuditEntryResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetAuditLogByIDResponse ¶
func ParseGetAuditLogByIDResponse(rsp *http.Response) (*GetAuditLogByIDResponse, error)
ParseGetAuditLogByIDResponse parses an HTTP response from a GetAuditLogByIDWithResponse call
func (GetAuditLogByIDResponse) Status ¶
func (r GetAuditLogByIDResponse) Status() string
Status returns HTTPResponse.Status
func (GetAuditLogByIDResponse) StatusCode ¶
func (r GetAuditLogByIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAuditLogsParams ¶
type GetAuditLogsParams struct {
// Limit Maximum number of entries to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty" validate:"omitempty,min=1,max=100"`
// Offset Number of entries to skip.
Offset *int `form:"offset,omitempty" json:"offset,omitempty" validate:"omitempty,min=0"`
}
GetAuditLogsParams defines parameters for GetAuditLogs.
type GetAuditLogsResponse ¶
type GetAuditLogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListAuditResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetAuditLogsResponse ¶
func ParseGetAuditLogsResponse(rsp *http.Response) (*GetAuditLogsResponse, error)
ParseGetAuditLogsResponse parses an HTTP response from a GetAuditLogsWithResponse call
func (GetAuditLogsResponse) Status ¶
func (r GetAuditLogsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAuditLogsResponse) StatusCode ¶
func (r GetAuditLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFileByNameResponse ¶
type GetFileByNameResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *FileInfoResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetFileByNameResponse ¶
func ParseGetFileByNameResponse(rsp *http.Response) (*GetFileByNameResponse, error)
ParseGetFileByNameResponse parses an HTTP response from a GetFileByNameWithResponse call
func (GetFileByNameResponse) Status ¶
func (r GetFileByNameResponse) Status() string
Status returns HTTPResponse.Status
func (GetFileByNameResponse) StatusCode ¶
func (r GetFileByNameResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFilesResponse ¶
type GetFilesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *FileListResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetFilesResponse ¶
func ParseGetFilesResponse(rsp *http.Response) (*GetFilesResponse, error)
ParseGetFilesResponse parses an HTTP response from a GetFilesWithResponse call
func (GetFilesResponse) Status ¶
func (r GetFilesResponse) Status() string
Status returns HTTPResponse.Status
func (GetFilesResponse) StatusCode ¶
func (r GetFilesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHealthReadyResponse ¶
type GetHealthReadyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ReadyResponse
JSON503 *ReadyResponse
}
func ParseGetHealthReadyResponse ¶
func ParseGetHealthReadyResponse(rsp *http.Response) (*GetHealthReadyResponse, error)
ParseGetHealthReadyResponse parses an HTTP response from a GetHealthReadyWithResponse call
func (GetHealthReadyResponse) Status ¶
func (r GetHealthReadyResponse) Status() string
Status returns HTTPResponse.Status
func (GetHealthReadyResponse) StatusCode ¶
func (r GetHealthReadyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHealthResponse ¶
type GetHealthResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HealthResponse
}
func ParseGetHealthResponse ¶
func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)
ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call
func (GetHealthResponse) Status ¶
func (r GetHealthResponse) Status() string
Status returns HTTPResponse.Status
func (GetHealthResponse) StatusCode ¶
func (r GetHealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHealthStatusResponse ¶
type GetHealthStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *StatusResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON503 *StatusResponse
}
func ParseGetHealthStatusResponse ¶
func ParseGetHealthStatusResponse(rsp *http.Response) (*GetHealthStatusResponse, error)
ParseGetHealthStatusResponse parses an HTTP response from a GetHealthStatusWithResponse call
func (GetHealthStatusResponse) Status ¶
func (r GetHealthStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetHealthStatusResponse) StatusCode ¶
func (r GetHealthStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetJobByIDResponse ¶
type GetJobByIDResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *JobDetailResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetJobByIDResponse ¶
func ParseGetJobByIDResponse(rsp *http.Response) (*GetJobByIDResponse, error)
ParseGetJobByIDResponse parses an HTTP response from a GetJobByIDWithResponse call
func (GetJobByIDResponse) Status ¶
func (r GetJobByIDResponse) Status() string
Status returns HTTPResponse.Status
func (GetJobByIDResponse) StatusCode ¶
func (r GetJobByIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetJobParams ¶
type GetJobParams struct {
// Status Filter jobs by status.
Status *GetJobParamsStatus `` /* 128-byte string literal not displayed */
// Limit Maximum number of jobs to return. Use 0 for no limit.
Limit *int `form:"limit,omitempty" json:"limit,omitempty" validate:"omitempty,min=0"`
// Offset Number of jobs to skip for pagination.
Offset *int `form:"offset,omitempty" json:"offset,omitempty" validate:"omitempty,min=0"`
}
GetJobParams defines parameters for GetJob.
type GetJobParamsStatus ¶
type GetJobParamsStatus string
GetJobParamsStatus defines parameters for GetJob.
const ( GetJobParamsStatusCompleted GetJobParamsStatus = "completed" GetJobParamsStatusFailed GetJobParamsStatus = "failed" GetJobParamsStatusPartialFailure GetJobParamsStatus = "partial_failure" GetJobParamsStatusProcessing GetJobParamsStatus = "processing" GetJobParamsStatusSubmitted GetJobParamsStatus = "submitted" )
Defines values for GetJobParamsStatus.
type GetJobResponse ¶
type GetJobResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListJobsResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetJobResponse ¶
func ParseGetJobResponse(rsp *http.Response) (*GetJobResponse, error)
ParseGetJobResponse parses an HTTP response from a GetJobWithResponse call
func (GetJobResponse) Status ¶
func (r GetJobResponse) Status() string
Status returns HTTPResponse.Status
func (GetJobResponse) StatusCode ¶
func (r GetJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetJobStatusResponse ¶
type GetJobStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *QueueStatsResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetJobStatusResponse ¶
func ParseGetJobStatusResponse(rsp *http.Response) (*GetJobStatusResponse, error)
ParseGetJobStatusResponse parses an HTTP response from a GetJobStatusWithResponse call
func (GetJobStatusResponse) Status ¶
func (r GetJobStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetJobStatusResponse) StatusCode ¶
func (r GetJobStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNodeDiskResponse ¶
type GetNodeDiskResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DiskCollectionResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetNodeDiskResponse ¶
func ParseGetNodeDiskResponse(rsp *http.Response) (*GetNodeDiskResponse, error)
ParseGetNodeDiskResponse parses an HTTP response from a GetNodeDiskWithResponse call
func (GetNodeDiskResponse) Status ¶
func (r GetNodeDiskResponse) Status() string
Status returns HTTPResponse.Status
func (GetNodeDiskResponse) StatusCode ¶
func (r GetNodeDiskResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNodeHostnameResponse ¶
type GetNodeHostnameResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HostnameCollectionResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetNodeHostnameResponse ¶
func ParseGetNodeHostnameResponse(rsp *http.Response) (*GetNodeHostnameResponse, error)
ParseGetNodeHostnameResponse parses an HTTP response from a GetNodeHostnameWithResponse call
func (GetNodeHostnameResponse) Status ¶
func (r GetNodeHostnameResponse) Status() string
Status returns HTTPResponse.Status
func (GetNodeHostnameResponse) StatusCode ¶
func (r GetNodeHostnameResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNodeLoadResponse ¶
type GetNodeLoadResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LoadCollectionResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetNodeLoadResponse ¶
func ParseGetNodeLoadResponse(rsp *http.Response) (*GetNodeLoadResponse, error)
ParseGetNodeLoadResponse parses an HTTP response from a GetNodeLoadWithResponse call
func (GetNodeLoadResponse) Status ¶
func (r GetNodeLoadResponse) Status() string
Status returns HTTPResponse.Status
func (GetNodeLoadResponse) StatusCode ¶
func (r GetNodeLoadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNodeMemoryResponse ¶
type GetNodeMemoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MemoryCollectionResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetNodeMemoryResponse ¶
func ParseGetNodeMemoryResponse(rsp *http.Response) (*GetNodeMemoryResponse, error)
ParseGetNodeMemoryResponse parses an HTTP response from a GetNodeMemoryWithResponse call
func (GetNodeMemoryResponse) Status ¶
func (r GetNodeMemoryResponse) Status() string
Status returns HTTPResponse.Status
func (GetNodeMemoryResponse) StatusCode ¶
func (r GetNodeMemoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNodeNetworkDNSByInterfaceResponse ¶
type GetNodeNetworkDNSByInterfaceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DNSConfigCollectionResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetNodeNetworkDNSByInterfaceResponse ¶
func ParseGetNodeNetworkDNSByInterfaceResponse(rsp *http.Response) (*GetNodeNetworkDNSByInterfaceResponse, error)
ParseGetNodeNetworkDNSByInterfaceResponse parses an HTTP response from a GetNodeNetworkDNSByInterfaceWithResponse call
func (GetNodeNetworkDNSByInterfaceResponse) Status ¶
func (r GetNodeNetworkDNSByInterfaceResponse) Status() string
Status returns HTTPResponse.Status
func (GetNodeNetworkDNSByInterfaceResponse) StatusCode ¶
func (r GetNodeNetworkDNSByInterfaceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNodeOSResponse ¶
type GetNodeOSResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OSInfoCollectionResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetNodeOSResponse ¶
func ParseGetNodeOSResponse(rsp *http.Response) (*GetNodeOSResponse, error)
ParseGetNodeOSResponse parses an HTTP response from a GetNodeOSWithResponse call
func (GetNodeOSResponse) Status ¶
func (r GetNodeOSResponse) Status() string
Status returns HTTPResponse.Status
func (GetNodeOSResponse) StatusCode ¶
func (r GetNodeOSResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNodeStatusResponse ¶
type GetNodeStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NodeStatusCollectionResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetNodeStatusResponse ¶
func ParseGetNodeStatusResponse(rsp *http.Response) (*GetNodeStatusResponse, error)
ParseGetNodeStatusResponse parses an HTTP response from a GetNodeStatusWithResponse call
func (GetNodeStatusResponse) Status ¶
func (r GetNodeStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetNodeStatusResponse) StatusCode ¶
func (r GetNodeStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNodeUptimeResponse ¶
type GetNodeUptimeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UptimeCollectionResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetNodeUptimeResponse ¶
func ParseGetNodeUptimeResponse(rsp *http.Response) (*GetNodeUptimeResponse, error)
ParseGetNodeUptimeResponse parses an HTTP response from a GetNodeUptimeWithResponse call
func (GetNodeUptimeResponse) Status ¶
func (r GetNodeUptimeResponse) Status() string
Status returns HTTPResponse.Status
func (GetNodeUptimeResponse) StatusCode ¶
func (r GetNodeUptimeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVersionResponse ¶
type GetVersionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ErrorResponse
}
func ParseGetVersionResponse ¶
func ParseGetVersionResponse(rsp *http.Response) (*GetVersionResponse, error)
ParseGetVersionResponse parses an HTTP response from a GetVersionWithResponse call
func (GetVersionResponse) Status ¶
func (r GetVersionResponse) Status() string
Status returns HTTPResponse.Status
func (GetVersionResponse) StatusCode ¶
func (r GetVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HealthResponse ¶
type HealthResponse struct {
// Status Health status.
Status string `json:"status"`
}
HealthResponse defines model for HealthResponse.
type HostnameCollectionResponse ¶
type HostnameCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []HostnameResponse `json:"results"`
}
HostnameCollectionResponse defines model for HostnameCollectionResponse.
type HostnameResponse ¶
type HostnameResponse struct {
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname The system's hostname.
Hostname string `json:"hostname"`
// Labels Key-value labels configured on the agent.
Labels *map[string]string `json:"labels,omitempty"`
}
HostnameResponse The hostname of the system.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type JobDetailResponse ¶
type JobDetailResponse struct {
// AgentStates Per-agent processing state for broadcast jobs.
AgentStates *map[string]struct {
Duration *string `json:"duration,omitempty"`
Error *string `json:"error,omitempty"`
Status *string `json:"status,omitempty"`
} `json:"agent_states,omitempty"`
// Created Creation timestamp.
Created *string `json:"created,omitempty"`
// Error Error message if failed.
Error *string `json:"error,omitempty"`
// Hostname Agent hostname that processed the job.
Hostname *string `json:"hostname,omitempty"`
// Id Unique identifier of the job.
Id *openapi_types.UUID `json:"id,omitempty"`
// Operation The operation data.
Operation *map[string]interface{} `json:"operation,omitempty"`
// Responses Per-agent response data for broadcast jobs.
Responses *map[string]struct {
// Data Agent result data.
Data interface{} `json:"data,omitempty"`
Error *string `json:"error,omitempty"`
Hostname *string `json:"hostname,omitempty"`
Status *string `json:"status,omitempty"`
} `json:"responses,omitempty"`
// Result The result data if completed.
Result interface{} `json:"result,omitempty"`
// Status Current status of the job.
Status *string `json:"status,omitempty"`
// Timeline Chronological sequence of job lifecycle events.
Timeline *[]struct {
// Error Error details if applicable.
Error *string `json:"error,omitempty"`
// Event Event type (submitted, acknowledged, started, completed, failed, retried).
Event *string `json:"event,omitempty"`
// Hostname Agent or source that generated the event.
Hostname *string `json:"hostname,omitempty"`
// Message Human-readable description of the event.
Message *string `json:"message,omitempty"`
// Timestamp ISO 8601 timestamp of the event.
Timestamp *string `json:"timestamp,omitempty"`
} `json:"timeline,omitempty"`
// UpdatedAt Last update timestamp.
UpdatedAt *string `json:"updated_at,omitempty"`
}
JobDetailResponse defines model for JobDetailResponse.
type JobStats ¶
type JobStats struct {
// Completed Number of completed jobs.
Completed int `json:"completed"`
// Dlq Number of jobs in the dead letter queue.
Dlq int `json:"dlq"`
// Failed Number of failed jobs.
Failed int `json:"failed"`
// Processing Number of jobs currently processing.
Processing int `json:"processing"`
// Total Total number of jobs.
Total int `json:"total"`
// Unprocessed Number of unprocessed jobs.
Unprocessed int `json:"unprocessed"`
}
JobStats defines model for JobStats.
type KVBucketInfo ¶
type KVBucketInfo struct {
// Bytes Total bytes in the bucket.
Bytes int `json:"bytes"`
// Keys Number of keys in the bucket.
Keys int `json:"keys"`
// Name KV bucket name.
Name string `json:"name"`
}
KVBucketInfo defines model for KVBucketInfo.
type ListAgentsResponse ¶
type ListAgentsResponse struct {
Agents []AgentInfo `json:"agents"`
// Total Total number of active agents.
Total int `json:"total"`
}
ListAgentsResponse defines model for ListAgentsResponse.
type ListAuditResponse ¶
type ListAuditResponse struct {
// Items The audit entries for this page.
Items []AuditEntry `json:"items"`
// TotalItems Total number of audit entries.
TotalItems int `json:"total_items"`
}
ListAuditResponse defines model for ListAuditResponse.
type ListJobsResponse ¶
type ListJobsResponse struct {
Items *[]JobDetailResponse `json:"items,omitempty"`
// StatusCounts Count of all jobs by status (submitted, processing, completed, failed, partial_failure). Derived from key names during the listing pass — no extra reads.
StatusCounts *map[string]int `json:"status_counts,omitempty"`
// TotalItems Total number of jobs matching the filter.
TotalItems *int `json:"total_items,omitempty"`
}
ListJobsResponse defines model for ListJobsResponse.
type LoadAverageResponse ¶
type LoadAverageResponse struct {
// N15min Load average for the last 15 minutes.
N15min float32 `json:"15min"`
// N1min Load average for the last 1 minute.
N1min float32 `json:"1min"`
// N5min Load average for the last 5 minutes.
N5min float32 `json:"5min"`
}
LoadAverageResponse The system load averages for 1, 5, and 15 minutes.
type LoadCollectionResponse ¶
type LoadCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []LoadResultItem `json:"results"`
}
LoadCollectionResponse defines model for LoadCollectionResponse.
type LoadResultItem ¶
type LoadResultItem struct {
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname The hostname of the agent.
Hostname string `json:"hostname"`
// LoadAverage The system load averages for 1, 5, and 15 minutes.
LoadAverage *LoadAverageResponse `json:"load_average,omitempty"`
}
LoadResultItem defines model for LoadResultItem.
type MemoryCollectionResponse ¶
type MemoryCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []MemoryResultItem `json:"results"`
}
MemoryCollectionResponse defines model for MemoryCollectionResponse.
type MemoryResponse ¶
type MemoryResponse struct {
// Free Free memory in bytes.
Free int `json:"free"`
// Total Total memory in bytes.
Total int `json:"total"`
// Used Used memory in bytes.
Used int `json:"used"`
}
MemoryResponse Memory usage information.
type MemoryResultItem ¶
type MemoryResultItem struct {
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname The hostname of the agent.
Hostname string `json:"hostname"`
// Memory Memory usage information.
Memory *MemoryResponse `json:"memory,omitempty"`
}
MemoryResultItem defines model for MemoryResultItem.
type NATSInfo ¶
type NATSInfo struct {
// Url Connected NATS server URL.
Url string `json:"url"`
// Version NATS server version.
Version string `json:"version"`
}
NATSInfo defines model for NATSInfo.
type NetworkInterfaceResponse ¶
type NetworkInterfaceResponse struct {
// Family IP address family.
Family *NetworkInterfaceResponseFamily `json:"family,omitempty"`
Ipv4 *string `json:"ipv4,omitempty"`
Ipv6 *string `json:"ipv6,omitempty"`
Mac *string `json:"mac,omitempty"`
Name string `json:"name"`
}
NetworkInterfaceResponse defines model for NetworkInterfaceResponse.
type NetworkInterfaceResponseFamily ¶
type NetworkInterfaceResponseFamily string
NetworkInterfaceResponseFamily IP address family.
const ( Dual NetworkInterfaceResponseFamily = "dual" Inet NetworkInterfaceResponseFamily = "inet" Inet6 NetworkInterfaceResponseFamily = "inet6" )
Defines values for NetworkInterfaceResponseFamily.
type NodeCondition ¶
type NodeCondition struct {
LastTransitionTime time.Time `json:"last_transition_time"`
Reason *string `json:"reason,omitempty"`
Status bool `json:"status"`
Type NodeConditionType `json:"type"`
}
NodeCondition defines model for NodeCondition.
type NodeConditionType ¶
type NodeConditionType string
NodeConditionType defines model for NodeCondition.Type.
const ( DiskPressure NodeConditionType = "DiskPressure" HighLoad NodeConditionType = "HighLoad" MemoryPressure NodeConditionType = "MemoryPressure" )
Defines values for NodeConditionType.
type NodeStatusCollectionResponse ¶
type NodeStatusCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []NodeStatusResponse `json:"results"`
}
NodeStatusCollectionResponse defines model for NodeStatusCollectionResponse.
type NodeStatusResponse ¶
type NodeStatusResponse struct {
// Disks List of local disk usage information.
Disks *DisksResponse `json:"disks,omitempty"`
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname The hostname of the system.
Hostname string `json:"hostname"`
// LoadAverage The system load averages for 1, 5, and 15 minutes.
LoadAverage *LoadAverageResponse `json:"load_average,omitempty"`
// Memory Memory usage information.
Memory *MemoryResponse `json:"memory,omitempty"`
// OsInfo Operating system information.
OsInfo *OSInfoResponse `json:"os_info,omitempty"`
// Uptime The uptime of the system.
Uptime *string `json:"uptime,omitempty"`
}
NodeStatusResponse defines model for NodeStatusResponse.
type OSInfoCollectionResponse ¶
type OSInfoCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []OSInfoResultItem `json:"results"`
}
OSInfoCollectionResponse defines model for OSInfoCollectionResponse.
type OSInfoResponse ¶
type OSInfoResponse struct {
// Distribution The name of the Linux distribution.
Distribution string `json:"distribution"`
// Version The version of the Linux distribution.
Version string `json:"version"`
}
OSInfoResponse Operating system information.
type OSInfoResultItem ¶
type OSInfoResultItem struct {
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname The hostname of the agent.
Hostname string `json:"hostname"`
// OsInfo Operating system information.
OsInfo *OSInfoResponse `json:"os_info,omitempty"`
}
OSInfoResultItem defines model for OSInfoResultItem.
type ObjectStoreInfo ¶
type ObjectStoreInfo struct {
// Name Object Store bucket name.
Name string `json:"name"`
// Size Total bytes in the store.
Size int `json:"size"`
}
ObjectStoreInfo defines model for ObjectStoreInfo.
type PingCollectionResponse ¶
type PingCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []PingResponse `json:"results"`
}
PingCollectionResponse defines model for PingCollectionResponse.
type PingResponse ¶
type PingResponse struct {
// AvgRtt Average round-trip time in Go time.Duration format.
AvgRtt *string `json:"avg_rtt,omitempty"`
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname The hostname of the agent that executed the ping.
Hostname string `json:"hostname"`
// MaxRtt Maximum round-trip time in Go time.Duration format.
MaxRtt *string `json:"max_rtt,omitempty"`
// MinRtt Minimum round-trip time in Go time.Duration format.
MinRtt *string `json:"min_rtt,omitempty"`
// PacketLoss Percentage of packet loss.
PacketLoss *float64 `json:"packet_loss,omitempty"`
// PacketsReceived Number of packets received.
PacketsReceived *int `json:"packets_received,omitempty"`
// PacketsSent Number of packets sent.
PacketsSent *int `json:"packets_sent,omitempty"`
}
PingResponse defines model for PingResponse.
type PostFileMultipartBody ¶
type PostFileMultipartBody struct {
// ContentType How the file should be treated during deploy. "raw" writes bytes as-is; "template" renders with Go text/template and agent facts.
ContentType *PostFileMultipartBodyContentType `json:"content_type,omitempty"`
// File The file content.
File openapi_types.File `json:"file"`
// Name The name of the file in the Object Store.
Name string `json:"name"`
}
PostFileMultipartBody defines parameters for PostFile.
type PostFileMultipartBodyContentType ¶
type PostFileMultipartBodyContentType string
PostFileMultipartBodyContentType defines parameters for PostFile.
const ( PostFileMultipartBodyContentTypeRaw PostFileMultipartBodyContentType = "raw" PostFileMultipartBodyContentTypeTemplate PostFileMultipartBodyContentType = "template" )
Defines values for PostFileMultipartBodyContentType.
type PostFileMultipartRequestBody ¶
type PostFileMultipartRequestBody PostFileMultipartBody
PostFileMultipartRequestBody defines body for PostFile for multipart/form-data ContentType.
type PostFileParams ¶
type PostFileParams struct {
// Force When true, bypass the digest check and always write the file. Returns changed=true regardless of whether the content differs from the existing object.
Force *bool `form:"force,omitempty" json:"force,omitempty"`
}
PostFileParams defines parameters for PostFile.
type PostFileResponse ¶
type PostFileResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *FileUploadResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON409 *ErrorResponse
JSON500 *ErrorResponse
}
func ParsePostFileResponse ¶
func ParsePostFileResponse(rsp *http.Response) (*PostFileResponse, error)
ParsePostFileResponse parses an HTTP response from a PostFileWithResponse call
func (PostFileResponse) Status ¶
func (r PostFileResponse) Status() string
Status returns HTTPResponse.Status
func (PostFileResponse) StatusCode ¶
func (r PostFileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostJobJSONRequestBody ¶
type PostJobJSONRequestBody = CreateJobRequest
PostJobJSONRequestBody defines body for PostJob for application/json ContentType.
type PostJobResponse ¶
type PostJobResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CreateJobResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParsePostJobResponse ¶
func ParsePostJobResponse(rsp *http.Response) (*PostJobResponse, error)
ParsePostJobResponse parses an HTTP response from a PostJobWithResponse call
func (PostJobResponse) Status ¶
func (r PostJobResponse) Status() string
Status returns HTTPResponse.Status
func (PostJobResponse) StatusCode ¶
func (r PostJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostNodeCommandExecJSONRequestBody ¶
type PostNodeCommandExecJSONRequestBody = CommandExecRequest
PostNodeCommandExecJSONRequestBody defines body for PostNodeCommandExec for application/json ContentType.
type PostNodeCommandExecResponse ¶
type PostNodeCommandExecResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *CommandResultCollectionResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParsePostNodeCommandExecResponse ¶
func ParsePostNodeCommandExecResponse(rsp *http.Response) (*PostNodeCommandExecResponse, error)
ParsePostNodeCommandExecResponse parses an HTTP response from a PostNodeCommandExecWithResponse call
func (PostNodeCommandExecResponse) Status ¶
func (r PostNodeCommandExecResponse) Status() string
Status returns HTTPResponse.Status
func (PostNodeCommandExecResponse) StatusCode ¶
func (r PostNodeCommandExecResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostNodeCommandShellJSONRequestBody ¶
type PostNodeCommandShellJSONRequestBody = CommandShellRequest
PostNodeCommandShellJSONRequestBody defines body for PostNodeCommandShell for application/json ContentType.
type PostNodeCommandShellResponse ¶
type PostNodeCommandShellResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *CommandResultCollectionResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParsePostNodeCommandShellResponse ¶
func ParsePostNodeCommandShellResponse(rsp *http.Response) (*PostNodeCommandShellResponse, error)
ParsePostNodeCommandShellResponse parses an HTTP response from a PostNodeCommandShellWithResponse call
func (PostNodeCommandShellResponse) Status ¶
func (r PostNodeCommandShellResponse) Status() string
Status returns HTTPResponse.Status
func (PostNodeCommandShellResponse) StatusCode ¶
func (r PostNodeCommandShellResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostNodeFileDeployJSONRequestBody ¶
type PostNodeFileDeployJSONRequestBody = FileDeployRequest
PostNodeFileDeployJSONRequestBody defines body for PostNodeFileDeploy for application/json ContentType.
type PostNodeFileDeployResponse ¶
type PostNodeFileDeployResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *FileDeployResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParsePostNodeFileDeployResponse ¶
func ParsePostNodeFileDeployResponse(rsp *http.Response) (*PostNodeFileDeployResponse, error)
ParsePostNodeFileDeployResponse parses an HTTP response from a PostNodeFileDeployWithResponse call
func (PostNodeFileDeployResponse) Status ¶
func (r PostNodeFileDeployResponse) Status() string
Status returns HTTPResponse.Status
func (PostNodeFileDeployResponse) StatusCode ¶
func (r PostNodeFileDeployResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostNodeFileStatusJSONRequestBody ¶
type PostNodeFileStatusJSONRequestBody = FileStatusRequest
PostNodeFileStatusJSONRequestBody defines body for PostNodeFileStatus for application/json ContentType.
type PostNodeFileStatusResponse ¶
type PostNodeFileStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *FileStatusResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParsePostNodeFileStatusResponse ¶
func ParsePostNodeFileStatusResponse(rsp *http.Response) (*PostNodeFileStatusResponse, error)
ParsePostNodeFileStatusResponse parses an HTTP response from a PostNodeFileStatusWithResponse call
func (PostNodeFileStatusResponse) Status ¶
func (r PostNodeFileStatusResponse) Status() string
Status returns HTTPResponse.Status
func (PostNodeFileStatusResponse) StatusCode ¶
func (r PostNodeFileStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostNodeNetworkPingJSONBody ¶
type PostNodeNetworkPingJSONBody struct {
// Address The IP address of the server to ping. Supports both IPv4 and IPv6. Also accepts @fact. references that are resolved agent-side.
Address string `json:"address" validate:"required,ip_or_fact"`
}
PostNodeNetworkPingJSONBody defines parameters for PostNodeNetworkPing.
type PostNodeNetworkPingJSONRequestBody ¶
type PostNodeNetworkPingJSONRequestBody PostNodeNetworkPingJSONBody
PostNodeNetworkPingJSONRequestBody defines body for PostNodeNetworkPing for application/json ContentType.
type PostNodeNetworkPingResponse ¶
type PostNodeNetworkPingResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PingCollectionResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParsePostNodeNetworkPingResponse ¶
func ParsePostNodeNetworkPingResponse(rsp *http.Response) (*PostNodeNetworkPingResponse, error)
ParsePostNodeNetworkPingResponse parses an HTTP response from a PostNodeNetworkPingWithResponse call
func (PostNodeNetworkPingResponse) Status ¶
func (r PostNodeNetworkPingResponse) Status() string
Status returns HTTPResponse.Status
func (PostNodeNetworkPingResponse) StatusCode ¶
func (r PostNodeNetworkPingResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutNodeNetworkDNSJSONRequestBody ¶
type PutNodeNetworkDNSJSONRequestBody = DNSConfigUpdateRequest
PutNodeNetworkDNSJSONRequestBody defines body for PutNodeNetworkDNS for application/json ContentType.
type PutNodeNetworkDNSResponse ¶
type PutNodeNetworkDNSResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *DNSUpdateCollectionResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParsePutNodeNetworkDNSResponse ¶
func ParsePutNodeNetworkDNSResponse(rsp *http.Response) (*PutNodeNetworkDNSResponse, error)
ParsePutNodeNetworkDNSResponse parses an HTTP response from a PutNodeNetworkDNSWithResponse call
func (PutNodeNetworkDNSResponse) Status ¶
func (r PutNodeNetworkDNSResponse) Status() string
Status returns HTTPResponse.Status
func (PutNodeNetworkDNSResponse) StatusCode ¶
func (r PutNodeNetworkDNSResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueueStatsResponse ¶
type QueueStatsResponse struct {
// DlqCount Number of jobs in the dead letter queue.
DlqCount *int `json:"dlq_count,omitempty"`
// StatusCounts Count of jobs by status.
StatusCounts *map[string]int `json:"status_counts,omitempty"`
// TotalJobs Total number of jobs in the queue.
TotalJobs *int `json:"total_jobs,omitempty"`
}
QueueStatsResponse defines model for QueueStatsResponse.
type ReadyResponse ¶
type ReadyResponse struct {
// Error Error message when not ready.
Error *string `json:"error,omitempty"`
// Status Readiness status.
Status string `json:"status"`
}
ReadyResponse defines model for ReadyResponse.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RetryJobByIDJSONRequestBody ¶
type RetryJobByIDJSONRequestBody = RetryJobRequest
RetryJobByIDJSONRequestBody defines body for RetryJobByID for application/json ContentType.
type RetryJobByIDResponse ¶
type RetryJobByIDResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CreateJobResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseRetryJobByIDResponse ¶
func ParseRetryJobByIDResponse(rsp *http.Response) (*RetryJobByIDResponse, error)
ParseRetryJobByIDResponse parses an HTTP response from a RetryJobByIDWithResponse call
func (RetryJobByIDResponse) Status ¶
func (r RetryJobByIDResponse) Status() string
Status returns HTTPResponse.Status
func (RetryJobByIDResponse) StatusCode ¶
func (r RetryJobByIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RetryJobRequest ¶
type RetryJobRequest struct {
// TargetHostname Override target hostname for the retried job. Defaults to _any if not specified.
TargetHostname *string `json:"target_hostname,omitempty" validate:"omitempty,min=1,valid_target"`
}
RetryJobRequest defines model for RetryJobRequest.
type RouteResponse ¶
type RouteResponse struct {
// Destination Destination network address.
Destination string `json:"destination"`
// Flags Route flags.
Flags *string `json:"flags,omitempty"`
// Gateway Gateway address.
Gateway string `json:"gateway"`
// Interface Network interface name.
Interface string `json:"interface"`
// Mask Network mask in CIDR notation.
Mask *string `json:"mask,omitempty"`
// Metric Route metric.
Metric *int `json:"metric,omitempty"`
}
RouteResponse A network routing table entry.
type StatusResponse ¶
type StatusResponse struct {
Agents *AgentStats `json:"agents,omitempty"`
// Components Per-component health status.
Components map[string]ComponentHealth `json:"components"`
Consumers *ConsumerStats `json:"consumers,omitempty"`
Jobs *JobStats `json:"jobs,omitempty"`
// KvBuckets KV bucket statistics.
KvBuckets *[]KVBucketInfo `json:"kv_buckets,omitempty"`
Nats *NATSInfo `json:"nats,omitempty"`
// ObjectStores Object Store statistics.
ObjectStores *[]ObjectStoreInfo `json:"object_stores,omitempty"`
// Status Overall health status.
Status string `json:"status"`
// Streams JetStream stream statistics.
Streams *[]StreamInfo `json:"streams,omitempty"`
// Uptime Time since server started.
Uptime string `json:"uptime"`
// Version Application version.
Version string `json:"version"`
}
StatusResponse defines model for StatusResponse.
type StreamInfo ¶
type StreamInfo struct {
// Bytes Total bytes in the stream.
Bytes int `json:"bytes"`
// Consumers Number of consumers on the stream.
Consumers int `json:"consumers"`
// Messages Number of messages in the stream.
Messages int `json:"messages"`
// Name Stream name.
Name string `json:"name"`
}
StreamInfo defines model for StreamInfo.
type TimelineEvent ¶
type TimelineEvent struct {
Error *string `json:"error,omitempty"`
Event string `json:"event"`
Hostname *string `json:"hostname,omitempty"`
Message *string `json:"message,omitempty"`
Timestamp time.Time `json:"timestamp"`
}
TimelineEvent defines model for TimelineEvent.
type UndrainAgentResponse ¶
type UndrainAgentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Message string `json:"message"`
}
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON409 *ErrorResponse
}
func ParseUndrainAgentResponse ¶
func ParseUndrainAgentResponse(rsp *http.Response) (*UndrainAgentResponse, error)
ParseUndrainAgentResponse parses an HTTP response from a UndrainAgentWithResponse call
func (UndrainAgentResponse) Status ¶
func (r UndrainAgentResponse) Status() string
Status returns HTTPResponse.Status
func (UndrainAgentResponse) StatusCode ¶
func (r UndrainAgentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UptimeCollectionResponse ¶
type UptimeCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []UptimeResponse `json:"results"`
}
UptimeCollectionResponse defines model for UptimeCollectionResponse.
type UptimeResponse ¶
type UptimeResponse struct {
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname The hostname of the agent.
Hostname string `json:"hostname"`
// Uptime The uptime of the system.
Uptime *string `json:"uptime,omitempty"`
}
UptimeResponse System uptime information.