Documentation
¶
Index ¶
Constants ¶
View Source
const ( APIVersion = "protocol=1.0,resource=2.1" ClientID = "a-ncb-prod-android" ClientSecret = "3LBs0yOx2XO-3m4mMRW27rKeJzskhfWF0A8KUtnim8i/qYQPl8ZItp3IaqJXaYj_" Scope = "openid profile vehicles" AuthBaseURL = "https://prod.eu.auth.kamereon.org/kauth" Realm = "a-ncb-prod" RedirectURI = "org.kamereon.service.nci:/oauth2redirect" CarAdapterBaseURL = "https://alliance-platform-caradapter-prod.apps.eu.kamereon.io/car-adapter" UserAdapterBaseURL = "https://alliance-platform-usersadapter-prod.apps.eu.kamereon.io/user-adapter" UserBaseURL = "https://nci-bff-web-prod.apps.eu.kamereon.io/bff-web" )
api constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
func (*API) ChargingAction ¶
ChargingAction provides actions/charging-start api response
type Auth ¶
type Auth struct { AuthID string `json:"authId"` Template string `json:"template"` Stage string `json:"stage"` Header string `json:"header"` Callbacks []AuthCallback `json:"callbacks"` }
type AuthCallback ¶
type AuthCallback struct { Type string `json:"type"` Output []AuthCallbackValue `json:"output"` Input []AuthCallbackValue `json:"input"` }
type AuthCallbackValue ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a kamereon provider
func NewProvider ¶
NewProvider returns a kamereon provider
func (*Provider) FinishTime ¶
FinishTime implements the api.VehicleFinishTimer interface
func (*Provider) StartCharge ¶
StartCharge implements the api.VehicleStartCharge interface
func (*Provider) Status ¶
func (v *Provider) Status() (api.ChargeStatus, error)
Status implements the api.ChargeState interface
func (*Provider) StopCharge ¶
StopCharge implements the api.VehicleStopCharge interface
type Request ¶
type Request struct {
Data Payload `json:"data"`
}
Request structure for kamereon api
type Response ¶
type Response struct { Data struct { Type, ID string // battery refresh Attributes attributes `json:"attributes"` } `json:"data"` }
Response structure for kamereon api
Click to show internal directories.
Click to hide internal directories.