Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChunkExecutionsPath

func ChunkExecutionsPath(executionID string, index uint64) string

ChunkExecutionsPath returns the URL path to the executions service chunk HTTP endpoint.

func DecodeChunkRequest

func DecodeChunkRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (*executions.ChunkPayload, error)

DecodeChunkRequest returns a decoder for requests sent to the executions chunk endpoint.

func DecodeGetRequest

func DecodeGetRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (*executions.GetPayload, error)

DecodeGetRequest returns a decoder for requests sent to the executions get endpoint.

func DecodeListRequest

func DecodeListRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (*executions.ListPayload, error)

DecodeListRequest returns a decoder for requests sent to the executions list endpoint.

func DecodeManifestRequest

func DecodeManifestRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (*executions.ManifestPayload, error)

DecodeManifestRequest returns a decoder for requests sent to the executions manifest endpoint.

func DecodeStartRequest

func DecodeStartRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (*executions.StartPayload, error)

DecodeStartRequest returns a decoder for requests sent to the executions start endpoint.

func EncodeChunkError

func EncodeChunkError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeChunkError returns an encoder for errors returned by the chunk executions endpoint.

func EncodeChunkResponse

func EncodeChunkResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeChunkResponse returns an encoder for responses returned by the executions chunk endpoint.

func EncodeGetError

func EncodeGetError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeGetError returns an encoder for errors returned by the get executions endpoint.

func EncodeGetResponse

func EncodeGetResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeGetResponse returns an encoder for responses returned by the executions get endpoint.

func EncodeListError

func EncodeListError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeListError returns an encoder for errors returned by the list executions endpoint.

func EncodeListResponse

func EncodeListResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeListResponse returns an encoder for responses returned by the executions list endpoint.

func EncodeManifestError

func EncodeManifestError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeManifestError returns an encoder for errors returned by the manifest executions endpoint.

func EncodeManifestResponse

func EncodeManifestResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeManifestResponse returns an encoder for responses returned by the executions manifest endpoint.

func EncodeStartError

func EncodeStartError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeStartError returns an encoder for errors returned by the start executions endpoint.

func EncodeStartResponse

func EncodeStartResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeStartResponse returns an encoder for responses returned by the executions start endpoint.

func EncodeStatusError

func EncodeStatusError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeStatusError returns an encoder for errors returned by the status executions endpoint.

func EncodeStatusResponse

func EncodeStatusResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeStatusResponse returns an encoder for responses returned by the executions status endpoint.

func GetExecutionsPath

func GetExecutionsPath(executionID string) string

GetExecutionsPath returns the URL path to the executions service get HTTP endpoint.

func ListExecutionsPath

func ListExecutionsPath() string

ListExecutionsPath returns the URL path to the executions service list HTTP endpoint.

func ManifestExecutionsPath

func ManifestExecutionsPath(executionID string) string

ManifestExecutionsPath returns the URL path to the executions service manifest HTTP endpoint.

func Mount

func Mount(mux goahttp.Muxer, h *Server)

Mount configures the mux to serve the executions endpoints.

func MountChunkHandler

func MountChunkHandler(mux goahttp.Muxer, h http.Handler)

MountChunkHandler configures the mux to serve the "executions" service "chunk" endpoint.

func MountGetHandler

func MountGetHandler(mux goahttp.Muxer, h http.Handler)

MountGetHandler configures the mux to serve the "executions" service "get" endpoint.

func MountListHandler

func MountListHandler(mux goahttp.Muxer, h http.Handler)

MountListHandler configures the mux to serve the "executions" service "list" endpoint.

func MountManifestHandler

func MountManifestHandler(mux goahttp.Muxer, h http.Handler)

MountManifestHandler configures the mux to serve the "executions" service "manifest" endpoint.

func MountStartHandler

func MountStartHandler(mux goahttp.Muxer, h http.Handler)

MountStartHandler configures the mux to serve the "executions" service "start" endpoint.

func MountStatusHandler

func MountStatusHandler(mux goahttp.Muxer, h http.Handler)

MountStatusHandler configures the mux to serve the "executions" service "status" endpoint.

func NewChunkHandler

func NewChunkHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewChunkHandler creates a HTTP handler which loads the HTTP request and calls the "executions" service "chunk" endpoint.

