edge

package
v0.0.0-...-8d918e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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.5.1 DO NOT EDIT.

Index

Constants

View Source
const (
	ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewHealthCheckMachineRequest

func NewHealthCheckMachineRequest(server string) (*http.Request, error)

NewHealthCheckMachineRequest generates requests for HealthCheckMachine

func NewHealthCheckRequest

func NewHealthCheckRequest(server string) (*http.Request, error)

NewHealthCheckRequest generates requests for HealthCheck

func NewV1InfoRequest

func NewV1InfoRequest(server string) (*http.Request, error)

NewV1InfoRequest generates requests for V1Info

func NewV1SandboxLogsRequest

func NewV1SandboxLogsRequest(server string, sandboxID string, params *V1SandboxLogsParams) (*http.Request, error)

NewV1SandboxLogsRequest generates requests for V1SandboxLogs

func NewV1SandboxMetricsRequest

func NewV1SandboxMetricsRequest(server string, sandboxID string, params *V1SandboxMetricsParams) (*http.Request, error)

NewV1SandboxMetricsRequest generates requests for V1SandboxMetrics

func NewV1SandboxesMetricsRequest

func NewV1SandboxesMetricsRequest(server string, params *V1SandboxesMetricsParams) (*http.Request, error)

NewV1SandboxesMetricsRequest generates requests for V1SandboxesMetrics

func NewV1ServiceDiscoveryGetOrchestratorsRequest

func NewV1ServiceDiscoveryGetOrchestratorsRequest(server string) (*http.Request, error)

NewV1ServiceDiscoveryGetOrchestratorsRequest generates requests for V1ServiceDiscoveryGetOrchestrators

func NewV1ServiceDiscoveryRequest

func NewV1ServiceDiscoveryRequest(server string) (*http.Request, error)

NewV1ServiceDiscoveryRequest generates requests for V1ServiceDiscovery

func NewV1TemplateBuildLogsRequest

func NewV1TemplateBuildLogsRequest(server string, buildID string, params *V1TemplateBuildLogsParams) (*http.Request, error)

NewV1TemplateBuildLogsRequest generates requests for V1TemplateBuildLogs

func WarnMissingFeatureHeader

func WarnMissingFeatureHeader(ctx context.Context, featureHeader string, msg string, fields ...zap.Field)

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)

func (*Client) HealthCheckMachine

