Documentation
¶
Overview ¶
Package edge provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func NewHealthCheckMachineRequest(server string) (*http.Request, error)
- func NewHealthCheckRequest(server string) (*http.Request, error)
- func NewV1InfoRequest(server string) (*http.Request, error)
- func NewV1RigsInstancesInstanceIDRequest(server string, instanceID string, params *V1RigsInstancesInstanceIDParams) (*http.Request, error)
- func NewV1RigsRequest(server string) (*http.Request, error)
- func NewV1RigsRigIDCapacityRequest(server string, rigID string, body V1RigsRigIDCapacityJSONRequestBody) (*http.Request, error)
- func NewV1RigsRigIDCapacityRequestWithBody(server string, rigID string, contentType string, body io.Reader) (*http.Request, error)
- func NewV1RigsRigIDErrorsRequest(server string, rigID string, params *V1RigsRigIDErrorsParams) (*http.Request, error)
- func NewV1RigsRigIDInstancesRequest(server string, rigID string) (*http.Request, error)
- func NewV1SandboxLogsRequest(server string, sandboxID string, params *V1SandboxLogsParams) (*http.Request, error)
- func NewV1SandboxMetricsRequest(server string, sandboxID string, params *V1SandboxMetricsParams) (*http.Request, error)
- func NewV1SandboxesMetricsRequest(server string, params *V1SandboxesMetricsParams) (*http.Request, error)
- func NewV1ServiceDiscoveryGetOrchestratorsRequest(server string) (*http.Request, error)
- func NewV1ServiceDiscoveryRequest(server string) (*http.Request, error)
- func NewV1TemplateBuildLogsRequest(server string, buildID string, params *V1TemplateBuildLogsParams) (*http.Request, error)
- func WarnMissingFeatureHeader(ctx context.Context, featureHeader string, msg string, fields ...zap.Field)
- type BuildLogEntry
- type Client
- func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HealthCheckMachine(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) V1Info(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) V1Rigs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) V1RigsInstancesInstanceID(ctx context.Context, instanceID string, ...) (*http.Response, error)
- func (c *Client) V1RigsRigIDCapacity(ctx context.Context, rigID string, body V1RigsRigIDCapacityJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) V1RigsRigIDCapacityWithBody(ctx context.Context, rigID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) V1RigsRigIDErrors(ctx context.Context, rigID string, params *V1RigsRigIDErrorsParams, ...) (*http.Response, error)
- func (c *Client) V1RigsRigIDInstances(ctx context.Context, rigID string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) V1SandboxLogs(ctx context.Context, sandboxID string, params *V1SandboxLogsParams, ...) (*http.Response, error)
- func (c *Client) V1SandboxMetrics(ctx context.Context, sandboxID string, params *V1SandboxMetricsParams, ...) (*http.Response, error)
- func (c *Client) V1SandboxesMetrics(ctx context.Context, params *V1SandboxesMetricsParams, ...) (*http.Response, error)
- func (c *Client) V1ServiceDiscovery(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) V1ServiceDiscoveryGetOrchestrators(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) V1TemplateBuildLogs(ctx context.Context, buildID string, params *V1TemplateBuildLogsParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) HealthCheckMachineWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckMachineResponse, error)
- func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
- func (c *ClientWithResponses) V1InfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1InfoResponse, error)
- func (c *ClientWithResponses) V1RigsInstancesInstanceIDWithResponse(ctx context.Context, instanceID string, ...) (*V1RigsInstancesInstanceIDResponse, error)
- func (c *ClientWithResponses) V1RigsRigIDCapacityWithBodyWithResponse(ctx context.Context, rigID string, contentType string, body io.Reader, ...) (*V1RigsRigIDCapacityResponse, error)
- func (c *ClientWithResponses) V1RigsRigIDCapacityWithResponse(ctx context.Context, rigID string, body V1RigsRigIDCapacityJSONRequestBody, ...) (*V1RigsRigIDCapacityResponse, error)
- func (c *ClientWithResponses) V1RigsRigIDErrorsWithResponse(ctx context.Context, rigID string, params *V1RigsRigIDErrorsParams, ...) (*V1RigsRigIDErrorsResponse, error)
- func (c *ClientWithResponses) V1RigsRigIDInstancesWithResponse(ctx context.Context, rigID string, reqEditors ...RequestEditorFn) (*V1RigsRigIDInstancesResponse, error)
- func (c *ClientWithResponses) V1RigsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1RigsResponse, error)
- func (c *ClientWithResponses) V1SandboxLogsWithResponse(ctx context.Context, sandboxID string, params *V1SandboxLogsParams, ...) (*V1SandboxLogsResponse, error)
- func (c *ClientWithResponses) V1SandboxMetricsWithResponse(ctx context.Context, sandboxID string, params *V1SandboxMetricsParams, ...) (*V1SandboxMetricsResponse, error)
- func (c *ClientWithResponses) V1SandboxesMetricsWithResponse(ctx context.Context, params *V1SandboxesMetricsParams, ...) (*V1SandboxesMetricsResponse, error)
- func (c *ClientWithResponses) V1ServiceDiscoveryGetOrchestratorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1ServiceDiscoveryGetOrchestratorsResponse, error)deprecated
- func (c *ClientWithResponses) V1ServiceDiscoveryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1ServiceDiscoveryResponse, error)
- func (c *ClientWithResponses) V1TemplateBuildLogsWithResponse(ctx context.Context, buildID string, params *V1TemplateBuildLogsParams, ...) (*V1TemplateBuildLogsResponse, error)
- type ClientWithResponsesInterface
- type ClusterNodeInfo
- type ClusterNodeStatus
- type ClusterOrchestratorNode
- type ClusterOrchestratorRole
- type ClusterServiceDiscovery
- type Error
- type HealthCheckMachineResponse
- type HealthCheckResponse
- type HttpRequestDoer
- type LogLevel
- type N400
- type N401
- type N404
- type N409
- type N500
- type N501
- type RequestEditorFn
- type Rig
- type RigCapacityRequest
- type RigError
- type RigInstance
- type RigInstancesResponse
- type RigsResponse
- type SandboxLog
- type SandboxLogEntry
- type SandboxLogsResponse
- type SandboxMetric
- type SandboxesWithMetrics
- type TemplateBuildLogsResponse
- type V1InfoResponse
- func (r V1InfoResponse) ContentType() string
- func (r V1InfoResponse) GetBody() []byte
- func (r V1InfoResponse) GetJSON200() *ClusterNodeInfo
- func (r V1InfoResponse) GetJSON401() *N401
- func (r V1InfoResponse) GetJSON500() *N500
- func (r V1InfoResponse) Status() string
- func (r V1InfoResponse) StatusCode() int
- type V1RigsInstancesInstanceIDParams
- type V1RigsInstancesInstanceIDResponse
- func (r V1RigsInstancesInstanceIDResponse) ContentType() string
- func (r V1RigsInstancesInstanceIDResponse) GetBody() []byte
- func (r V1RigsInstancesInstanceIDResponse) GetJSON400() *N400
- func (r V1RigsInstancesInstanceIDResponse) GetJSON401() *N401
- func (r V1RigsInstancesInstanceIDResponse) GetJSON404() *N404
- func (r V1RigsInstancesInstanceIDResponse) GetJSON409() *N409
- func (r V1RigsInstancesInstanceIDResponse) GetJSON500() *N500
- func (r V1RigsInstancesInstanceIDResponse) GetJSON501() *N501
- func (r V1RigsInstancesInstanceIDResponse) Status() string
- func (r V1RigsInstancesInstanceIDResponse) StatusCode() int
- type V1RigsResponse
- func (r V1RigsResponse) ContentType() string
- func (r V1RigsResponse) GetBody() []byte
- func (r V1RigsResponse) GetJSON200() *RigsResponse
- func (r V1RigsResponse) GetJSON401() *N401
- func (r V1RigsResponse) GetJSON500() *N500
- func (r V1RigsResponse) Status() string
- func (r V1RigsResponse) StatusCode() int
- type V1RigsRigIDCapacityJSONRequestBody
- type V1RigsRigIDCapacityResponse
- func (r V1RigsRigIDCapacityResponse) ContentType() string
- func (r V1RigsRigIDCapacityResponse) GetBody() []byte
- func (r V1RigsRigIDCapacityResponse) GetJSON400() *N400
- func (r V1RigsRigIDCapacityResponse) GetJSON401() *N401
- func (r V1RigsRigIDCapacityResponse) GetJSON404() *N404
- func (r V1RigsRigIDCapacityResponse) GetJSON409() *N409
- func (r V1RigsRigIDCapacityResponse) GetJSON500() *N500
- func (r V1RigsRigIDCapacityResponse) GetJSON501() *N501
- func (r V1RigsRigIDCapacityResponse) Status() string
- func (r V1RigsRigIDCapacityResponse) StatusCode() int
- type V1RigsRigIDErrorsParams
- type V1RigsRigIDErrorsResponse
- func (r V1RigsRigIDErrorsResponse) ContentType() string
- func (r V1RigsRigIDErrorsResponse) GetBody() []byte
- func (r V1RigsRigIDErrorsResponse) GetJSON200() *[]RigError
- func (r V1RigsRigIDErrorsResponse) GetJSON400() *N400
- func (r V1RigsRigIDErrorsResponse) GetJSON401() *N401
- func (r V1RigsRigIDErrorsResponse) GetJSON404() *N404
- func (r V1RigsRigIDErrorsResponse) GetJSON500() *N500
- func (r V1RigsRigIDErrorsResponse) GetJSON501() *N501
- func (r V1RigsRigIDErrorsResponse) Status() string
- func (r V1RigsRigIDErrorsResponse) StatusCode() int
- type V1RigsRigIDInstancesResponse
- func (r V1RigsRigIDInstancesResponse) ContentType() string
- func (r V1RigsRigIDInstancesResponse) GetBody() []byte
- func (r V1RigsRigIDInstancesResponse) GetJSON200() *RigInstancesResponse
- func (r V1RigsRigIDInstancesResponse) GetJSON400() *N400
- func (r V1RigsRigIDInstancesResponse) GetJSON401() *N401
- func (r V1RigsRigIDInstancesResponse) GetJSON404() *N404
- func (r V1RigsRigIDInstancesResponse) GetJSON500() *N500
- func (r V1RigsRigIDInstancesResponse) GetJSON501() *N501
- func (r V1RigsRigIDInstancesResponse) Status() string
- func (r V1RigsRigIDInstancesResponse) StatusCode() int
- type V1SandboxLogsParams
- type V1SandboxLogsParamsDirection
- type V1SandboxLogsResponse
- func (r V1SandboxLogsResponse) ContentType() string
- func (r V1SandboxLogsResponse) GetBody() []byte
- func (r V1SandboxLogsResponse) GetJSON200() *SandboxLogsResponse
- func (r V1SandboxLogsResponse) GetJSON400() *N400
- func (r V1SandboxLogsResponse) GetJSON401() *N401
- func (r V1SandboxLogsResponse) GetJSON500() *N500
- func (r V1SandboxLogsResponse) Status() string
- func (r V1SandboxLogsResponse) StatusCode() int
- type V1SandboxMetricsParams
- type V1SandboxMetricsResponse
- func (r V1SandboxMetricsResponse) ContentType() string
- func (r V1SandboxMetricsResponse) GetBody() []byte
- func (r V1SandboxMetricsResponse) GetJSON200() *[]SandboxMetric
- func (r V1SandboxMetricsResponse) GetJSON400() *N400
- func (r V1SandboxMetricsResponse) GetJSON401() *N401
- func (r V1SandboxMetricsResponse) GetJSON500() *N500
- func (r V1SandboxMetricsResponse) Status() string
- func (r V1SandboxMetricsResponse) StatusCode() int
- type V1SandboxesMetricsParams
- type V1SandboxesMetricsResponse
- func (r V1SandboxesMetricsResponse) ContentType() string
- func (r V1SandboxesMetricsResponse) GetBody() []byte
- func (r V1SandboxesMetricsResponse) GetJSON200() *SandboxesWithMetrics
- func (r V1SandboxesMetricsResponse) GetJSON400() *N400
- func (r V1SandboxesMetricsResponse) GetJSON401() *N401
- func (r V1SandboxesMetricsResponse) GetJSON500() *N500
- func (r V1SandboxesMetricsResponse) Status() string
- func (r V1SandboxesMetricsResponse) StatusCode() int
- type V1ServiceDiscoveryGetOrchestratorsResponse
- func (r V1ServiceDiscoveryGetOrchestratorsResponse) ContentType() string
- func (r V1ServiceDiscoveryGetOrchestratorsResponse) GetBody() []byte
- func (r V1ServiceDiscoveryGetOrchestratorsResponse) GetJSON200() *[]ClusterOrchestratorNode
- func (r V1ServiceDiscoveryGetOrchestratorsResponse) GetJSON401() *N401
- func (r V1ServiceDiscoveryGetOrchestratorsResponse) GetJSON500() *N500
- func (r V1ServiceDiscoveryGetOrchestratorsResponse) Status() string
- func (r V1ServiceDiscoveryGetOrchestratorsResponse) StatusCode() int
- type V1ServiceDiscoveryResponse
- func (r V1ServiceDiscoveryResponse) ContentType() string
- func (r V1ServiceDiscoveryResponse) GetBody() []byte
- func (r V1ServiceDiscoveryResponse) GetJSON200() *ClusterServiceDiscovery
- func (r V1ServiceDiscoveryResponse) GetJSON401() *N401
- func (r V1ServiceDiscoveryResponse) GetJSON500() *N500
- func (r V1ServiceDiscoveryResponse) Status() string
- func (r V1ServiceDiscoveryResponse) StatusCode() int
- type V1TemplateBuildLogsParams
- type V1TemplateBuildLogsParamsDirection
- type V1TemplateBuildLogsResponse
- func (r V1TemplateBuildLogsResponse) ContentType() string
- func (r V1TemplateBuildLogsResponse) GetBody() []byte
- func (r V1TemplateBuildLogsResponse) GetJSON200() *TemplateBuildLogsResponse
- func (r V1TemplateBuildLogsResponse) GetJSON400() *N400
- func (r V1TemplateBuildLogsResponse) GetJSON401() *N401
- func (r V1TemplateBuildLogsResponse) GetJSON500() *N500
- func (r V1TemplateBuildLogsResponse) Status() string
- func (r V1TemplateBuildLogsResponse) StatusCode() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHealthCheckMachineRequest ¶
NewHealthCheckMachineRequest constructs an http.Request for the HealthCheckMachine method
func NewHealthCheckRequest ¶
NewHealthCheckRequest constructs an http.Request for the HealthCheck method
func NewV1InfoRequest ¶
NewV1InfoRequest constructs an http.Request for the V1Info method
func NewV1RigsInstancesInstanceIDRequest ¶
func NewV1RigsInstancesInstanceIDRequest(server string, instanceID string, params *V1RigsInstancesInstanceIDParams) (*http.Request, error)
NewV1RigsInstancesInstanceIDRequest constructs an http.Request for the V1RigsInstancesInstanceID method
func NewV1RigsRequest ¶
NewV1RigsRequest constructs an http.Request for the V1Rigs method
func NewV1RigsRigIDCapacityRequest ¶
func NewV1RigsRigIDCapacityRequest(server string, rigID string, body V1RigsRigIDCapacityJSONRequestBody) (*http.Request, error)
NewV1RigsRigIDCapacityRequest calls the generic V1RigsRigIDCapacity builder with application/json body
func NewV1RigsRigIDCapacityRequestWithBody ¶
func NewV1RigsRigIDCapacityRequestWithBody(server string, rigID string, contentType string, body io.Reader) (*http.Request, error)
NewV1RigsRigIDCapacityRequestWithBody constructs an http.Request for the V1RigsRigIDCapacity method, with any body, and a specified content type
func NewV1RigsRigIDErrorsRequest ¶
func NewV1RigsRigIDErrorsRequest(server string, rigID string, params *V1RigsRigIDErrorsParams) (*http.Request, error)
NewV1RigsRigIDErrorsRequest constructs an http.Request for the V1RigsRigIDErrors method
func NewV1RigsRigIDInstancesRequest ¶
NewV1RigsRigIDInstancesRequest constructs an http.Request for the V1RigsRigIDInstances method
func NewV1SandboxLogsRequest ¶
func NewV1SandboxLogsRequest(server string, sandboxID string, params *V1SandboxLogsParams) (*http.Request, error)
NewV1SandboxLogsRequest constructs an http.Request for the V1SandboxLogs method
func NewV1SandboxMetricsRequest ¶
func NewV1SandboxMetricsRequest(server string, sandboxID string, params *V1SandboxMetricsParams) (*http.Request, error)
NewV1SandboxMetricsRequest constructs an http.Request for the V1SandboxMetrics method
func NewV1SandboxesMetricsRequest ¶
func NewV1SandboxesMetricsRequest(server string, params *V1SandboxesMetricsParams) (*http.Request, error)
NewV1SandboxesMetricsRequest constructs an http.Request for the V1SandboxesMetrics method
func NewV1ServiceDiscoveryGetOrchestratorsRequest ¶
NewV1ServiceDiscoveryGetOrchestratorsRequest constructs an http.Request for the V1ServiceDiscoveryGetOrchestrators method
func NewV1ServiceDiscoveryRequest ¶
NewV1ServiceDiscoveryRequest constructs an http.Request for the V1ServiceDiscovery method
func NewV1TemplateBuildLogsRequest ¶
func NewV1TemplateBuildLogsRequest(server string, buildID string, params *V1TemplateBuildLogsParams) (*http.Request, error)
NewV1TemplateBuildLogsRequest constructs an http.Request for the V1TemplateBuildLogs method
Types ¶
type BuildLogEntry ¶
type BuildLogEntry struct {
Fields map[string]string `json:"fields"`
// Level State of the sandbox
Level LogLevel `json:"level"`
// Message Log message content
Message string `json:"message"`
// Timestamp Timestamp of the log entry
Timestamp time.Time `json:"timestamp"`
}
BuildLogEntry defines model for BuildLogEntry.
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) HealthCheck ¶
func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
HealthCheck Health check
Corresponds with GET /health (the `HealthCheck` operationId).
func (*Client) HealthCheckMachine ¶
func (c *Client) HealthCheckMachine(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
HealthCheckMachine Health check machine
Health check for machine status.
Corresponds with GET /health/machine (the `HealthCheckMachine` operationId).
func (*Client) V1Info ¶
V1Info Edge service information (v1)
Edge service information.
Corresponds with GET /v1/info (the `V1Info` operationId).
func (*Client) V1Rigs ¶
V1Rigs List rigs (orchestrator node pools)
List the rigs managed by this cluster with a snapshot of their scaling groups. Clusters without rig management configured return an empty list.
Corresponds with GET /v1/rigs (the `V1Rigs` operationId).
func (*Client) V1RigsInstancesInstanceID ¶
func (c *Client) V1RigsInstancesInstanceID(ctx context.Context, instanceID string, params *V1RigsInstancesInstanceIDParams, reqEditors ...RequestEditorFn) (*http.Response, error)
V1RigsInstancesInstanceID Terminate an instance in a rig
Terminate a specific instance in whichever rig's scaling group it belongs to. The caller chooses whether the rig shrinks or the instance is replaced.
Corresponds with DELETE /v1/rigs/instances/{instanceID} (the `V1RigsInstancesInstanceID` operationId).
func (*Client) V1RigsRigIDCapacity ¶
func (c *Client) V1RigsRigIDCapacity(ctx context.Context, rigID string, body V1RigsRigIDCapacityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
V1RigsRigIDCapacity Set the capacity of a rig
Set the desired instance count on the rig's scaling group. The value is passed to the cloud provider unchanged; violations of the group's bounds or conflicting concurrent operations surface as errors.
Takes a body of the `application/json` content type.
Corresponds with PUT /v1/rigs/{rigID}/capacity (the `V1RigsRigIDCapacity` operationId).
func (*Client) V1RigsRigIDCapacityWithBody ¶
func (c *Client) V1RigsRigIDCapacityWithBody(ctx context.Context, rigID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
V1RigsRigIDCapacityWithBody Set the capacity of a rig
Set the desired instance count on the rig's scaling group. The value is passed to the cloud provider unchanged; violations of the group's bounds or conflicting concurrent operations surface as errors.
Takes any type of body and a specified content type.
Corresponds with PUT /v1/rigs/{rigID}/capacity (the `V1RigsRigIDCapacity` operationId).
func (*Client) V1RigsRigIDErrors ¶
func (c *Client) V1RigsRigIDErrors(ctx context.Context, rigID string, params *V1RigsRigIDErrorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
V1RigsRigIDErrors List recent scaling errors of a rig
List recent scaling errors on the rig's scaling group (e.g. failed instance creations due to resource exhaustion), newest first
Corresponds with GET /v1/rigs/{rigID}/errors (the `V1RigsRigIDErrors` operationId).
func (*Client) V1RigsRigIDInstances ¶
func (c *Client) V1RigsRigIDInstances(ctx context.Context, rigID string, reqEditors ...RequestEditorFn) (*http.Response, error)
V1RigsRigIDInstances List the instances attached to a rig
List the instances attached to the rig's scaling group with their creation time and transition state, sorted by instance ID.
Corresponds with GET /v1/rigs/{rigID}/instances (the `V1RigsRigIDInstances` operationId).
func (*Client) V1SandboxLogs ¶
func (c *Client) V1SandboxLogs(ctx context.Context, sandboxID string, params *V1SandboxLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
V1SandboxLogs List structured sandbox logs (v1)
Corresponds with GET /v1/sandboxes/{sandboxID}/logs (the `V1SandboxLogs` operationId).
func (*Client) V1SandboxMetrics ¶
func (c *Client) V1SandboxMetrics(ctx context.Context, sandboxID string, params *V1SandboxMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
V1SandboxMetrics Time-series metrics for a sandbox (v1)
Corresponds with GET /v1/sandboxes/{sandboxID}/metrics (the `V1SandboxMetrics` operationId).
func (*Client) V1SandboxesMetrics ¶
func (c *Client) V1SandboxesMetrics(ctx context.Context, params *V1SandboxesMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
V1SandboxesMetrics Latest metrics for multiple sandboxes (v1)
Corresponds with GET /v1/sandboxes/metrics (the `V1SandboxesMetrics` operationId).
func (*Client) V1ServiceDiscovery ¶
func (c *Client) V1ServiceDiscovery(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
V1ServiceDiscovery Service discovery information (v1)
Corresponds with GET /v1/service-discovery (the `V1ServiceDiscovery` operationId).
func (*Client) V1ServiceDiscoveryGetOrchestrators ¶
func (c *Client) V1ServiceDiscoveryGetOrchestrators(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
V1ServiceDiscoveryGetOrchestrators List orchestrators (v1)
Deprecated way how to get the orchestrators, use v2 endpoint instead.
Corresponds with GET /v1/service-discovery/nodes/orchestrators (the `V1ServiceDiscoveryGetOrchestrators` operationId). Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
func (*Client) V1TemplateBuildLogs ¶
func (c *Client) V1TemplateBuildLogs(ctx context.Context, buildID string, params *V1TemplateBuildLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
V1TemplateBuildLogs Template build logs (v1)
Corresponds with GET /v1/templates/builds/{buildID}/logs (the `V1TemplateBuildLogs` operationId).
type ClientInterface ¶
type ClientInterface interface {
// HealthCheck Health check
//
// Corresponds with GET /health (the `HealthCheck` operationId).
HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// HealthCheckMachine Health check machine
//
// Health check for machine status.
//
// Corresponds with GET /health/machine (the `HealthCheckMachine` operationId).
HealthCheckMachine(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1Info Edge service information (v1)
//
// Edge service information.
//
// Corresponds with GET /v1/info (the `V1Info` operationId).
V1Info(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1Rigs List rigs (orchestrator node pools)
//
// List the rigs managed by this cluster with a snapshot of their scaling groups. Clusters without rig management configured return an empty list.
//
// Corresponds with GET /v1/rigs (the `V1Rigs` operationId).
V1Rigs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1RigsInstancesInstanceID Terminate an instance in a rig
//
// Terminate a specific instance in whichever rig's scaling group it belongs to. The caller chooses whether the rig shrinks or the instance is replaced.
//
// Corresponds with DELETE /v1/rigs/instances/{instanceID} (the `V1RigsInstancesInstanceID` operationId).
V1RigsInstancesInstanceID(ctx context.Context, instanceID string, params *V1RigsInstancesInstanceIDParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1RigsRigIDCapacityWithBody Set the capacity of a rig
//
// Set the desired instance count on the rig's scaling group. The value is passed to the cloud provider unchanged; violations of the group's bounds or conflicting concurrent operations surface as errors.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /v1/rigs/{rigID}/capacity (the `V1RigsRigIDCapacity` operationId).
V1RigsRigIDCapacityWithBody(ctx context.Context, rigID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1RigsRigIDCapacity Set the capacity of a rig
//
// Set the desired instance count on the rig's scaling group. The value is passed to the cloud provider unchanged; violations of the group's bounds or conflicting concurrent operations surface as errors.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /v1/rigs/{rigID}/capacity (the `V1RigsRigIDCapacity` operationId).
V1RigsRigIDCapacity(ctx context.Context, rigID string, body V1RigsRigIDCapacityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1RigsRigIDErrors List recent scaling errors of a rig
//
// List recent scaling errors on the rig's scaling group (e.g. failed instance creations due to resource exhaustion), newest first
//
// Corresponds with GET /v1/rigs/{rigID}/errors (the `V1RigsRigIDErrors` operationId).
V1RigsRigIDErrors(ctx context.Context, rigID string, params *V1RigsRigIDErrorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1RigsRigIDInstances List the instances attached to a rig
//
// List the instances attached to the rig's scaling group with their creation time and transition state, sorted by instance ID.
//
// Corresponds with GET /v1/rigs/{rigID}/instances (the `V1RigsRigIDInstances` operationId).
V1RigsRigIDInstances(ctx context.Context, rigID string, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1SandboxesMetrics Latest metrics for multiple sandboxes (v1)
//
// Corresponds with GET /v1/sandboxes/metrics (the `V1SandboxesMetrics` operationId).
V1SandboxesMetrics(ctx context.Context, params *V1SandboxesMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1SandboxLogs List structured sandbox logs (v1)
//
// Corresponds with GET /v1/sandboxes/{sandboxID}/logs (the `V1SandboxLogs` operationId).
V1SandboxLogs(ctx context.Context, sandboxID string, params *V1SandboxLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1SandboxMetrics Time-series metrics for a sandbox (v1)
//
// Corresponds with GET /v1/sandboxes/{sandboxID}/metrics (the `V1SandboxMetrics` operationId).
V1SandboxMetrics(ctx context.Context, sandboxID string, params *V1SandboxMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1ServiceDiscovery Service discovery information (v1)
//
// Corresponds with GET /v1/service-discovery (the `V1ServiceDiscovery` operationId).
V1ServiceDiscovery(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1ServiceDiscoveryGetOrchestrators List orchestrators (v1)
//
// Deprecated way how to get the orchestrators, use v2 endpoint instead.
//
// Corresponds with GET /v1/service-discovery/nodes/orchestrators (the `V1ServiceDiscoveryGetOrchestrators` operationId).
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
V1ServiceDiscoveryGetOrchestrators(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// V1TemplateBuildLogs Template build logs (v1)
//
// Corresponds with GET /v1/templates/builds/{buildID}/logs (the `V1TemplateBuildLogs` operationId).
V1TemplateBuildLogs(ctx context.Context, buildID string, params *V1TemplateBuildLogsParams, 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) HealthCheckMachineWithResponse ¶
func (c *ClientWithResponses) HealthCheckMachineWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckMachineResponse, error)
HealthCheckMachineWithResponse Health check machine
Health check for machine status.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /health/machine (the `HealthCheckMachine` operationId).
func (*ClientWithResponses) HealthCheckWithResponse ¶
func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
HealthCheckWithResponse Health check
Returns a wrapper object for the known response body format(s).
Corresponds with GET /health (the `HealthCheck` operationId).
func (*ClientWithResponses) V1InfoWithResponse ¶
func (c *ClientWithResponses) V1InfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1InfoResponse, error)
V1InfoWithResponse Edge service information (v1)
Edge service information.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/info (the `V1Info` operationId).
func (*ClientWithResponses) V1RigsInstancesInstanceIDWithResponse ¶
func (c *ClientWithResponses) V1RigsInstancesInstanceIDWithResponse(ctx context.Context, instanceID string, params *V1RigsInstancesInstanceIDParams, reqEditors ...RequestEditorFn) (*V1RigsInstancesInstanceIDResponse, error)
V1RigsInstancesInstanceIDWithResponse Terminate an instance in a rig
Terminate a specific instance in whichever rig's scaling group it belongs to. The caller chooses whether the rig shrinks or the instance is replaced.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/rigs/instances/{instanceID} (the `V1RigsInstancesInstanceID` operationId).
func (*ClientWithResponses) V1RigsRigIDCapacityWithBodyWithResponse ¶
func (c *ClientWithResponses) V1RigsRigIDCapacityWithBodyWithResponse(ctx context.Context, rigID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1RigsRigIDCapacityResponse, error)
V1RigsRigIDCapacityWithBodyWithResponse Set the capacity of a rig
Set the desired instance count on the rig's scaling group. The value is passed to the cloud provider unchanged; violations of the group's bounds or conflicting concurrent operations surface as errors.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/rigs/{rigID}/capacity (the `V1RigsRigIDCapacity` operationId).
func (*ClientWithResponses) V1RigsRigIDCapacityWithResponse ¶
func (c *ClientWithResponses) V1RigsRigIDCapacityWithResponse(ctx context.Context, rigID string, body V1RigsRigIDCapacityJSONRequestBody, reqEditors ...RequestEditorFn) (*V1RigsRigIDCapacityResponse, error)
V1RigsRigIDCapacityWithResponse Set the capacity of a rig
Set the desired instance count on the rig's scaling group. The value is passed to the cloud provider unchanged; violations of the group's bounds or conflicting concurrent operations surface as errors.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/rigs/{rigID}/capacity (the `V1RigsRigIDCapacity` operationId).
func (*ClientWithResponses) V1RigsRigIDErrorsWithResponse ¶
func (c *ClientWithResponses) V1RigsRigIDErrorsWithResponse(ctx context.Context, rigID string, params *V1RigsRigIDErrorsParams, reqEditors ...RequestEditorFn) (*V1RigsRigIDErrorsResponse, error)
V1RigsRigIDErrorsWithResponse List recent scaling errors of a rig
List recent scaling errors on the rig's scaling group (e.g. failed instance creations due to resource exhaustion), newest first
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/rigs/{rigID}/errors (the `V1RigsRigIDErrors` operationId).
func (*ClientWithResponses) V1RigsRigIDInstancesWithResponse ¶
func (c *ClientWithResponses) V1RigsRigIDInstancesWithResponse(ctx context.Context, rigID string, reqEditors ...RequestEditorFn) (*V1RigsRigIDInstancesResponse, error)
V1RigsRigIDInstancesWithResponse List the instances attached to a rig
List the instances attached to the rig's scaling group with their creation time and transition state, sorted by instance ID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/rigs/{rigID}/instances (the `V1RigsRigIDInstances` operationId).
func (*ClientWithResponses) V1RigsWithResponse ¶
func (c *ClientWithResponses) V1RigsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1RigsResponse, error)
V1RigsWithResponse List rigs (orchestrator node pools)
List the rigs managed by this cluster with a snapshot of their scaling groups. Clusters without rig management configured return an empty list.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/rigs (the `V1Rigs` operationId).
func (*ClientWithResponses) V1SandboxLogsWithResponse ¶
func (c *ClientWithResponses) V1SandboxLogsWithResponse(ctx context.Context, sandboxID string, params *V1SandboxLogsParams, reqEditors ...RequestEditorFn) (*V1SandboxLogsResponse, error)
V1SandboxLogsWithResponse List structured sandbox logs (v1)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/sandboxes/{sandboxID}/logs (the `V1SandboxLogs` operationId).
func (*ClientWithResponses) V1SandboxMetricsWithResponse ¶
func (c *ClientWithResponses) V1SandboxMetricsWithResponse(ctx context.Context, sandboxID string, params *V1SandboxMetricsParams, reqEditors ...RequestEditorFn) (*V1SandboxMetricsResponse, error)
V1SandboxMetricsWithResponse Time-series metrics for a sandbox (v1)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/sandboxes/{sandboxID}/metrics (the `V1SandboxMetrics` operationId).
func (*ClientWithResponses) V1SandboxesMetricsWithResponse ¶
func (c *ClientWithResponses) V1SandboxesMetricsWithResponse(ctx context.Context, params *V1SandboxesMetricsParams, reqEditors ...RequestEditorFn) (*V1SandboxesMetricsResponse, error)
V1SandboxesMetricsWithResponse Latest metrics for multiple sandboxes (v1)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/sandboxes/metrics (the `V1SandboxesMetrics` operationId).
func (*ClientWithResponses) V1ServiceDiscoveryGetOrchestratorsWithResponse
deprecated
func (c *ClientWithResponses) V1ServiceDiscoveryGetOrchestratorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1ServiceDiscoveryGetOrchestratorsResponse, error)
V1ServiceDiscoveryGetOrchestratorsWithResponse List orchestrators (v1)
Deprecated way how to get the orchestrators, use v2 endpoint instead.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/service-discovery/nodes/orchestrators (the `V1ServiceDiscoveryGetOrchestrators` operationId).
Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
func (*ClientWithResponses) V1ServiceDiscoveryWithResponse ¶
func (c *ClientWithResponses) V1ServiceDiscoveryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1ServiceDiscoveryResponse, error)
V1ServiceDiscoveryWithResponse Service discovery information (v1)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/service-discovery (the `V1ServiceDiscovery` operationId).
func (*ClientWithResponses) V1TemplateBuildLogsWithResponse ¶
func (c *ClientWithResponses) V1TemplateBuildLogsWithResponse(ctx context.Context, buildID string, params *V1TemplateBuildLogsParams, reqEditors ...RequestEditorFn) (*V1TemplateBuildLogsResponse, error)
V1TemplateBuildLogsWithResponse Template build logs (v1)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/templates/builds/{buildID}/logs (the `V1TemplateBuildLogs` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// HealthCheckWithResponse Health check
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /health (the `HealthCheck` operationId).
HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
// HealthCheckMachineWithResponse Health check machine
//
// Health check for machine status.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /health/machine (the `HealthCheckMachine` operationId).
HealthCheckMachineWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckMachineResponse, error)
// V1InfoWithResponse Edge service information (v1)
//
// Edge service information.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/info (the `V1Info` operationId).
V1InfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1InfoResponse, error)
// V1RigsWithResponse List rigs (orchestrator node pools)
//
// List the rigs managed by this cluster with a snapshot of their scaling groups. Clusters without rig management configured return an empty list.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/rigs (the `V1Rigs` operationId).
V1RigsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1RigsResponse, error)
// V1RigsInstancesInstanceIDWithResponse Terminate an instance in a rig
//
// Terminate a specific instance in whichever rig's scaling group it belongs to. The caller chooses whether the rig shrinks or the instance is replaced.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/rigs/instances/{instanceID} (the `V1RigsInstancesInstanceID` operationId).
V1RigsInstancesInstanceIDWithResponse(ctx context.Context, instanceID string, params *V1RigsInstancesInstanceIDParams, reqEditors ...RequestEditorFn) (*V1RigsInstancesInstanceIDResponse, error)
// V1RigsRigIDCapacityWithBodyWithResponse Set the capacity of a rig
//
// Set the desired instance count on the rig's scaling group. The value is passed to the cloud provider unchanged; violations of the group's bounds or conflicting concurrent operations surface as errors.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/rigs/{rigID}/capacity (the `V1RigsRigIDCapacity` operationId).
V1RigsRigIDCapacityWithBodyWithResponse(ctx context.Context, rigID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1RigsRigIDCapacityResponse, error)
// V1RigsRigIDCapacityWithResponse Set the capacity of a rig
//
// Set the desired instance count on the rig's scaling group. The value is passed to the cloud provider unchanged; violations of the group's bounds or conflicting concurrent operations surface as errors.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/rigs/{rigID}/capacity (the `V1RigsRigIDCapacity` operationId).
V1RigsRigIDCapacityWithResponse(ctx context.Context, rigID string, body V1RigsRigIDCapacityJSONRequestBody, reqEditors ...RequestEditorFn) (*V1RigsRigIDCapacityResponse, error)
// V1RigsRigIDErrorsWithResponse List recent scaling errors of a rig
//
// List recent scaling errors on the rig's scaling group (e.g. failed instance creations due to resource exhaustion), newest first
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/rigs/{rigID}/errors (the `V1RigsRigIDErrors` operationId).
V1RigsRigIDErrorsWithResponse(ctx context.Context, rigID string, params *V1RigsRigIDErrorsParams, reqEditors ...RequestEditorFn) (*V1RigsRigIDErrorsResponse, error)
// V1RigsRigIDInstancesWithResponse List the instances attached to a rig
//
// List the instances attached to the rig's scaling group with their creation time and transition state, sorted by instance ID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/rigs/{rigID}/instances (the `V1RigsRigIDInstances` operationId).
V1RigsRigIDInstancesWithResponse(ctx context.Context, rigID string, reqEditors ...RequestEditorFn) (*V1RigsRigIDInstancesResponse, error)
// V1SandboxesMetricsWithResponse Latest metrics for multiple sandboxes (v1)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/sandboxes/metrics (the `V1SandboxesMetrics` operationId).
V1SandboxesMetricsWithResponse(ctx context.Context, params *V1SandboxesMetricsParams, reqEditors ...RequestEditorFn) (*V1SandboxesMetricsResponse, error)
// V1SandboxLogsWithResponse List structured sandbox logs (v1)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/sandboxes/{sandboxID}/logs (the `V1SandboxLogs` operationId).
V1SandboxLogsWithResponse(ctx context.Context, sandboxID string, params *V1SandboxLogsParams, reqEditors ...RequestEditorFn) (*V1SandboxLogsResponse, error)
// V1SandboxMetricsWithResponse Time-series metrics for a sandbox (v1)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/sandboxes/{sandboxID}/metrics (the `V1SandboxMetrics` operationId).
V1SandboxMetricsWithResponse(ctx context.Context, sandboxID string, params *V1SandboxMetricsParams, reqEditors ...RequestEditorFn) (*V1SandboxMetricsResponse, error)
// V1ServiceDiscoveryWithResponse Service discovery information (v1)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/service-discovery (the `V1ServiceDiscovery` operationId).
V1ServiceDiscoveryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1ServiceDiscoveryResponse, error)
// V1ServiceDiscoveryGetOrchestratorsWithResponse List orchestrators (v1)
//
// Deprecated way how to get the orchestrators, use v2 endpoint instead.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/service-discovery/nodes/orchestrators (the `V1ServiceDiscoveryGetOrchestrators` operationId).
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
V1ServiceDiscoveryGetOrchestratorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1ServiceDiscoveryGetOrchestratorsResponse, error)
// V1TemplateBuildLogsWithResponse Template build logs (v1)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/templates/builds/{buildID}/logs (the `V1TemplateBuildLogs` operationId).
V1TemplateBuildLogsWithResponse(ctx context.Context, buildID string, params *V1TemplateBuildLogsParams, reqEditors ...RequestEditorFn) (*V1TemplateBuildLogsResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ClusterNodeInfo ¶
type ClusterNodeInfo struct {
// NodeID Node ID
NodeID string `json:"nodeID"`
// ServiceInstanceID Service ID
ServiceInstanceID string `json:"serviceInstanceID"`
// ServiceStartup Time when the node started
ServiceStartup time.Time `json:"serviceStartup"`
// ServiceStatus State of the cluster node
ServiceStatus ClusterNodeStatus `json:"serviceStatus"`
// ServiceVersion Version of the service
ServiceVersion string `json:"serviceVersion"`
// ServiceVersionCommit Version of the service
ServiceVersionCommit string `json:"serviceVersionCommit"`
}
ClusterNodeInfo defines model for ClusterNodeInfo.
type ClusterNodeStatus ¶
type ClusterNodeStatus string
ClusterNodeStatus State of the cluster node
const ( Draining ClusterNodeStatus = "draining" Healthy ClusterNodeStatus = "healthy" Standby ClusterNodeStatus = "standby" Unhealthy ClusterNodeStatus = "unhealthy" )
Defines values for ClusterNodeStatus.
func (ClusterNodeStatus) Valid ¶
func (e ClusterNodeStatus) Valid() bool
Valid indicates whether the value is a known member of the ClusterNodeStatus enum.
type ClusterOrchestratorNode ¶
type ClusterOrchestratorNode struct {
// NodeID Node ID
NodeID string `json:"nodeID"`
Roles []ClusterOrchestratorRole `json:"roles"`
// ServiceHost Node private host address and service port
ServiceHost string `json:"serviceHost"`
// ServiceInstanceID Service instance ID
ServiceInstanceID string `json:"serviceInstanceID"`
// ServiceStartedAt Time when the node was registered
ServiceStartedAt time.Time `json:"serviceStartedAt"`
// ServiceStatus State of the cluster node
ServiceStatus ClusterNodeStatus `json:"serviceStatus"`
// ServiceVersion Service Version
ServiceVersion string `json:"serviceVersion"`
// ServiceVersionCommit Service Version
ServiceVersionCommit string `json:"serviceVersionCommit"`
}
ClusterOrchestratorNode defines model for ClusterOrchestratorNode.
type ClusterOrchestratorRole ¶
type ClusterOrchestratorRole string
ClusterOrchestratorRole Capability of the orchestrator
const ( Orchestrator ClusterOrchestratorRole = "orchestrator" TemplateBuilder ClusterOrchestratorRole = "template-builder" )
Defines values for ClusterOrchestratorRole.
func (ClusterOrchestratorRole) Valid ¶
func (e ClusterOrchestratorRole) Valid() bool
Valid indicates whether the value is a known member of the ClusterOrchestratorRole enum.
type ClusterServiceDiscovery ¶
type ClusterServiceDiscovery struct {
Orchestrators []ClusterOrchestratorNode `json:"orchestrators"`
}
ClusterServiceDiscovery defines model for ClusterServiceDiscovery.
type Error ¶
type Error struct {
// Code Error code
Code int32 `json:"code"`
// Message Error
Message string `json:"message"`
}
Error defines model for Error.
type HealthCheckMachineResponse ¶
func ParseHealthCheckMachineResponse ¶
func ParseHealthCheckMachineResponse(rsp *http.Response) (*HealthCheckMachineResponse, error)
ParseHealthCheckMachineResponse parses an HTTP response from a HealthCheckMachineWithResponse call
func (HealthCheckMachineResponse) ContentType ¶
func (r HealthCheckMachineResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (HealthCheckMachineResponse) GetBody ¶
func (r HealthCheckMachineResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (HealthCheckMachineResponse) Status ¶
func (r HealthCheckMachineResponse) Status() string
Status returns HTTPResponse.Status
func (HealthCheckMachineResponse) StatusCode ¶
func (r HealthCheckMachineResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HealthCheckResponse ¶
func ParseHealthCheckResponse ¶
func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error)
ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call
func (HealthCheckResponse) ContentType ¶
func (r HealthCheckResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (HealthCheckResponse) GetBody ¶
func (r HealthCheckResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (HealthCheckResponse) Status ¶
func (r HealthCheckResponse) Status() string
Status returns HTTPResponse.Status
func (HealthCheckResponse) StatusCode ¶
func (r HealthCheckResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type LogLevel ¶
type LogLevel string
LogLevel State of the sandbox
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Rig ¶
type Rig struct {
// CapacityCurrent Number of instances currently attached to the rig
CapacityCurrent int32 `json:"capacityCurrent"`
// CapacityDesired Desired number of instances in the rig
CapacityDesired int32 `json:"capacityDesired"`
// CapacityMax Maximum capacity enforced on the rig's scaling group. Omitted when nothing enforces bounds (GCP MIG without an active autoscaler).
CapacityMax *int32 `json:"capacityMax,omitempty"`
// CapacityMin Minimum capacity enforced on the rig's scaling group. Omitted when nothing enforces bounds (GCP MIG without an active autoscaler).
CapacityMin *int32 `json:"capacityMin,omitempty"`
// Id Rig identifier (e.g. "default")
Id string `json:"id"`
// Provider Cloud provider backing the rig ("aws" or "gcp")
Provider string `json:"provider"`
// ResourceId Canonical cloud resource ID of the scaling group backing the rig (ARN on AWS, self-link on GCP)
ResourceId string `json:"resourceId"`
}
Rig An orchestrator node pool backed by one cloud scaling group
type RigCapacityRequest ¶
type RigCapacityRequest struct {
// Desired Absolute desired number of instances in the rig
Desired int32 `json:"desired"`
}
RigCapacityRequest Desired capacity to set on the rig's scaling group
type RigError ¶
type RigError struct {
// Action Action being performed when the error occurred (e.g. CREATING)
Action *string `json:"action,omitempty"`
// Code Provider-specific error code (e.g. ZONE_RESOURCE_POOL_EXHAUSTED, Failed)
Code string `json:"code"`
// Instance Instance the error relates to, if any
Instance *string `json:"instance,omitempty"`
// Message Human-readable error message
Message string `json:"message"`
// Timestamp When the error occurred
Timestamp time.Time `json:"timestamp"`
}
RigError Scaling error on the rig's scaling group, e.g. a failed instance creation due to resource exhaustion
type RigInstance ¶
type RigInstance struct {
// CreatedAt When the provider created the instance. Null while the instance is transitioning.
CreatedAt *time.Time `json:"createdAt"`
// Id Provider instance ID (EC2 instance ID on AWS, instance name on GCP), also the node ID the orchestrator reports
Id string `json:"id"`
// Terminating The instance is on its way out of the group and can never become healthy again
Terminating bool `json:"terminating"`
// Transitioning The provider is creating, deleting, recreating or otherwise mutating the instance
Transitioning bool `json:"transitioning"`
}
RigInstance An instance attached to a rig's scaling group
type RigInstancesResponse ¶
type RigInstancesResponse struct {
Items []RigInstance `json:"items"`
}
RigInstancesResponse Instances attached to a rig's scaling group. Wrapped in an object so the endpoint can grow additional fields without breaking clients.
type RigsResponse ¶
type RigsResponse struct {
Items []Rig `json:"items"`
}
RigsResponse Rigs managed by this cluster. Wrapped in an object so the endpoint can grow additional fields without breaking clients.
type SandboxLog ¶
type SandboxLog struct {
// Line Log line content
Line string `json:"line"`
// Timestamp Timestamp of the log entry
Timestamp time.Time `json:"timestamp"`
}
SandboxLog Log entry with timestamp and line
type SandboxLogEntry ¶
type SandboxLogEntry struct {
Fields map[string]string `json:"fields"`
// Level State of the sandbox
Level LogLevel `json:"level"`
// Message Log message content
Message string `json:"message"`
// Timestamp Timestamp of the log entry
Timestamp time.Time `json:"timestamp"`
}
SandboxLogEntry defines model for SandboxLogEntry.
type SandboxLogsResponse ¶
type SandboxLogsResponse struct {
// LogEntries Structured logs of the sandbox
LogEntries []SandboxLogEntry `json:"logEntries"`
// Logs Sandbox logs
Logs []SandboxLog `json:"logs"`
}
SandboxLogsResponse defines model for SandboxLogsResponse.
type SandboxMetric ¶
type SandboxMetric struct {
// CpuCount Number of CPUs
CpuCount int32 `json:"cpu_count"`
// CpuUsedPct CPU usage percentage
CpuUsedPct float32 `json:"cpu_used_pct"`
// DiskTotal Total disk space in bytes
DiskTotal int64 `json:"disk_total"`
// DiskUsed Used disk space in bytes
DiskUsed int64 `json:"disk_used"`
// MemCache Cached memory (page cache) in bytes
MemCache int64 `json:"mem_cache"`
// MemTotal Total memory in bytes
MemTotal int64 `json:"mem_total"`
// MemUsed Used memory in bytes
MemUsed int64 `json:"mem_used"`
// Timestamp Timestamp of the metric
Timestamp time.Time `json:"timestamp"`
// TimestampUnix Unix timestamp in seconds
TimestampUnix int64 `json:"timestamp_unix"`
}
SandboxMetric defines model for SandboxMetric.
type SandboxesWithMetrics ¶
type SandboxesWithMetrics struct {
// Sandboxes Map of sandbox IDs to their latest metrics
Sandboxes map[string]SandboxMetric `json:"sandboxes"`
}
SandboxesWithMetrics defines model for SandboxesWithMetrics.
type TemplateBuildLogsResponse ¶
type TemplateBuildLogsResponse struct {
// LogEntries Build logs structured
LogEntries []BuildLogEntry `json:"logEntries"`
}
TemplateBuildLogsResponse defines model for TemplateBuildLogsResponse.
type V1InfoResponse ¶
type V1InfoResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ClusterNodeInfo
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *N500
}
func ParseV1InfoResponse ¶
func ParseV1InfoResponse(rsp *http.Response) (*V1InfoResponse, error)
ParseV1InfoResponse parses an HTTP response from a V1InfoWithResponse call
func (V1InfoResponse) ContentType ¶
func (r V1InfoResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (V1InfoResponse) GetBody ¶
func (r V1InfoResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (V1InfoResponse) GetJSON200 ¶
func (r V1InfoResponse) GetJSON200() *ClusterNodeInfo
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (V1InfoResponse) GetJSON401 ¶
func (r V1InfoResponse) GetJSON401() *N401
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (V1InfoResponse) GetJSON500 ¶
func (r V1InfoResponse) GetJSON500() *N500
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (V1InfoResponse) Status ¶
func (r V1InfoResponse) Status() string
Status returns HTTPResponse.Status
func (V1InfoResponse) StatusCode ¶
func (r V1InfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1RigsInstancesInstanceIDParams ¶
type V1RigsInstancesInstanceIDParams struct {
// DecrementDesired When true, desired capacity is decremented (rig shrinks); when false, the scaling group launches a replacement instance
DecrementDesired bool `form:"decrementDesired" json:"decrementDesired"`
}
V1RigsInstancesInstanceIDParams defines parameters for V1RigsInstancesInstanceID.
type V1RigsInstancesInstanceIDResponse ¶
type V1RigsInstancesInstanceIDResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *N409
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *N500
// JSON501 the response for an HTTP 501 `application/json` response
JSON501 *N501
}
func ParseV1RigsInstancesInstanceIDResponse ¶
func ParseV1RigsInstancesInstanceIDResponse(rsp *http.Response) (*V1RigsInstancesInstanceIDResponse, error)
ParseV1RigsInstancesInstanceIDResponse parses an HTTP response from a V1RigsInstancesInstanceIDWithResponse call
func (V1RigsInstancesInstanceIDResponse) ContentType ¶
func (r V1RigsInstancesInstanceIDResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (V1RigsInstancesInstanceIDResponse) GetBody ¶
func (r V1RigsInstancesInstanceIDResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (V1RigsInstancesInstanceIDResponse) GetJSON400 ¶
func (r V1RigsInstancesInstanceIDResponse) GetJSON400() *N400
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (V1RigsInstancesInstanceIDResponse) GetJSON401 ¶
func (r V1RigsInstancesInstanceIDResponse) GetJSON401() *N401
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (V1RigsInstancesInstanceIDResponse) GetJSON404 ¶
func (r V1RigsInstancesInstanceIDResponse) GetJSON404() *N404
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (V1RigsInstancesInstanceIDResponse) GetJSON409 ¶
func (r V1RigsInstancesInstanceIDResponse) GetJSON409() *N409
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (V1RigsInstancesInstanceIDResponse) GetJSON500 ¶
func (r V1RigsInstancesInstanceIDResponse) GetJSON500() *N500
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (V1RigsInstancesInstanceIDResponse) GetJSON501 ¶
func (r V1RigsInstancesInstanceIDResponse) GetJSON501() *N501
GetJSON501 returns the response for an HTTP 501 `application/json` response
func (V1RigsInstancesInstanceIDResponse) Status ¶
func (r V1RigsInstancesInstanceIDResponse) Status() string
Status returns HTTPResponse.Status
func (V1RigsInstancesInstanceIDResponse) StatusCode ¶
func (r V1RigsInstancesInstanceIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1RigsResponse ¶
type V1RigsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RigsResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *N500
}
func ParseV1RigsResponse ¶
func ParseV1RigsResponse(rsp *http.Response) (*V1RigsResponse, error)
ParseV1RigsResponse parses an HTTP response from a V1RigsWithResponse call
func (V1RigsResponse) ContentType ¶
func (r V1RigsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (V1RigsResponse) GetBody ¶
func (r V1RigsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (V1RigsResponse) GetJSON200 ¶
func (r V1RigsResponse) GetJSON200() *RigsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (V1RigsResponse) GetJSON401 ¶
func (r V1RigsResponse) GetJSON401() *N401
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (V1RigsResponse) GetJSON500 ¶
func (r V1RigsResponse) GetJSON500() *N500
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (V1RigsResponse) Status ¶
func (r V1RigsResponse) Status() string
Status returns HTTPResponse.Status
func (V1RigsResponse) StatusCode ¶
func (r V1RigsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1RigsRigIDCapacityJSONRequestBody ¶
type V1RigsRigIDCapacityJSONRequestBody = RigCapacityRequest
V1RigsRigIDCapacityJSONRequestBody defines body for V1RigsRigIDCapacity for application/json ContentType.
type V1RigsRigIDCapacityResponse ¶
type V1RigsRigIDCapacityResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *N409
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *N500
// JSON501 the response for an HTTP 501 `application/json` response
JSON501 *N501
}
func ParseV1RigsRigIDCapacityResponse ¶
func ParseV1RigsRigIDCapacityResponse(rsp *http.Response) (*V1RigsRigIDCapacityResponse, error)
ParseV1RigsRigIDCapacityResponse parses an HTTP response from a V1RigsRigIDCapacityWithResponse call
func (V1RigsRigIDCapacityResponse) ContentType ¶
func (r V1RigsRigIDCapacityResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (V1RigsRigIDCapacityResponse) GetBody ¶
func (r V1RigsRigIDCapacityResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (V1RigsRigIDCapacityResponse) GetJSON400 ¶
func (r V1RigsRigIDCapacityResponse) GetJSON400() *N400
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (V1RigsRigIDCapacityResponse) GetJSON401 ¶
func (r V1RigsRigIDCapacityResponse) GetJSON401() *N401
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (V1RigsRigIDCapacityResponse) GetJSON404 ¶
func (r V1RigsRigIDCapacityResponse) GetJSON404() *N404
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (V1RigsRigIDCapacityResponse) GetJSON409 ¶
func (r V1RigsRigIDCapacityResponse) GetJSON409() *N409
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (V1RigsRigIDCapacityResponse) GetJSON500 ¶
func (r V1RigsRigIDCapacityResponse) GetJSON500() *N500
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (V1RigsRigIDCapacityResponse) GetJSON501 ¶
func (r V1RigsRigIDCapacityResponse) GetJSON501() *N501
GetJSON501 returns the response for an HTTP 501 `application/json` response
func (V1RigsRigIDCapacityResponse) Status ¶
func (r V1RigsRigIDCapacityResponse) Status() string
Status returns HTTPResponse.Status
func (V1RigsRigIDCapacityResponse) StatusCode ¶
func (r V1RigsRigIDCapacityResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1RigsRigIDErrorsParams ¶
type V1RigsRigIDErrorsParams struct {
// Limit Maximum number of errors to return
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
}
V1RigsRigIDErrorsParams defines parameters for V1RigsRigIDErrors.
type V1RigsRigIDErrorsResponse ¶
type V1RigsRigIDErrorsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]RigError
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *N500
// JSON501 the response for an HTTP 501 `application/json` response
JSON501 *N501
}
func ParseV1RigsRigIDErrorsResponse ¶
func ParseV1RigsRigIDErrorsResponse(rsp *http.Response) (*V1RigsRigIDErrorsResponse, error)
ParseV1RigsRigIDErrorsResponse parses an HTTP response from a V1RigsRigIDErrorsWithResponse call
func (V1RigsRigIDErrorsResponse) ContentType ¶
func (r V1RigsRigIDErrorsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (V1RigsRigIDErrorsResponse) GetBody ¶
func (r V1RigsRigIDErrorsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (V1RigsRigIDErrorsResponse) GetJSON200 ¶
func (r V1RigsRigIDErrorsResponse) GetJSON200() *[]RigError
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (V1RigsRigIDErrorsResponse) GetJSON400 ¶
func (r V1RigsRigIDErrorsResponse) GetJSON400() *N400
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (V1RigsRigIDErrorsResponse) GetJSON401 ¶
func (r V1RigsRigIDErrorsResponse) GetJSON401() *N401
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (V1RigsRigIDErrorsResponse) GetJSON404 ¶
func (r V1RigsRigIDErrorsResponse) GetJSON404() *N404
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (V1RigsRigIDErrorsResponse) GetJSON500 ¶
func (r V1RigsRigIDErrorsResponse) GetJSON500() *N500
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (V1RigsRigIDErrorsResponse) GetJSON501 ¶
func (r V1RigsRigIDErrorsResponse) GetJSON501() *N501
GetJSON501 returns the response for an HTTP 501 `application/json` response
func (V1RigsRigIDErrorsResponse) Status ¶
func (r V1RigsRigIDErrorsResponse) Status() string
Status returns HTTPResponse.Status
func (V1RigsRigIDErrorsResponse) StatusCode ¶
func (r V1RigsRigIDErrorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1RigsRigIDInstancesResponse ¶
type V1RigsRigIDInstancesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RigInstancesResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *N500
// JSON501 the response for an HTTP 501 `application/json` response
JSON501 *N501
}
func ParseV1RigsRigIDInstancesResponse ¶
func ParseV1RigsRigIDInstancesResponse(rsp *http.Response) (*V1RigsRigIDInstancesResponse, error)
ParseV1RigsRigIDInstancesResponse parses an HTTP response from a V1RigsRigIDInstancesWithResponse call
func (V1RigsRigIDInstancesResponse) ContentType ¶
func (r V1RigsRigIDInstancesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (V1RigsRigIDInstancesResponse) GetBody ¶
func (r V1RigsRigIDInstancesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (V1RigsRigIDInstancesResponse) GetJSON200 ¶
func (r V1RigsRigIDInstancesResponse) GetJSON200() *RigInstancesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (V1RigsRigIDInstancesResponse) GetJSON400 ¶
func (r V1RigsRigIDInstancesResponse) GetJSON400() *N400
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (V1RigsRigIDInstancesResponse) GetJSON401 ¶
func (r V1RigsRigIDInstancesResponse) GetJSON401() *N401
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (V1RigsRigIDInstancesResponse) GetJSON404 ¶
func (r V1RigsRigIDInstancesResponse) GetJSON404() *N404
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (V1RigsRigIDInstancesResponse) GetJSON500 ¶
func (r V1RigsRigIDInstancesResponse) GetJSON500() *N500
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (V1RigsRigIDInstancesResponse) GetJSON501 ¶
func (r V1RigsRigIDInstancesResponse) GetJSON501() *N501
GetJSON501 returns the response for an HTTP 501 `application/json` response
func (V1RigsRigIDInstancesResponse) Status ¶
func (r V1RigsRigIDInstancesResponse) Status() string
Status returns HTTPResponse.Status
func (V1RigsRigIDInstancesResponse) StatusCode ¶
func (r V1RigsRigIDInstancesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1SandboxLogsParams ¶
type V1SandboxLogsParams struct {
TeamID string `form:"teamID" json:"teamID"`
// Start Starting timestamp of the logs that should be returned in milliseconds
Start *int64 `form:"start,omitempty" json:"start,omitempty"`
// End Ending timestamp of the logs that should be returned in milliseconds
End *int64 `form:"end,omitempty" json:"end,omitempty"`
// Limit Maximum number of logs that should be returned
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
// Direction Direction of the logs that should be returned. Defaults to forward
Direction *V1SandboxLogsParamsDirection `form:"direction,omitempty" json:"direction,omitempty"`
// Level Minimum log level to return. Logs below this level are excluded
Level *LogLevel `form:"level,omitempty" json:"level,omitempty"`
// Search Case-sensitive substring match on log message content
Search *string `form:"search,omitempty" json:"search,omitempty"`
}
V1SandboxLogsParams defines parameters for V1SandboxLogs.
type V1SandboxLogsParamsDirection ¶
type V1SandboxLogsParamsDirection string
V1SandboxLogsParamsDirection defines parameters for V1SandboxLogs.
const ( V1SandboxLogsParamsDirectionBackward V1SandboxLogsParamsDirection = "backward" V1SandboxLogsParamsDirectionForward V1SandboxLogsParamsDirection = "forward" )
Defines values for V1SandboxLogsParamsDirection.
func (V1SandboxLogsParamsDirection) Valid ¶
func (e V1SandboxLogsParamsDirection) Valid() bool
Valid indicates whether the value is a known member of the V1SandboxLogsParamsDirection enum.
type V1SandboxLogsResponse ¶
type V1SandboxLogsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SandboxLogsResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *N500
}
func ParseV1SandboxLogsResponse ¶
func ParseV1SandboxLogsResponse(rsp *http.Response) (*V1SandboxLogsResponse, error)
ParseV1SandboxLogsResponse parses an HTTP response from a V1SandboxLogsWithResponse call
func (V1SandboxLogsResponse) ContentType ¶
func (r V1SandboxLogsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (V1SandboxLogsResponse) GetBody ¶
func (r V1SandboxLogsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (V1SandboxLogsResponse) GetJSON200 ¶
func (r V1SandboxLogsResponse) GetJSON200() *SandboxLogsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (V1SandboxLogsResponse) GetJSON400 ¶
func (r V1SandboxLogsResponse) GetJSON400() *N400
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (V1SandboxLogsResponse) GetJSON401 ¶
func (r V1SandboxLogsResponse) GetJSON401() *N401
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (V1SandboxLogsResponse) GetJSON500 ¶
func (r V1SandboxLogsResponse) GetJSON500() *N500
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (V1SandboxLogsResponse) Status ¶
func (r V1SandboxLogsResponse) Status() string
Status returns HTTPResponse.Status
func (V1SandboxLogsResponse) StatusCode ¶
func (r V1SandboxLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1SandboxMetricsParams ¶
type V1SandboxMetricsParams struct {
// TeamID Team ID that owns the sandbox
TeamID string `form:"teamID" json:"teamID"`
// Start Start time in Unix seconds
Start *int64 `form:"start,omitempty" json:"start,omitempty"`
// End End time in Unix seconds
End *int64 `form:"end,omitempty" json:"end,omitempty"`
}
V1SandboxMetricsParams defines parameters for V1SandboxMetrics.
type V1SandboxMetricsResponse ¶
type V1SandboxMetricsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]SandboxMetric
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *N500
}
func ParseV1SandboxMetricsResponse ¶
func ParseV1SandboxMetricsResponse(rsp *http.Response) (*V1SandboxMetricsResponse, error)
ParseV1SandboxMetricsResponse parses an HTTP response from a V1SandboxMetricsWithResponse call
func (V1SandboxMetricsResponse) ContentType ¶
func (r V1SandboxMetricsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (V1SandboxMetricsResponse) GetBody ¶
func (r V1SandboxMetricsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (V1SandboxMetricsResponse) GetJSON200 ¶
func (r V1SandboxMetricsResponse) GetJSON200() *[]SandboxMetric
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (V1SandboxMetricsResponse) GetJSON400 ¶
func (r V1SandboxMetricsResponse) GetJSON400() *N400
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (V1SandboxMetricsResponse) GetJSON401 ¶
func (r V1SandboxMetricsResponse) GetJSON401() *N401
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (V1SandboxMetricsResponse) GetJSON500 ¶
func (r V1SandboxMetricsResponse) GetJSON500() *N500
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (V1SandboxMetricsResponse) Status ¶
func (r V1SandboxMetricsResponse) Status() string
Status returns HTTPResponse.Status
func (V1SandboxMetricsResponse) StatusCode ¶
func (r V1SandboxMetricsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1SandboxesMetricsParams ¶
type V1SandboxesMetricsParams struct {
// TeamID Team ID that owns the sandboxes
TeamID string `form:"teamID" json:"teamID"`
// SandboxIds List of sandbox IDs (max 100)
SandboxIds []string `form:"sandbox_ids" json:"sandbox_ids"`
}
V1SandboxesMetricsParams defines parameters for V1SandboxesMetrics.
type V1SandboxesMetricsResponse ¶
type V1SandboxesMetricsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SandboxesWithMetrics
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *N500
}
func ParseV1SandboxesMetricsResponse ¶
func ParseV1SandboxesMetricsResponse(rsp *http.Response) (*V1SandboxesMetricsResponse, error)
ParseV1SandboxesMetricsResponse parses an HTTP response from a V1SandboxesMetricsWithResponse call
func (V1SandboxesMetricsResponse) ContentType ¶
func (r V1SandboxesMetricsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (V1SandboxesMetricsResponse) GetBody ¶
func (r V1SandboxesMetricsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (V1SandboxesMetricsResponse) GetJSON200 ¶
func (r V1SandboxesMetricsResponse) GetJSON200() *SandboxesWithMetrics
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (V1SandboxesMetricsResponse) GetJSON400 ¶
func (r V1SandboxesMetricsResponse) GetJSON400() *N400
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (V1SandboxesMetricsResponse) GetJSON401 ¶
func (r V1SandboxesMetricsResponse) GetJSON401() *N401
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (V1SandboxesMetricsResponse) GetJSON500 ¶
func (r V1SandboxesMetricsResponse) GetJSON500() *N500
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (V1SandboxesMetricsResponse) Status ¶
func (r V1SandboxesMetricsResponse) Status() string
Status returns HTTPResponse.Status
func (V1SandboxesMetricsResponse) StatusCode ¶
func (r V1SandboxesMetricsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1ServiceDiscoveryGetOrchestratorsResponse ¶
type V1ServiceDiscoveryGetOrchestratorsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]ClusterOrchestratorNode
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *N500
}
func ParseV1ServiceDiscoveryGetOrchestratorsResponse ¶
func ParseV1ServiceDiscoveryGetOrchestratorsResponse(rsp *http.Response) (*V1ServiceDiscoveryGetOrchestratorsResponse, error)
ParseV1ServiceDiscoveryGetOrchestratorsResponse parses an HTTP response from a V1ServiceDiscoveryGetOrchestratorsWithResponse call
func (V1ServiceDiscoveryGetOrchestratorsResponse) ContentType ¶
func (r V1ServiceDiscoveryGetOrchestratorsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (V1ServiceDiscoveryGetOrchestratorsResponse) GetBody ¶
func (r V1ServiceDiscoveryGetOrchestratorsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (V1ServiceDiscoveryGetOrchestratorsResponse) GetJSON200 ¶
func (r V1ServiceDiscoveryGetOrchestratorsResponse) GetJSON200() *[]ClusterOrchestratorNode
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (V1ServiceDiscoveryGetOrchestratorsResponse) GetJSON401 ¶
func (r V1ServiceDiscoveryGetOrchestratorsResponse) GetJSON401() *N401
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (V1ServiceDiscoveryGetOrchestratorsResponse) GetJSON500 ¶
func (r V1ServiceDiscoveryGetOrchestratorsResponse) GetJSON500() *N500
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (V1ServiceDiscoveryGetOrchestratorsResponse) Status ¶
func (r V1ServiceDiscoveryGetOrchestratorsResponse) Status() string
Status returns HTTPResponse.Status
func (V1ServiceDiscoveryGetOrchestratorsResponse) StatusCode ¶
func (r V1ServiceDiscoveryGetOrchestratorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1ServiceDiscoveryResponse ¶
type V1ServiceDiscoveryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ClusterServiceDiscovery
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *N500
}
func ParseV1ServiceDiscoveryResponse ¶
func ParseV1ServiceDiscoveryResponse(rsp *http.Response) (*V1ServiceDiscoveryResponse, error)
ParseV1ServiceDiscoveryResponse parses an HTTP response from a V1ServiceDiscoveryWithResponse call
func (V1ServiceDiscoveryResponse) ContentType ¶
func (r V1ServiceDiscoveryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (V1ServiceDiscoveryResponse) GetBody ¶
func (r V1ServiceDiscoveryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (V1ServiceDiscoveryResponse) GetJSON200 ¶
func (r V1ServiceDiscoveryResponse) GetJSON200() *ClusterServiceDiscovery
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (V1ServiceDiscoveryResponse) GetJSON401 ¶
func (r V1ServiceDiscoveryResponse) GetJSON401() *N401
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (V1ServiceDiscoveryResponse) GetJSON500 ¶
func (r V1ServiceDiscoveryResponse) GetJSON500() *N500
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (V1ServiceDiscoveryResponse) Status ¶
func (r V1ServiceDiscoveryResponse) Status() string
Status returns HTTPResponse.Status
func (V1ServiceDiscoveryResponse) StatusCode ¶
func (r V1ServiceDiscoveryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1TemplateBuildLogsParams ¶
type V1TemplateBuildLogsParams struct {
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
OrchestratorID *string `form:"orchestratorID,omitempty" json:"orchestratorID,omitempty"`
TemplateID string `form:"templateID" json:"templateID"`
// Offset Index of the starting build log that should be returned with the template
Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`
// Start Starting timestamp of the logs that should be returned in milliseconds
Start *int64 `form:"start,omitempty" json:"start,omitempty"`
// End Ending timestamp of the logs that should be returned in milliseconds
End *int64 `form:"end,omitempty" json:"end,omitempty"`
// Limit Maximum number of logs that should be returned
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
Direction *V1TemplateBuildLogsParamsDirection `form:"direction,omitempty" json:"direction,omitempty"`
Level *LogLevel `form:"level,omitempty" json:"level,omitempty"`
}
V1TemplateBuildLogsParams defines parameters for V1TemplateBuildLogs.
type V1TemplateBuildLogsParamsDirection ¶
type V1TemplateBuildLogsParamsDirection string
V1TemplateBuildLogsParamsDirection defines parameters for V1TemplateBuildLogs.
const ( V1TemplateBuildLogsParamsDirectionBackward V1TemplateBuildLogsParamsDirection = "backward" V1TemplateBuildLogsParamsDirectionForward V1TemplateBuildLogsParamsDirection = "forward" )
Defines values for V1TemplateBuildLogsParamsDirection.
func (V1TemplateBuildLogsParamsDirection) Valid ¶
func (e V1TemplateBuildLogsParamsDirection) Valid() bool
Valid indicates whether the value is a known member of the V1TemplateBuildLogsParamsDirection enum.
type V1TemplateBuildLogsResponse ¶
type V1TemplateBuildLogsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TemplateBuildLogsResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *N500
}
func ParseV1TemplateBuildLogsResponse ¶
func ParseV1TemplateBuildLogsResponse(rsp *http.Response) (*V1TemplateBuildLogsResponse, error)
ParseV1TemplateBuildLogsResponse parses an HTTP response from a V1TemplateBuildLogsWithResponse call
func (V1TemplateBuildLogsResponse) ContentType ¶
func (r V1TemplateBuildLogsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (V1TemplateBuildLogsResponse) GetBody ¶
func (r V1TemplateBuildLogsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (V1TemplateBuildLogsResponse) GetJSON200 ¶
func (r V1TemplateBuildLogsResponse) GetJSON200() *TemplateBuildLogsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (V1TemplateBuildLogsResponse) GetJSON400 ¶
func (r V1TemplateBuildLogsResponse) GetJSON400() *N400
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (V1TemplateBuildLogsResponse) GetJSON401 ¶
func (r V1TemplateBuildLogsResponse) GetJSON401() *N401
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (V1TemplateBuildLogsResponse) GetJSON500 ¶
func (r V1TemplateBuildLogsResponse) GetJSON500() *N500
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (V1TemplateBuildLogsResponse) Status ¶
func (r V1TemplateBuildLogsResponse) Status() string
Status returns HTTPResponse.Status
func (V1TemplateBuildLogsResponse) StatusCode ¶
func (r V1TemplateBuildLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode