Versions in this module Expand all Collapse all v0 v0.0.2 Dec 9, 2023 v0.0.1 Oct 9, 2023 Changes in this version + const ClimateKeeperModeCamp + const ClimateKeeperModeDog + const ClimateKeeperModeOff + const ClimateKeeperModeOn + var ErrNoFleetAPIConnection = errors.New("not connected to Fleet API") + var ErrVehicleStateUnknown = errors.New("could not determine vehicle state") + func IsWhitelistOperationComplete(fromVCSEC *vcsec.FromVCSECMessage) (bool, error) + func UnmarshalVCSECResponse(message *universal.RoutableMessage) (*vcsec.FromVCSECMessage, error) + type ChargingPolicy int + const ChargingPolicyAllDays + const ChargingPolicyOff + const ChargingPolicyWeekdays + type ClimateKeeperMode = carserver.HvacClimateKeeperAction_ClimateKeeperAction_E + type Closure string + const ClosureFrunk + const ClosureTrunk + type Level int + const LevelHigh + const LevelLow + const LevelMed + const LevelOff + type SeatPosition int64 + const SeatFrontLeft + const SeatFrontRight + const SeatSecondRowCenter + const SeatSecondRowLeft + const SeatSecondRowLeftBack + const SeatSecondRowRight + const SeatSecondRowRightBack + const SeatThirdRowLeft + const SeatThirdRowRight + const SeatUnknown + type Vehicle struct + Flags uint32 + func NewVehicle(conn connector.Connector, privateKey authentication.ECDHPrivateKey, ...) (*Vehicle, error) + func (v *Vehicle) ActivateSpeedLimit(ctx context.Context, speedLimitPin string) error + func (v *Vehicle) ActuateTrunk(ctx context.Context) error + func (v *Vehicle) AddKey(ctx context.Context, publicKey *ecdh.PublicKey, isOwner bool, ...) error + func (v *Vehicle) AutoSeatAndClimate(ctx context.Context, positions []SeatPosition, enabled bool) error + func (v *Vehicle) AutoSecureVehicle(ctx context.Context) error + func (v *Vehicle) CancelSoftwareUpdate(ctx context.Context) error + func (v *Vehicle) ChangeChargeLimit(ctx context.Context, chargeLimitPercent int32) error + func (v *Vehicle) ChangeClimateTemp(ctx context.Context, driverCelsius float32, passengerCelsius float32) error + func (v *Vehicle) ChangeSunroofState(ctx context.Context, sunroofLevel int32) error + func (v *Vehicle) ChargeMaxRange(ctx context.Context) error + func (v *Vehicle) ChargePortClose(ctx context.Context) error + func (v *Vehicle) ChargePortOpen(ctx context.Context) error + func (v *Vehicle) ChargeStandardRange(ctx context.Context) error + func (v *Vehicle) ChargeStart(ctx context.Context) error + func (v *Vehicle) ChargeStop(ctx context.Context) error + func (v *Vehicle) ClearScheduledDeparture(ctx context.Context) error + func (v *Vehicle) ClearSpeedLimitPIN(ctx context.Context, speedLimitPin string) error + func (v *Vehicle) ClimateOff(ctx context.Context) error + func (v *Vehicle) ClimateOn(ctx context.Context) error + func (v *Vehicle) CloseChargePort(ctx context.Context) error + func (v *Vehicle) CloseTrunk(ctx context.Context) error + func (v *Vehicle) CloseWindows(ctx context.Context) error + func (v *Vehicle) Connect(ctx context.Context) error + func (v *Vehicle) DeactivateSpeedLimit(ctx context.Context, speedLimitPin string) error + func (v *Vehicle) Disconnect() + func (v *Vehicle) FlashLights(ctx context.Context) error + func (v *Vehicle) GetNearbyCharging(ctx context.Context) error + func (v *Vehicle) HonkHorn(ctx context.Context) error + func (v *Vehicle) KeyInfoBySlot(ctx context.Context, slot uint32) (*vcsec.WhitelistEntryInfo, error) + func (v *Vehicle) KeySummary(ctx context.Context) (*vcsec.WhitelistInfo, error) + func (v *Vehicle) LoadCachedSessions(c *cache.SessionCache) error + func (v *Vehicle) Lock(ctx context.Context) error + func (v *Vehicle) OpenChargePort(ctx context.Context) error + func (v *Vehicle) OpenFrunk(ctx context.Context) error + func (v *Vehicle) OpenTrunk(ctx context.Context) error + func (v *Vehicle) Ping(ctx context.Context) error + func (v *Vehicle) PrivateKeyAvailable() bool + func (v *Vehicle) RemoteDrive(ctx context.Context) error + func (v *Vehicle) RemoveKey(ctx context.Context, publicKey *ecdh.PublicKey) error + func (v *Vehicle) ResetPIN(ctx context.Context) error + func (v *Vehicle) ResetValetPin(ctx context.Context) error + func (v *Vehicle) ScheduleCharging(ctx context.Context, enabled bool, timeAfterMidnight time.Duration) error + func (v *Vehicle) ScheduleDeparture(ctx context.Context, departAt, offPeakEndTime time.Duration, ...) error + func (v *Vehicle) ScheduleSoftwareUpdate(ctx context.Context, delay time.Duration) error + func (v *Vehicle) Send(ctx context.Context, domain universal.Domain, payload []byte, ...) ([]byte, error) + func (v *Vehicle) SendAddKeyRequest(ctx context.Context, publicKey *ecdh.PublicKey, isOwner bool, ...) error + func (v *Vehicle) SendMessage(ctx context.Context, message *universal.RoutableMessage) (protocol.Receiver, error) + func (v *Vehicle) SessionInfo(ctx context.Context, publicKey *ecdh.PublicKey, domain universal.Domain) (*signatures.SessionInfo, error) + func (v *Vehicle) SetBioweaponDefenseMode(ctx context.Context, enabled bool, manualOverride bool) error + func (v *Vehicle) SetCabinOverheatProtection(ctx context.Context, enabled bool, fanOnly bool) error + func (v *Vehicle) SetCabinOverheatProtectionTemperature(ctx context.Context, level Level) error + func (v *Vehicle) SetChargingAmps(ctx context.Context, amps int32) error + func (v *Vehicle) SetClimateKeeperMode(ctx context.Context, mode ClimateKeeperMode, override bool) error + func (v *Vehicle) SetGuestMode(ctx context.Context, enabled bool) error + func (v *Vehicle) SetPINToDrive(ctx context.Context, enabled bool, pin string) error + func (v *Vehicle) SetPreconditioningMax(ctx context.Context, enabled bool, manualOverride bool) error + func (v *Vehicle) SetSeatCooler(ctx context.Context, level Level, seat SeatPosition) error + func (v *Vehicle) SetSeatHeater(ctx context.Context, levels map[SeatPosition]Level) error + func (v *Vehicle) SetSentryMode(ctx context.Context, state bool) error + func (v *Vehicle) SetSteeringWheelHeater(ctx context.Context, enabled bool) error + func (v *Vehicle) SetValetMode(ctx context.Context, on bool, valetPassword string) error + func (v *Vehicle) SetVehicleName(ctx context.Context, name string) error + func (v *Vehicle) SetVolume(ctx context.Context, volume float32) error + func (v *Vehicle) SpeedLimitSetLimitMPH(ctx context.Context, speedLimitMPH float64) error + func (v *Vehicle) StartSession(ctx context.Context, domains []universal.Domain) error + func (v *Vehicle) TriggerHomelink(ctx context.Context, latitude float32, longitude float32) error + func (v *Vehicle) Unlock(ctx context.Context) error + func (v *Vehicle) UpdateCachedSessions(c *cache.SessionCache) error + func (v *Vehicle) VIN() string + func (v *Vehicle) VentWindows(ctx context.Context) error + func (v *Vehicle) Wakeup(ctx context.Context) error