func NewChunkPayload

func NewChunkPayload(executionID string, index uint64) *executions.ChunkPayload

NewChunkPayload builds a executions service chunk endpoint payload.

func NewGetHandler

func NewGetHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewGetHandler creates a HTTP handler which loads the HTTP request and calls the "executions" service "get" endpoint.

func NewGetPayload

func NewGetPayload(executionID string) *executions.GetPayload

NewGetPayload builds a executions service get endpoint payload.

func NewListHandler

func NewListHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewListHandler creates a HTTP handler which loads the HTTP request and calls the "executions" service "list" endpoint.

func NewListPayload

func NewListPayload(namespace *string, workspaceName *string, actorID *string, since *string, limit int) *executions.ListPayload

NewListPayload builds a executions service list endpoint payload.

func NewManifestHandler

func NewManifestHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewManifestHandler creates a HTTP handler which loads the HTTP request and calls the "executions" service "manifest" endpoint.

func NewManifestPayload

func NewManifestPayload(executionID string) *executions.ManifestPayload

NewManifestPayload builds a executions service manifest endpoint payload.

func NewStartHandler

func NewStartHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewStartHandler creates a HTTP handler which loads the HTTP request and calls the "executions" service "start" endpoint.

func NewStartPayload

func NewStartPayload(body *StartRequestBody) *executions.StartPayload

NewStartPayload builds a executions service start endpoint payload.

func NewStatusHandler

func NewStatusHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewStatusHandler creates a HTTP handler which loads the HTTP request and calls the "executions" service "status" endpoint.

func StartExecutionsPath

func StartExecutionsPath() string

StartExecutionsPath returns the URL path to the executions service start HTTP endpoint.

func StatusExecutionsPath

func StatusExecutionsPath() string

StatusExecutionsPath returns the URL path to the executions service status HTTP endpoint.

func ValidateExecutionScriptPayloadRequestBody added in v0.11.0

func ValidateExecutionScriptPayloadRequestBody(body *ExecutionScriptPayloadRequestBody) (err error)

ValidateExecutionScriptPayloadRequestBody runs the validations defined on ExecutionScriptPayloadRequestBody

func ValidateStartRequestBody

func ValidateStartRequestBody(body *StartRequestBody) (err error)

ValidateStartRequestBody runs the validations defined on StartRequestBody

Types

type ChunkResponseBody

type ChunkResponseBody struct {
	// Chunk index starting at 0
	Index uint64 `form:"index" json:"index" xml:"index"`
	// Base64-encoded plaintext recording data
	Data []byte `form:"data" json:"data" xml:"data"`
}

ChunkResponseBody is the type of the "executions" service "chunk" endpoint HTTP response body.

func NewChunkResponseBody

func NewChunkResponseBody(res *executions.ExecutionRecordingChunk) *ChunkResponseBody

NewChunkResponseBody builds the HTTP response body from the result of the "chunk" endpoint of the "executions" service.

type ExecutionRecordResponse

