runtimeenrollment

package
v0.0.13-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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)
}

type EnrollmentStore

type EnrollmentStore interface {
	EnrollRuntime(context.Context, string, string) (sessions.RuntimeEnrollment, error)
}

Jump to

Keyboard shortcuts

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