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 ¶
const MaxBytes = 16 * 1024
const Version = 1
Variables ¶
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