type ExecutionRecordResponse struct {
	// Execution identifier
	ExecutionID string `form:"execution_id" json:"execution_id" xml:"execution_id"`
	// Actor identifier
	ActorID *string `form:"actor_id,omitempty" json:"actor_id,omitempty" xml:"actor_id,omitempty"`
	// command|script|shell
	Operation           string  `form:"operation" json:"operation" xml:"operation"`
	Namespace           string  `form:"namespace" json:"namespace" xml:"namespace"`
	WorkspaceName       string  `form:"workspace_name" json:"workspace_name" xml:"workspace_name"`
	WorkspaceUID        *string `form:"workspace_uid,omitempty" json:"workspace_uid,omitempty" xml:"workspace_uid,omitempty"`
	WorkspaceGeneration *int64  `form:"workspace_generation,omitempty" json:"workspace_generation,omitempty" xml:"workspace_generation,omitempty"`
	GrantVersion        *string `form:"grant_version,omitempty" json:"grant_version,omitempty" xml:"grant_version,omitempty"`
	OsIdentity          *string `form:"os_identity,omitempty" json:"os_identity,omitempty" xml:"os_identity,omitempty"`
	Elevated            *bool   `form:"elevated,omitempty" json:"elevated,omitempty" xml:"elevated,omitempty"`
	RecordingID         string  `form:"recording_id" json:"recording_id" xml:"recording_id"`
	// Storage mode: ephemeral|external|bundled
	Mode string `form:"mode" json:"mode" xml:"mode"`
	// none|durable
	Durability string `form:"durability" json:"durability" xml:"durability"`
	Admitted   bool   `form:"admitted" json:"admitted" xml:"admitted"`
	// RFC3339 timestamp
	AdmissionTime string  `form:"admission_time" json:"admission_time" xml:"admission_time"`
	DenyReason    *string `form:"deny_reason,omitempty" json:"deny_reason,omitempty" xml:"deny_reason,omitempty"`
	// lifecycle state
	State *string `form:"state,omitempty" json:"state,omitempty" xml:"state,omitempty"`
	// RFC3339 timestamp
	StartTime *string `form:"start_time,omitempty" json:"start_time,omitempty" xml:"start_time,omitempty"`
	// RFC3339 timestamp
	EndTime       *string `form:"end_time,omitempty" json:"end_time,omitempty" xml:"end_time,omitempty"`
	ExitCode      *int    `form:"exit_code,omitempty" json:"exit_code,omitempty" xml:"exit_code,omitempty"`
	Termination   *string `form:"termination,omitempty" json:"termination,omitempty" xml:"termination,omitempty"`
	RecordingLost *bool   `form:"recording_lost,omitempty" json:"recording_lost,omitempty" xml:"recording_lost,omitempty"`
}

ExecutionRecordResponse is used to define fields on response body types.

type ExecutionScriptPayloadRequestBody added in v0.11.0

type ExecutionScriptPayloadRequestBody struct {
	// Script content
	Body *string `form:"body,omitempty" json:"body,omitempty" xml:"body,omitempty"`
	// Optional filename hint (e.g. run.sh, script.ps1)
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Optional working directory for the script
	Cwd *string `form:"cwd,omitempty" json:"cwd,omitempty" xml:"cwd,omitempty"`
}

ExecutionScriptPayloadRequestBody is used to define fields on request body types.

type GetResponseBody

type GetResponseBody struct {
	// Execution identifier
	ExecutionID string `form:"execution_id" json:"execution_id" xml:"execution_id"`
	// Actor identifier
	ActorID *string `form:"actor_id,omitempty" json:"actor_id,omitempty" xml:"actor_id,omitempty"`
	// command|script|shell
	Operation           string  `form:"operation" json:"operation" xml:"operation"`
	Namespace           string  `form:"namespace" json:"namespace" xml:"namespace"`
	WorkspaceName       string  `form:"workspace_name" json:"workspace_name" xml:"workspace_name"`
	WorkspaceUID        *string `form:"workspace_uid,omitempty" json:"workspace_uid,omitempty" xml:"workspace_uid,omitempty"`
	WorkspaceGeneration *int64  `form:"workspace_generation,omitempty" json:"workspace_generation,omitempty" xml:"workspace_generation,omitempty"`
	GrantVersion        *string `form:"grant_version,omitempty" json:"grant_version,omitempty" xml:"grant_version,omitempty"`
	OsIdentity          *string `form:"os_identity,omitempty" json:"os_identity,omitempty" xml:"os_identity,omitempty"`
	Elevated            *bool   `form:"elevated,omitempty" json:"elevated,omitempty" xml:"elevated,omitempty"`
	RecordingID         string  `form:"recording_id" json:"recording_id" xml:"recording_id"`
	// Storage mode: ephemeral|external|bundled
	Mode string `form:"mode" json:"mode" xml:"mode"`
	// none|durable
	Durability string `form:"durability" json:"durability" xml:"durability"`
	Admitted   bool   `form:"admitted" json:"admitted" xml:"admitted"`
	// RFC3339 timestamp
	AdmissionTime string  `form:"admission_time" json:"admission_time" xml:"admission_time"`
	DenyReason    *string `form:"deny_reason,omitempty" json:"deny_reason,omitempty" xml:"deny_reason,omitempty"`
	// lifecycle state
	State *string `form:"state,omitempty" json:"state,omitempty" xml:"state,omitempty"`
	// RFC3339 timestamp
	StartTime *string `form:"start_time,omitempty" json:"start_time,omitempty" xml:"start_time,omitempty"`
	// RFC3339 timestamp
	EndTime       *string `form:"end_time,omitempty" json:"end_time,omitempty" xml:"end_time,omitempty"`
	ExitCode      *int    `form:"exit_code,omitempty" json:"exit_code,omitempty" xml:"exit_code,omitempty"`
	Termination   *string `form:"termination,omitempty" json:"termination,omitempty" xml:"termination,omitempty"`
	RecordingLost *bool   `form:"recording_lost,omitempty" json:"recording_lost,omitempty" xml:"recording_lost,omitempty"`
}

