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

machinehttp

package
v0.4.23 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecStreamExecutor

type ExecStreamExecutor interface {
	OpenExecStream(context.Context, machine.StreamRequest) (io.ReadCloser, error)
}

type ExecuteRequest

type ExecuteRequest struct {
	OperationID string                   `json:"operation_id"`
	Context     machine.OperationContext `json:"context"`
	Input       json.RawMessage          `json:"input,omitempty"`
}

type Executor

type Executor interface {
	SupportedOperationIDs() []string
	Execute(context.Context, machine.Operation, machine.OperationContext, json.RawMessage, ProgressReporter) (json.RawMessage, error)
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(executor Executor) (*Handler, error)

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type LogStreamExecutor

type LogStreamExecutor interface {
	OpenLogStream(context.Context, machine.StreamRequest) (io.ReadCloser, error)
}

type ProgressReporter

type ProgressReporter func(machine.OperationProgress)

type TerminalExecutor added in v0.4.23

type TerminalExecutor interface {
	OpenTerminal(context.Context, machine.StreamRequest) (terminal.Session, error)
	RecordTerminalAudit(context.Context, machine.StreamDescriptor, string) error
}

Jump to

Keyboard shortcuts

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