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
- func ExecStatusPath(execID string) string
- type ActorRequest
- type Artifact
- type DownloadRequest
- type DownloadResponse
- type DownloadedArtifact
- type Error
- type ErrorReason
- type ExecRequest
- type ExecResponse
- type HTTPClient
- func (c HTTPClient) Download(ctx context.Context, req ActorRequest, body DownloadRequest) (*DownloadResponse, error)
- func (c HTTPClient) Exec(ctx context.Context, req ActorRequest, body ExecRequest) (*ExecResponse, error)
- func (c HTTPClient) ExecStatus(ctx context.Context, req ActorRequest, execID string) (*ExecResponse, error)
- func (c HTTPClient) Health(ctx context.Context, req ActorRequest) error
- func (c HTTPClient) Scrub(ctx context.Context, req ActorRequest, body ScrubRequest) error
- func (c HTTPClient) Upload(ctx context.Context, req ActorRequest, body UploadRequest) (*UploadResponse, error)
- func (c HTTPClient) UploadNoResponse(ctx context.Context, req ActorRequest, body UploadRequest) error
- type HTTPDoer
- type ScrubRequest
- type UploadFile
- type UploadRequest
- type UploadResponse
Constants ¶
View Source
const ( HealthPath = workspaceagent.LegacyHealthPath ExecPath = workspaceagent.ExecPath ExecStatusPrefix = workspaceagent.ExecStatusPrefix FilesPath = workspaceagent.FilesPath FilesDownloadPath = workspaceagent.FilesDownloadPath ScrubPath = workspaceagent.ScrubPath )
Variables ¶
This section is empty.
Functions ¶
func ExecStatusPath ¶
Types ¶
type ActorRequest ¶
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
}
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 ¶
func (HTTPClient) Download ¶
func (c HTTPClient) Download(ctx context.Context, req ActorRequest, body DownloadRequest) (*DownloadResponse, error)
func (HTTPClient) Exec ¶
func (c HTTPClient) Exec(ctx context.Context, req ActorRequest, body ExecRequest) (*ExecResponse, error)
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 (c HTTPClient) Upload(ctx context.Context, req ActorRequest, body UploadRequest) (*UploadResponse, error)
func (HTTPClient) UploadNoResponse ¶
func (c HTTPClient) UploadNoResponse(ctx context.Context, req ActorRequest, body UploadRequest) 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
Click to show internal directories.
Click to hide internal directories.