runtimebootstrap

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 8 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

Overview

Package runtimebootstrap owns the Provider-to-Runtime connection input. Providers deliver this document as a private file; only Runtime interprets it.

Index

Constants

View Source
const MaxBytes = 16 * 1024
View Source
const Version = 1

Variables

View Source
var ErrInvalid = errors.New("invalid Runtime bootstrap input")

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Version    int    `json:"version"`
	CoreURL    string `json:"core_url"`
	DeviceID   string `json:"device_id"`
	Credential string `json:"credential"`
}

Connection is a current-version launch input, not Runtime's private auth store. CoreURL includes the machine API base path. The provider owns delivery and file permissions; Runtime owns validation and its authentication representation.

func Decode

func Decode(raw []byte) (Connection, error)

Decode accepts one exact object. Unknown, duplicate, missing and case-aliased fields reject instead of introducing alternate spellings of this contract.

func (Connection) Marshal

func (c Connection) Marshal() ([]byte, error)

func (Connection) Validate

func (c Connection) Validate() error

Jump to

Keyboard shortcuts

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