Documentation
¶
Index ¶
- func ConnectionHandler(s ConnectionStore, registry *runtimegateway.Registry) http.Handler
- func EnrollmentHandler(s EnrollmentStore) http.Handler
- func RuntimeConnected(ctx context.Context, s ConnectionStore, registry *runtimegateway.Registry, ...) (bool, error)
- type ConnectionStore
- type EnrollmentStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionHandler ¶
func ConnectionHandler(s ConnectionStore, registry *runtimegateway.Registry) http.Handler
ConnectionHandler observes an existing binding without enrollment or execution. Executor authority never grants access to the public Session API.
func EnrollmentHandler ¶
func EnrollmentHandler(s EnrollmentStore) http.Handler
EnrollmentHandler is part of our daemon connection contract, not an upstream Agents resource. It grants no Session API access and never issues another key.
func RuntimeConnected ¶
func RuntimeConnected(ctx context.Context, s ConnectionStore, registry *runtimegateway.Registry, environment, digest string) (bool, error)
RuntimeConnected observes current executor authority and a matching open peer. It rechecks authority after the peer; callers must not supply a stale transaction.
Types ¶
type ConnectionStore ¶
type ConnectionStore interface {
AuthenticateEnvironmentExecutor(context.Context, string, string) (string, error)
GetEnvironment(context.Context, string, string) (sessions.Environment, error)
GetSessionDevice(context.Context, string, string) (sessions.ExecutionDevice, error)
GetDeviceCredential(context.Context, string) (runtimedevice.Credential, bool, error)
}