kamereon

package
v0.0.0-...-c39990c Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionStart = "start"
	ActionStop  = "stop"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	*request.Helper
	// contains filtered or unexported fields
}

func New

func New(log *util.Logger, keys keys.ConfigServer, identity *gigya.Identity, login func() error) *API

func (*API) Action

func (v *API) Action(accountID, action string, vin string) (Response, error)

func (*API) Battery

func (v *API) Battery(accountID string, vin string) (Response, error)

Battery provides battery-status api response

func (*API) Cockpit

func (v *API) Cockpit(accountID string, vin string) (Response, error)

Cockpit provides cockpit api response

func (*API) Hvac

func (v *API) Hvac(accountID string, vin string) (Response, error)

Hvac provides hvac-status api response

func (*API) Person

func (v *API) Person(personID, brand string) (string, error)

func (*API) Position

func (v *API) Position(accountID string, vin string) (Response, error)

func (*API) Vehicles

func (v *API) Vehicles(accountID string) ([]Vehicle, error)

func (*API) WakeUp

func (v *API) WakeUp(accountID string, vin string) (Response, error)

type Account

type Account struct {
	AccountID     string
	AccountType   string
	AccountStatus string
	Country       string
	RelationType  string
}

type Data

type Data struct {
	Attributes attributes
}

type Response

type Response struct {
	Accounts     []Account // /commerce/v1/persons/%s
	AccessToken  string    // /commerce/v1/accounts/%s/kamereon/token
	VehicleLinks []Vehicle // /commerce/v1/accounts/%s/vehicles
	Data         Data      // /commerce/v1/accounts/%s/kamereon/kca/car-adapter/vX/cars/%s/...
}

type Vehicle

type Vehicle struct {
	Brand           string
	VIN             string
	Status          string
	ConnectedDriver connectedDriver
}

func (*Vehicle) Available

func (v *Vehicle) Available() error

Jump to

Keyboard shortcuts

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