func (c *Client) HealthCheckMachine(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1Info

func (c *Client) V1Info(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1SandboxLogs

func (c *Client) V1SandboxLogs(ctx context.Context, sandboxID string, params *V1SandboxLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1SandboxMetrics

func (c *Client) V1SandboxMetrics(ctx context.Context, sandboxID string, params *V1SandboxMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1SandboxesMetrics

func (c *Client) V1SandboxesMetrics(ctx context.Context, params *V1SandboxesMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1ServiceDiscovery

func (c *Client) V1ServiceDiscovery(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1ServiceDiscoveryGetOrchestrators

func (c *Client) V1ServiceDiscoveryGetOrchestrators(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1TemplateBuildLogs

func (c *Client) V1TemplateBuildLogs(ctx context.Context, buildID string, params *V1TemplateBuildLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// HealthCheck request
	HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HealthCheckMachine request
	HealthCheckMachine(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1Info request
	V1Info(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1SandboxesMetrics request
	V1SandboxesMetrics(ctx context.Context, params *V1SandboxesMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1SandboxLogs request
	V1SandboxLogs(ctx context.Context, sandboxID string, params *V1SandboxLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1SandboxMetrics request
	V1SandboxMetrics(ctx context.Context, sandboxID string, params *V1SandboxMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1ServiceDiscovery request
	V1ServiceDiscovery(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1ServiceDiscoveryGetOrchestrators request
	V1ServiceDiscoveryGetOrchestrators(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1TemplateBuildLogs request
	V1TemplateBuildLogs(ctx context.Context, buildID string, params *V1TemplateBuildLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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 request returning *HealthCheckMachineResponse

func (*ClientWithResponses) HealthCheckWithResponse

func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)

HealthCheckWithResponse request returning *HealthCheckResponse

func (*ClientWithResponses) V1InfoWithResponse

func (c *ClientWithResponses) V1InfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1InfoResponse, error)

V1InfoWithResponse request returning *V1InfoResponse

func (*ClientWithResponses) V1SandboxLogsWithResponse

func (c *ClientWithResponses) V1SandboxLogsWithResponse(ctx context.Context, sandboxID string, params *V1SandboxLogsParams, reqEditors ...RequestEditorFn) (*V1SandboxLogsResponse, error)

V1SandboxLogsWithResponse request returning *V1SandboxLogsResponse

func (*ClientWithResponses) V1SandboxMetricsWithResponse

func (c *ClientWithResponses) V1SandboxMetricsWithResponse(ctx context.Context, sandboxID string, params *V1SandboxMetricsParams, reqEditors ...RequestEditorFn) (*V1SandboxMetricsResponse, error)

V1SandboxMetricsWithResponse request returning *V1SandboxMetricsResponse

func (*ClientWithResponses) V1SandboxesMetricsWithResponse

func (c *ClientWithResponses) V1SandboxesMetricsWithResponse(ctx context.Context, params *V1SandboxesMetricsParams, reqEditors ...RequestEditorFn) (*V1SandboxesMetricsResponse, error)

V1SandboxesMetricsWithResponse request returning *V1SandboxesMetricsResponse

func (*ClientWithResponses) V1ServiceDiscoveryGetOrchestratorsWithResponse

func (c *ClientWithResponses) V1ServiceDiscoveryGetOrchestratorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1ServiceDiscoveryGetOrchestratorsResponse, error)

V1ServiceDiscoveryGetOrchestratorsWithResponse request returning *V1ServiceDiscoveryGetOrchestratorsResponse

func (*ClientWithResponses) V1ServiceDiscoveryWithResponse

func (c *ClientWithResponses) V1ServiceDiscoveryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1ServiceDiscoveryResponse, error)

V1ServiceDiscoveryWithResponse request returning *V1ServiceDiscoveryResponse

func (*ClientWithResponses) V1TemplateBuildLogsWithResponse

func (c *ClientWithResponses) V1TemplateBuildLogsWithResponse(ctx context.Context, buildID string, params *V1TemplateBuildLogsParams, reqEditors ...RequestEditorFn) (*V1TemplateBuildLogsResponse, error)

V1TemplateBuildLogsWithResponse request returning *V1TemplateBuildLogsResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// HealthCheckWithResponse request
	HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)

	// HealthCheckMachineWithResponse request
	HealthCheckMachineWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckMachineResponse, error)

	// V1InfoWithResponse request
	V1InfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1InfoResponse, error)

	// V1SandboxesMetricsWithResponse request
	V1SandboxesMetricsWithResponse(ctx context.Context, params *V1SandboxesMetricsParams, reqEditors ...RequestEditorFn) (*V1SandboxesMetricsResponse, error)

	// V1SandboxLogsWithResponse request
	V1SandboxLogsWithResponse(ctx context.Context, sandboxID string, params *V1SandboxLogsParams, reqEditors ...RequestEditorFn) (*V1SandboxLogsResponse, error)

	// V1SandboxMetricsWithResponse request
	V1SandboxMetricsWithResponse(ctx context.Context, sandboxID string, params *V1SandboxMetricsParams, reqEditors ...RequestEditorFn) (*V1SandboxMetricsResponse, error)

	// V1ServiceDiscoveryWithResponse request
	V1ServiceDiscoveryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1ServiceDiscoveryResponse, error)

	// V1ServiceDiscoveryGetOrchestratorsWithResponse request
	V1ServiceDiscoveryGetOrchestratorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1ServiceDiscoveryGetOrchestratorsResponse, error)

	// V1TemplateBuildLogsWithResponse request
	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.

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.

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

type HealthCheckMachineResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseHealthCheckMachineResponse

func ParseHealthCheckMachineResponse(rsp *http.Response) (*HealthCheckMachineResponse, error)

ParseHealthCheckMachineResponse parses an HTTP response from a HealthCheckMachineWithResponse call

func (HealthCheckMachineResponse) Status

Status returns HTTPResponse.Status

func (HealthCheckMachineResponse) StatusCode

func (r HealthCheckMachineResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HealthCheckResponse

type HealthCheckResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseHealthCheckResponse

func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error)

ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call

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

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type LogLevel

type LogLevel string

LogLevel State of the sandbox

const (
	LogLevelDebug LogLevel = "debug"
	LogLevelError LogLevel = "error"
	LogLevelInfo  LogLevel = "info"
	LogLevelWarn  LogLevel = "warn"
)

Defines values for LogLevel.

type N400

type N400 = Error

N400 defines model for 400.

type N401

type N401 = Error

N401 defines model for 401.

type N500

type N500 = Error

N500 defines model for 500.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

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      *ClusterNodeInfo
	JSON401      *N401
	JSON500      *N500
}

func ParseV1InfoResponse

func ParseV1InfoResponse(rsp *http.Response) (*V1InfoResponse, error)

ParseV1InfoResponse parses an HTTP response from a V1InfoWithResponse call

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 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.

type V1SandboxLogsResponse

type V1SandboxLogsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SandboxLogsResponse
	JSON400      *N400
	JSON401      *N401
	JSON500      *N500
}

func ParseV1SandboxLogsResponse

func ParseV1SandboxLogsResponse(rsp *http.Response) (*V1SandboxLogsResponse, error)

ParseV1SandboxLogsResponse parses an HTTP response from a V1SandboxLogsWithResponse call

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      *[]SandboxMetric
	JSON400      *N400
	JSON401      *N401
	JSON500      *N500
}

func ParseV1SandboxMetricsResponse

func ParseV1SandboxMetricsResponse(rsp *http.Response) (*V1SandboxMetricsResponse, error)

ParseV1SandboxMetricsResponse parses an HTTP response from a V1SandboxMetricsWithResponse call

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      *SandboxesWithMetrics
	JSON400      *N400
	JSON401      *N401
	JSON500      *N500
}

func ParseV1SandboxesMetricsResponse

func ParseV1SandboxesMetricsResponse(rsp *http.Response) (*V1SandboxesMetricsResponse, error)

ParseV1SandboxesMetricsResponse parses an HTTP response from a V1SandboxesMetricsWithResponse call

func (V1SandboxesMetricsResponse) Status

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      *[]ClusterOrchestratorNode
	JSON401      *N401
	JSON500      *N500
}

func ParseV1ServiceDiscoveryGetOrchestratorsResponse

func ParseV1ServiceDiscoveryGetOrchestratorsResponse(rsp *http.Response) (*V1ServiceDiscoveryGetOrchestratorsResponse, error)

ParseV1ServiceDiscoveryGetOrchestratorsResponse parses an HTTP response from a V1ServiceDiscoveryGetOrchestratorsWithResponse call

func (V1ServiceDiscoveryGetOrchestratorsResponse) Status

Status returns HTTPResponse.Status

func (V1ServiceDiscoveryGetOrchestratorsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type V1ServiceDiscoveryResponse

type V1ServiceDiscoveryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClusterServiceDiscovery
	JSON401      *N401
	JSON500      *N500
}

func ParseV1ServiceDiscoveryResponse

func ParseV1ServiceDiscoveryResponse(rsp *http.Response) (*V1ServiceDiscoveryResponse, error)

ParseV1ServiceDiscoveryResponse parses an HTTP response from a V1ServiceDiscoveryWithResponse call

func (V1ServiceDiscoveryResponse) Status

Status returns HTTPResponse.Status

func (V1ServiceDiscoveryResponse) StatusCode

func (r V1ServiceDiscoveryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1TemplateBuildLogsParams

type V1TemplateBuildLogsParams struct {
	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.

type V1TemplateBuildLogsResponse

type V1TemplateBuildLogsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TemplateBuildLogsResponse
	JSON400      *N400
	JSON401      *N401
	JSON500      *N500
}

func ParseV1TemplateBuildLogsResponse

func ParseV1TemplateBuildLogsResponse(rsp *http.Response) (*V1TemplateBuildLogsResponse, error)

ParseV1TemplateBuildLogsResponse parses an HTTP response from a V1TemplateBuildLogsWithResponse call

func (V1TemplateBuildLogsResponse) Status

Status returns HTTPResponse.Status

func (V1TemplateBuildLogsResponse) StatusCode

func (r V1TemplateBuildLogsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL