Port pytoyoda's authentication and read-only data flow to a Go builtin plugin behind the existing plugin contract. Implements the three-legged ForgeRock/OAuth2 login (authenticate callback loop, authorize, token exchange), silent refresh with full re-auth fallback, and the full Toyota gateway header set with backoff on 429/5xx. Exposes read-only capabilities: vehicles, telemetry, location, health, status, electric, notifications, and service-history. Config takes a MyToyota email/password and a Toyota/Lexus brand select. Europe-only and read-only, matching pytoyoda's limitations. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
18 lines
705 B
Go
18 lines
705 B
Go
// Package builtin blank-imports every built-in plugin so their init() functions
|
|
// register them with the plugin registry. Import this package once (from the api
|
|
// package) to make all built-in connectors available.
|
|
//
|
|
// DriverVault ships no built-in connectors yet — add one under
|
|
// internal/plugins/builtin/<name>/ and blank-import it here, e.g.
|
|
//
|
|
// import _ "drivervault/apiserver/internal/plugins/builtin/acme"
|
|
//
|
|
// Until then, plugins are added at runtime as the "external" HTTP kind, which
|
|
// needs no rebuild. See ../README.md.
|
|
package builtin
|
|
|
|
import (
|
|
// toyota — Toyota Connected Europe (MyToyota) read-only vehicle data.
|
|
_ "drivervault/apiserver/internal/plugins/builtin/toyota"
|
|
)
|