Documentation
¶
Overview ¶
Package diragent implements the client part of the directory agent protocol. It handles connecting to the server via websocket, authentication, and relaying messages from the server to a child process (implemented by RunWorker) and back.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
Server string
AuthToken string
DirID string
// Command starts the worker through the platform shell: cmd.exe /c on Windows
// or /bin/sh -c elsewhere. Use it for operator-supplied commands that may contain
// shell syntax. It is ignored when Argv is non-empty.
Command string
// Argv starts the worker directly without a shell. Argv[0] is the executable
// and the remaining elements are passed as individual arguments. Use it for
// programmatically constructed invocations so argument boundaries are preserved.
// Argv takes precedence over Command.
Argv []string
Env map[string]string
Stderr io.Writer
HTTPClient *http.Client
Verbose bool
// contains filtered or unexported fields
}
Service runs the parent process for the directory agent. It connects to the server and relays messages between the server (via websocket) and the child process (via stdin/stdout).
Click to show internal directories.
Click to hide internal directories.