Documentation
¶
Overview ¶
Package provisioner provides the session Pod provisioner. The provisioner exposes local health/status endpoints and pulls provision requests from the proxy internal API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunPullClient ¶ added in v1.448.0
func RunPullClient(ctx context.Context, srv *Server, cfg PullClientConfig) error
RunPullClient connects this session Pod to the proxy and claims provision requests.
Types ¶
type PullClientConfig ¶ added in v1.448.0
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the agent-provisioner HTTP server.
func New ¶
New creates a new Server.
- port: TCP port to listen on (e.g. 9001)
- settingsFile: path to /session-settings/settings.yaml; if this file exists at startup the server auto-provisions from it (Pod restart case).
func (*Server) SetStatusReporter ¶ added in v1.448.0
SetStatusReporter installs a callback invoked on every status transition.
type Status ¶
type Status string
Status represents the provisioning lifecycle state.
const ( // StatusPending means no provisioning has been triggered yet. StatusPending Status = "pending" // StatusProvisioning means provisioning is currently in progress. StatusProvisioning Status = "provisioning" // StatusReady means provisioning completed successfully and agentapi is running. StatusReady Status = "ready" // StatusError means provisioning failed. StatusError Status = "error" )
type StatusResponse ¶
type StatusResponse struct {
Status Status `json:"status"`
Message string `json:"message,omitempty"`
}
StatusResponse is the JSON body returned by GET /status.
Click to show internal directories.
Click to hide internal directories.