Documentation ¶
Index ¶
- Constants
- func Headers(device string, headers map[string]string) map[string]string
- type API
- func (v *API) AuthenticateVinService(vin, user, service string) (PinResponse, error)
- func (v *API) ChargeAction(vin, user string, start bool) error
- func (v *API) Position(vin string) (PositionResponse, error)
- func (v *API) Status(vin string) (StatusResponse, error)
- func (v *API) User(name string) (User, error)
- func (v *API) Vehicles(user string) ([]string, error)
- type ActionResponse
- type Identity
- type KeyValue
- type KeyValueList
- type PinResponse
- type PositionResponse
- type Provider
- func (v *Provider) ChargeEnable(enable bool) error
- func (v *Provider) FinishTime() (time.Time, error)
- func (v *Provider) Odometer() (float64, error)
- func (v *Provider) Position() (float64, float64, error)
- func (v *Provider) Range() (int64, error)
- func (v *Provider) Soc() (float64, error)
- func (v *Provider) Status() (api.ChargeStatus, error)
- type StatusResponse
- type Token
- type User
- type Vehicle
- type VehiclesResponse
Constants ¶
View Source
const ( IF9_BASE_URL = "https://if9.prod-row.jlrmotor.com/if9/jlr" IFOP_BASE_URL = "https://ifop.prod-row.jlrmotor.com/ifop/jlr" )
View Source
const IFAS_BASE_URL = "https://ifas.prod-row.jlrmotor.com/ifas/jlr"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
API is the Jaguar/Landrover api client
func (*API) AuthenticateVinService ¶
func (v *API) AuthenticateVinService(vin, user, service string) (PinResponse, error)
func (*API) Position ¶
func (v *API) Position(vin string) (PositionResponse, error)
Position returns the vehicle position
type ActionResponse ¶
type ActionResponse struct {
FailureDescription string
}
type Identity ¶
type Identity struct { *request.Helper oauth2.TokenSource // contains filtered or unexported fields }
func NewIdentity ¶
NewIdentity creates Fiat identity
type KeyValueList ¶
type KeyValueList []KeyValue
type PinResponse ¶
type PinResponse struct {
Token string
}
type PositionResponse ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) ChargeEnable ¶
ChargeEnable implements the api.ChargeController interface
func (*Provider) FinishTime ¶
FinishTime implements the api.VehicleFinishTimer interface
type StatusResponse ¶
type StatusResponse struct { VehicleStatus struct { CoreStatus KeyValueList EvStatus KeyValueList } }
type VehiclesResponse ¶
type VehiclesResponse struct {
Vehicles []Vehicle
}
Click to show internal directories.
Click to hide internal directories.