GetResponseBody is the type of the "executions" service "get" endpoint HTTP response body.

func NewGetResponseBody

func NewGetResponseBody(res *executionsviews.ExecutionRecordView) *GetResponseBody

NewGetResponseBody builds the HTTP response body from the result of the "get" endpoint of the "executions" service.

type ListResponseBody

type ListResponseBody []*ExecutionRecordResponse

ListResponseBody is the type of the "executions" service "list" endpoint HTTP response body.

func NewListResponseBody

func NewListResponseBody(res []*executions.ExecutionRecord) ListResponseBody

NewListResponseBody builds the HTTP response body from the result of the "list" endpoint of the "executions" service.

type ManifestResponseBody

type ManifestResponseBody struct {
	RecordingID    string `form:"recording_id" json:"recording_id" xml:"recording_id"`
	Chunks         uint64 `form:"chunks" json:"chunks" xml:"chunks"`
	PlaintextBytes int64  `form:"plaintext_bytes" json:"plaintext_bytes" xml:"plaintext_bytes"`
	Verified       bool   `form:"verified" json:"verified" xml:"verified"`
}

ManifestResponseBody is the type of the "executions" service "manifest" endpoint HTTP response body.

func NewManifestResponseBody

func NewManifestResponseBody(res *executions.ExecutionRecordingManifest) *ManifestResponseBody

NewManifestResponseBody builds the HTTP response body from the result of the "manifest" endpoint of the "executions" service.

type MountPoint

type MountPoint struct {
	// Method is the name of the service method served by the mounted HTTP handler.
	Method string
	// Verb is the HTTP method used to match requests to the mounted handler.
	Verb string
	// Pattern is the HTTP request path pattern used to match requests to the
	// mounted handler.
	Pattern string
}

MountPoint holds information about the mounted endpoints.

type Server

type Server struct {
	Mounts   []*MountPoint
	Status   http.Handler
	List     http.Handler
	Get      http.Handler
	Start    http.Handler
	Manifest http.Handler
	Chunk    http.Handler
}

Server lists the executions service endpoint HTTP handlers.

func New

func New(
	e *executions.Endpoints,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) *Server

New instantiates HTTP handlers for all the executions service endpoints using the provided encoder and decoder. The handlers are mounted on the given mux using the HTTP verb and path defined in the design. errhandler is called whenever a response fails to be encoded. formatter is used to format errors returned by the service methods prior to encoding. Both errhandler and formatter are optional and can be nil.

func (*Server) MethodNames

func (s *Server) MethodNames() []string

MethodNames returns the methods served.

func (*Server) Mount

func (s *Server) Mount(mux goahttp.Muxer)

Mount configures the mux to serve the executions endpoints.

func (*Server) Service

func (s *Server) Service() string

Service returns the name of the service served.

func (*Server) Use

func (s *Server) Use(m func(http.Handler) http.Handler)

Use wraps the server handlers with the given middleware.

type StartRequestBody

type StartRequestBody struct {
	// Workspace namespace
	Namespace *string `form:"namespace,omitempty" json:"namespace,omitempty" xml:"namespace,omitempty"`
	// Workspace name
	WorkspaceName *string `form:"workspace_name,omitempty" json:"workspace_name,omitempty" xml:"workspace_name,omitempty"`
	// Absolute path or name of the program to run
	Executable *string `form:"executable,omitempty" json:"executable,omitempty" xml:"executable,omitempty"`
	// Arguments passed to the executable verbatim
	Args []string `form:"args,omitempty" json:"args,omitempty" xml:"args,omitempty"`
	// Optional working directory for the new process
	Cwd *string `form:"cwd,omitempty" json:"cwd,omitempty" xml:"cwd,omitempty"`
	// Guest execution deadline in seconds
	DeadlineSeconds *int `form:"deadline_seconds,omitempty" json:"deadline_seconds,omitempty" xml:"deadline_seconds,omitempty"`
	// Script to execute (mutually exclusive with executable/args)
	Script *ExecutionScriptPayloadRequestBody `form:"script,omitempty" json:"script,omitempty" xml:"script,omitempty"`
}

