daemonprotocol

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package daemonprotocol preserves the legacy provider-routed client surface while the public DTOs live in pkg/workspaceagent. New adapters must import the public package directly.

Index

Constants

Variables

This section is empty.

Functions

func ExecStatusPath

func ExecStatusPath(execID string) string

Types

type ActorRequest

type ActorRequest struct {
	ActorID   string
	AuthValue string
}

type Artifact

type Artifact = workspaceagent.Artifact

type DownloadRequest

type DownloadRequest = workspaceagent.DownloadRequest

type DownloadResponse

type DownloadResponse = workspaceagent.DownloadResponse

type DownloadedArtifact

type DownloadedArtifact = workspaceagent.DownloadedArtifact

type Error

type Error struct {
	Reason     ErrorReason
	Message    string
	StatusCode int
	Retryable  bool
	Cause      error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

type ErrorReason

type ErrorReason string
const (
	ErrorReasonEncodeRequest  ErrorReason = "encode_request"
	ErrorReasonInvalidURL     ErrorReason = "invalid_url"
	ErrorReasonCreateRequest  ErrorReason = "create_request"
	ErrorReasonRequestFailed  ErrorReason = "request_failed"
	ErrorReasonStatus         ErrorReason = "status"
	ErrorReasonDecodeResponse ErrorReason = "decode_response"
)

type ExecRequest

type ExecRequest = workspaceagent.ExecRequest

type ExecResponse

type ExecResponse = workspaceagent.ExecResponse

type HTTPClient

type HTTPClient struct {
	RouterURL      string
	ActorDNSSuffix string
	HTTPClient     HTTPDoer
}

func (HTTPClient) Download

func (HTTPClient) Exec

func (HTTPClient) ExecStatus

func (c HTTPClient) ExecStatus(ctx context.Context, req ActorRequest, execID string) (*ExecResponse, error)

func (HTTPClient) Health

func (c HTTPClient) Health(ctx context.Context, req ActorRequest) error

func (HTTPClient) Scrub

func (c HTTPClient) Scrub(ctx context.Context, req ActorRequest, body ScrubRequest) error

func (HTTPClient) Upload

func (HTTPClient) UploadNoResponse

func (c HTTPClient) UploadNoResponse(ctx context.Context, req ActorRequest, body UploadRequest) error

type HTTPDoer

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

type ScrubRequest

type ScrubRequest = workspaceagent.ScrubRequest

type UploadFile

type UploadFile = workspaceagent.UploadFile

type UploadRequest

type UploadRequest = workspaceagent.UploadRequest

type UploadResponse

type UploadResponse = workspaceagent.UploadResponse

Jump to

Keyboard shortcuts

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