StartRequestBody is the type of the "executions" service "start" endpoint HTTP request body.

type StartResponseBody

type StartResponseBody struct {
	// Execution identifier
	ExecutionID string `form:"execution_id" json:"execution_id" xml:"execution_id"`
	// Recording identifier
	RecordingID   string  `form:"recording_id" json:"recording_id" xml:"recording_id"`
	Namespace     string  `form:"namespace" json:"namespace" xml:"namespace"`
	WorkspaceName string  `form:"workspace_name" json:"workspace_name" xml:"workspace_name"`
	WorkspaceUID  *string `form:"workspace_uid,omitempty" json:"workspace_uid,omitempty" xml:"workspace_uid,omitempty"`
	// RFC3339 timestamp
	AdmissionTime *string `form:"admission_time,omitempty" json:"admission_time,omitempty" xml:"admission_time,omitempty"`
	// Storage mode: ephemeral|external|bundled
	Mode *string `form:"mode,omitempty" json:"mode,omitempty" xml:"mode,omitempty"`
	// none|durable
	Durability *string `form:"durability,omitempty" json:"durability,omitempty" xml:"durability,omitempty"`
	// Final command outcome
	Outcome string `form:"outcome" json:"outcome" xml:"outcome"`
	// Final lifecycle state
	State string `form:"state" json:"state" xml:"state"`
	// Guest process exit code when known
	ExitCode *int `form:"exit_code,omitempty" json:"exit_code,omitempty" xml:"exit_code,omitempty"`
	// Standard output, truncated to the pilot output bound
	Stdout []byte `form:"stdout,omitempty" json:"stdout,omitempty" xml:"stdout,omitempty"`
	// Standard error, truncated to the pilot output bound
	Stderr []byte `form:"stderr,omitempty" json:"stderr,omitempty" xml:"stderr,omitempty"`
	// Output was truncated at the 16 KiB bound
	Truncated *bool `form:"truncated,omitempty" json:"truncated,omitempty" xml:"truncated,omitempty"`
	// Guest-measured duration in milliseconds
	DurationMs *uint64 `form:"duration_ms,omitempty" json:"duration_ms,omitempty" xml:"duration_ms,omitempty"`
	// Runner denial or transport-loss note
	Denial *string `form:"denial,omitempty" json:"denial,omitempty" xml:"denial,omitempty"`
}

StartResponseBody is the type of the "executions" service "start" endpoint HTTP response body.

func NewStartResponseBody

func NewStartResponseBody(res *executionsviews.ExecutionCommandView) *StartResponseBody

NewStartResponseBody builds the HTTP response body from the result of the "start" endpoint of the "executions" service.

type StatusResponseBody

type StatusResponseBody struct {
	// Whether VM execution is enabled by policy
	Enabled bool `form:"enabled" json:"enabled" xml:"enabled"`
	// Whether elevated execution is allowed by policy
	AllowElevated bool `form:"allow_elevated" json:"allow_elevated" xml:"allow_elevated"`
	// Storage mode: disabled|ephemeral|external|bundled
	StorageMode string `form:"storage_mode" json:"storage_mode" xml:"storage_mode"`
	// Metadata and recordings are durable (not ephemeral)
	Durable bool `form:"durable" json:"durable" xml:"durable"`
	// Store is Ready and can admit work
	StorageAvailable bool `form:"storage_available" json:"storage_available" xml:"storage_available"`
	// Opt-in management issuer prerequisites and initial bootstrap sync are ready;
	// not a guest execution capability
	IssuerReady bool `form:"issuer_ready" json:"issuer_ready" xml:"issuer_ready"`
}

StatusResponseBody is the type of the "executions" service "status" endpoint HTTP response body.

func NewStatusResponseBody

func NewStatusResponseBody(res *executionsviews.ExecutionStatusView) *StatusResponseBody

NewStatusResponseBody builds the HTTP response body from the result of the "status" endpoint of the "executions" service.

Jump to

Keyboard shortcuts

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