api

package
v0.0.0-...-4086bda Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

README

To regenerate code based on the OpenAPI spec:

$ go generate api.go

To generate the OpenAPI markdown docs:

$ npm install -g widdershins
$ widdershins api-spec.yaml -o API.md -c true

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.13.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = &ErrResponse{
	HTTPStatusCode: http.StatusNotFound,
	StatusText:     http.StatusText(http.StatusNotFound),
}

Functions

func ErrInternalError

func ErrInternalError(err error) render.Renderer

func ErrInvalidRequest

func ErrInvalidRequest(err error) render.Renderer

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func ValidationMiddleware

func ValidationMiddleware(next http.Handler) http.Handler

Types

type Certificate

type Certificate struct {
	// Certificate The PEM encoded certificate with newlines replaced by `\n`
	Certificate string `json:"certificate"`
}

Certificate A client certificate

func (Certificate) Bind

func (t Certificate) Bind(r *http.Request) error

func (Certificate) Render

func (t Certificate) Render(w http.ResponseWriter, r *http.Request) error

type ChargeStationAuth

type ChargeStationAuth struct {
	// Base64SHA256Password The base64 encoded, SHA-256 hash of the charge station password
	Base64SHA256Password *string `json:"base64SHA256Password,omitempty"`

	// InvalidUsernameAllowed If set to true then an invalid username will not prevent the charge station connecting
	InvalidUsernameAllowed *bool `json:"invalidUsernameAllowed,omitempty"`

	// SecurityProfile The security profile to use for the charge station: * `0` - unsecured transport with basic auth * `1` - TLS with basic auth * `2` - TLS with client certificate
	SecurityProfile int `json:"securityProfile"`
}

ChargeStationAuth Connection details for a charge station

func (ChargeStationAuth) Bind

func (c ChargeStationAuth) Bind(r *http.Request) error

func (ChargeStationAuth) Render

type ChargeStationInstallCertificates

type ChargeStationInstallCertificates struct {
	Certificates []struct {
		// Certificate The PEM encoded certificate with newlines replaced by `\n`
		Certificate string `json:"certificate"`

		// Status The status, defaults to Pending
		Status *ChargeStationInstallCertificatesCertificatesStatus `json:"status,omitempty"`
		Type   ChargeStationInstallCertificatesCertificatesType    `json:"type"`
	} `json:"certificates"`
}

ChargeStationInstallCertificates The set of certificates to install on the charge station. The certificates will be sent to the charge station asynchronously.

func (ChargeStationInstallCertificates) Bind

type ChargeStationInstallCertificatesCertificatesStatus

type ChargeStationInstallCertificatesCertificatesStatus string

ChargeStationInstallCertificatesCertificatesStatus The status, defaults to Pending

Defines values for ChargeStationInstallCertificatesCertificatesStatus.

type ChargeStationInstallCertificatesCertificatesType

type ChargeStationInstallCertificatesCertificatesType string

ChargeStationInstallCertificatesCertificatesType defines model for ChargeStationInstallCertificates.Certificates.Type.

Defines values for ChargeStationInstallCertificatesCertificatesType.

type ChargeStationSettings

type ChargeStationSettings map[string]string

ChargeStationSettings Settings for a charge station

func (ChargeStationSettings) Bind

type ChargeStationTrigger

type ChargeStationTrigger struct {
	Trigger ChargeStationTriggerTrigger `json:"trigger"`
}

ChargeStationTrigger Trigger a charge station action

func (ChargeStationTrigger) Bind

type ChargeStationTriggerTrigger

type ChargeStationTriggerTrigger string

ChargeStationTriggerTrigger defines model for ChargeStationTrigger.Trigger.

const (
	BootNotification               ChargeStationTriggerTrigger = "BootNotification"
	SignChargingStationCertificate ChargeStationTriggerTrigger = "SignChargingStationCertificate"
	SignCombinedCertificate        ChargeStationTriggerTrigger = "SignCombinedCertificate"
	SignV2GCertificate             ChargeStationTriggerTrigger = "SignV2GCertificate"
	StatusNotification             ChargeStationTriggerTrigger = "StatusNotification"
)

Defines values for ChargeStationTriggerTrigger.

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type Connector

type Connector struct {
	Format      ConnectorFormat    `json:"format"`
	Id          string             `json:"id"`
	MaxAmperage int32              `json:"max_amperage"`
	MaxVoltage  int32              `json:"max_voltage"`
	PowerType   ConnectorPowerType `json:"power_type"`
	Standard    ConnectorStandard  `json:"standard"`
}

Connector defines model for Connector.

type ConnectorFormat

type ConnectorFormat string

ConnectorFormat defines model for Connector.Format.

const (
	CABLE  ConnectorFormat = "CABLE"
	SOCKET ConnectorFormat = "SOCKET"
)

Defines values for ConnectorFormat.

type ConnectorPowerType

type ConnectorPowerType string

ConnectorPowerType defines model for Connector.PowerType.

const (
	AC1PHASE ConnectorPowerType = "AC_1_PHASE"
	AC3PHASE ConnectorPowerType = "AC_3_PHASE"
	DC       ConnectorPowerType = "DC"
)

Defines values for ConnectorPowerType.

type ConnectorStandard

type ConnectorStandard string

ConnectorStandard defines model for Connector.Standard.

const (
	CHADEMO            ConnectorStandard = "CHADEMO"
	CHAOJI             ConnectorStandard = "CHAOJI"
	DOMESTICA          ConnectorStandard = "DOMESTIC_A"
	DOMESTICB          ConnectorStandard = "DOMESTIC_B"
	DOMESTICC          ConnectorStandard = "DOMESTIC_C"
	DOMESTICD          ConnectorStandard = "DOMESTIC_D"
	DOMESTICE          ConnectorStandard = "DOMESTIC_E"
	DOMESTICF          ConnectorStandard = "DOMESTIC_F"
	DOMESTICG          ConnectorStandard = "DOMESTIC_G"
	DOMESTICH          ConnectorStandard = "DOMESTIC_H"
	DOMESTICI          ConnectorStandard = "DOMESTIC_I"
	DOMESTICJ          ConnectorStandard = "DOMESTIC_J"
	DOMESTICK          ConnectorStandard = "DOMESTIC_K"
	DOMESTICL          ConnectorStandard = "DOMESTIC_L"
	GBTAC              ConnectorStandard = "GBT_AC"
	GBTDC              ConnectorStandard = "GBT_DC"
	IEC603092Single16  ConnectorStandard = "IEC_60309_2_single_16"
	IEC603092Three16   ConnectorStandard = "IEC_60309_2_three_16"
	IEC603092Three32   ConnectorStandard = "IEC_60309_2_three_32"
	IEC603092Three64   ConnectorStandard = "IEC_60309_2_three_64"
	IEC62196T1         ConnectorStandard = "IEC_62196_T1"
	IEC62196T1COMBO    ConnectorStandard = "IEC_62196_T1_COMBO"
	IEC62196T2         ConnectorStandard = "IEC_62196_T2"
	IEC62196T2COMBO    ConnectorStandard = "IEC_62196_T2_COMBO"
	IEC62196T3A        ConnectorStandard = "IEC_62196_T3A"
	IEC62196T3C        ConnectorStandard = "IEC_62196_T3C"
	NEMA1030           ConnectorStandard = "NEMA_10_30"
	NEMA1050           ConnectorStandard = "NEMA_10_50"
	NEMA1430           ConnectorStandard = "NEMA_14_30"
	NEMA1450           ConnectorStandard = "NEMA_14_50"
	NEMA520            ConnectorStandard = "NEMA_5_20"
	NEMA630            ConnectorStandard = "NEMA_6_30"
	NEMA650            ConnectorStandard = "NEMA_6_50"
	PANTOGRAPHBOTTOMUP ConnectorStandard = "PANTOGRAPH_BOTTOM_UP"
	PANTOGRAPHTOPDOWN  ConnectorStandard = "PANTOGRAPH_TOP_DOWN"
	TESLAR             ConnectorStandard = "TESLA_R"
	TESLAS             ConnectorStandard = "TESLA_S"
	UNKNOWN            ConnectorStandard = "UNKNOWN"
)

Defines values for ConnectorStandard.

type ErrResponse

type ErrResponse struct {
	Err            error `json:"-"` // low-level runtime error
	HTTPStatusCode int   `json:"-"` // http response status code

	StatusText string `json:"status"`          // user-level status message
	AppCode    int64  `json:"code,omitempty"`  // application-specific error code
	ErrorText  string `json:"error,omitempty"` // application-level error message, for debugging
}

func (*ErrResponse) Render

func (e *ErrResponse) Render(w http.ResponseWriter, r *http.Request) error

type Evse

type Evse struct {
	Connectors []Connector `json:"connectors"`
	EvseId     *string     `json:"evse_id"`

	// Uid Uniquely identifies the EVSE within the CPOs platform (and
	// suboperator platforms).
	Uid string `json:"uid"`
}

Evse defines model for Evse.

type GeoLocation

type GeoLocation struct {
	Latitude  string `json:"latitude"`
	Longitude string `json:"longitude"`
}

GeoLocation defines model for GeoLocation.

type InstallChargeStationCertificatesJSONRequestBody

type InstallChargeStationCertificatesJSONRequestBody = ChargeStationInstallCertificates

InstallChargeStationCertificatesJSONRequestBody defines body for InstallChargeStationCertificates for application/json ContentType.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type ListTokensParams

type ListTokensParams struct {
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
	Limit  *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListTokensParams defines parameters for ListTokens.

type Location

type Location struct {
	Address     string               `json:"address"`
	City        string               `json:"city"`
	Coordinates GeoLocation          `json:"coordinates"`
	Country     string               `json:"country"`
	CountryCode string               `json:"country_code"`
	Evses       *[]Evse              `json:"evses"`
	Name        *string              `json:"name"`
	ParkingType *LocationParkingType `json:"parking_type"`
	PartyId     string               `json:"party_id"`
	PostalCode  *string              `json:"postal_code"`
}

Location A charge station location

func (Location) Bind

func (r Location) Bind(req *http.Request) error

type LocationParkingType

type LocationParkingType string

LocationParkingType defines model for Location.ParkingType.

const (
	ALONGMOTORWAY     LocationParkingType = "ALONG_MOTORWAY"
	ONDRIVEWAY        LocationParkingType = "ON_DRIVEWAY"
	ONSTREET          LocationParkingType = "ON_STREET"
	PARKINGGARAGE     LocationParkingType = "PARKING_GARAGE"
	PARKINGLOT        LocationParkingType = "PARKING_LOT"
	UNDERGROUNDGARAGE LocationParkingType = "UNDERGROUND_GARAGE"
)

Defines values for LocationParkingType.

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type ReconfigureChargeStationJSONRequestBody

type ReconfigureChargeStationJSONRequestBody = ChargeStationSettings

ReconfigureChargeStationJSONRequestBody defines body for ReconfigureChargeStation for application/json ContentType.

type RegisterChargeStationJSONRequestBody

type RegisterChargeStationJSONRequestBody = ChargeStationAuth

RegisterChargeStationJSONRequestBody defines body for RegisterChargeStation for application/json ContentType.

type RegisterLocationJSONRequestBody

type RegisterLocationJSONRequestBody = Location

RegisterLocationJSONRequestBody defines body for RegisterLocation for application/json ContentType.

type RegisterPartyJSONRequestBody

type RegisterPartyJSONRequestBody = Registration

RegisterPartyJSONRequestBody defines body for RegisterParty for application/json ContentType.

type Registration

type Registration struct {
	// Status The status of the registration request. If the request is marked as `REGISTERED` then the token will be allowed to
	// be used to access all endpoints avoiding the need for the OCPI registration process. If the request is marked as
	// `PENDING` then the token will only be allowed to access the `/ocpi/versions`, `/ocpi/2.2` and `/ocpi/2.2/credentials`
	// endpoints.
	Status *RegistrationStatus `json:"status,omitempty"`

	// Token The token to use for communicating with the eMSP (CREDENTIALS_TOKEN_A).
	Token string `json:"token"`

	// Url The URL of the eMSP versions endpoint. If provided the CSMS will act as the sender of the versions request.
	Url *string `json:"url,omitempty"`
}

Registration Defines the initial connection details for the OCPI registration process

func (Registration) Bind

func (r Registration) Bind(req *http.Request) error

type RegistrationStatus

type RegistrationStatus string

RegistrationStatus The status of the registration request. If the request is marked as `REGISTERED` then the token will be allowed to be used to access all endpoints avoiding the need for the OCPI registration process. If the request is marked as `PENDING` then the token will only be allowed to access the `/ocpi/versions`, `/ocpi/2.2` and `/ocpi/2.2/credentials` endpoints.

const (
	PENDING    RegistrationStatus = "PENDING"
	REGISTERED RegistrationStatus = "REGISTERED"
)

Defines values for RegistrationStatus.

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(engine store.Engine, clock clock.PassiveClock, ocpi ocpi.Api) (*Server, error)

func (*Server) DeleteCertificate

func (s *Server) DeleteCertificate(w http.ResponseWriter, r *http.Request, certificateHash string)

func (*Server) InstallChargeStationCertificates

func (s *Server) InstallChargeStationCertificates(w http.ResponseWriter, r *http.Request, csId string)

func (*Server) ListTokens

func (s *Server) ListTokens(w http.ResponseWriter, r *http.Request, params ListTokensParams)

func (*Server) LookupCertificate

func (s *Server) LookupCertificate(w http.ResponseWriter, r *http.Request, certificateHash string)

func (*Server) LookupChargeStationAuth

func (s *Server) LookupChargeStationAuth(w http.ResponseWriter, r *http.Request, csId string)

func (*Server) LookupToken

func (s *Server) LookupToken(w http.ResponseWriter, r *http.Request, tokenUid string)

func (*Server) ReconfigureChargeStation

func (s *Server) ReconfigureChargeStation(w http.ResponseWriter, r *http.Request, csId string)

func (*Server) RegisterChargeStation

func (s *Server) RegisterChargeStation(w http.ResponseWriter, r *http.Request, csId string)

func (*Server) RegisterLocation

func (s *Server) RegisterLocation(w http.ResponseWriter, r *http.Request, locationId string)

func (*Server) RegisterParty

func (s *Server) RegisterParty(w http.ResponseWriter, r *http.Request)

func (*Server) SetToken

func (s *Server) SetToken(w http.ResponseWriter, r *http.Request)

func (*Server) TriggerChargeStation

func (s *Server) TriggerChargeStation(w http.ResponseWriter, r *http.Request, csId string)

func (*Server) UploadCertificate

func (s *Server) UploadCertificate(w http.ResponseWriter, r *http.Request)

type ServerInterface

type ServerInterface interface {
	// Upload a certificate
	// (POST /certificate)
	UploadCertificate(w http.ResponseWriter, r *http.Request)
	// Delete a certificate
	// (DELETE /certificate/{certificateHash})
	DeleteCertificate(w http.ResponseWriter, r *http.Request, certificateHash string)
	// Lookup a certificate
	// (GET /certificate/{certificateHash})
	LookupCertificate(w http.ResponseWriter, r *http.Request, certificateHash string)
	// Register a new charge station
	// (POST /cs/{csId})
	RegisterChargeStation(w http.ResponseWriter, r *http.Request, csId string)
	// Returns the authentication details
	// (GET /cs/{csId}/auth)
	LookupChargeStationAuth(w http.ResponseWriter, r *http.Request, csId string)
	// Install certificates on the charge station
	// (POST /cs/{csId}/certificates)
	InstallChargeStationCertificates(w http.ResponseWriter, r *http.Request, csId string)
	// Reconfigure the charge station
	// (POST /cs/{csId}/reconfigure)
	ReconfigureChargeStation(w http.ResponseWriter, r *http.Request, csId string)

	// (POST /cs/{csId}/trigger)
	TriggerChargeStation(w http.ResponseWriter, r *http.Request, csId string)
	// Registers a location with the CSMS
	// (POST /location/{locationId})
	RegisterLocation(w http.ResponseWriter, r *http.Request, locationId string)
	// Registers an OCPI party with the CSMS
	// (POST /register)
	RegisterParty(w http.ResponseWriter, r *http.Request)
	// List authorization tokens
	// (GET /token)
	ListTokens(w http.ResponseWriter, r *http.Request, params ListTokensParams)
	// Create/update an authorization token
	// (POST /token)
	SetToken(w http.ResponseWriter, r *http.Request)
	// Lookup an authorization token
	// (GET /token/{tokenUid})
	LookupToken(w http.ResponseWriter, r *http.Request, tokenUid string)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) DeleteCertificate

func (siw *ServerInterfaceWrapper) DeleteCertificate(w http.ResponseWriter, r *http.Request)

DeleteCertificate operation middleware

func (*ServerInterfaceWrapper) InstallChargeStationCertificates

func (siw *ServerInterfaceWrapper) InstallChargeStationCertificates(w http.ResponseWriter, r *http.Request)

InstallChargeStationCertificates operation middleware

func (*ServerInterfaceWrapper) ListTokens

func (siw *ServerInterfaceWrapper) ListTokens(w http.ResponseWriter, r *http.Request)

ListTokens operation middleware

func (*ServerInterfaceWrapper) LookupCertificate

func (siw *ServerInterfaceWrapper) LookupCertificate(w http.ResponseWriter, r *http.Request)

LookupCertificate operation middleware

func (*ServerInterfaceWrapper) LookupChargeStationAuth

func (siw *ServerInterfaceWrapper) LookupChargeStationAuth(w http.ResponseWriter, r *http.Request)

LookupChargeStationAuth operation middleware

func (*ServerInterfaceWrapper) LookupToken

func (siw *ServerInterfaceWrapper) LookupToken(w http.ResponseWriter, r *http.Request)

LookupToken operation middleware

func (*ServerInterfaceWrapper) ReconfigureChargeStation

func (siw *ServerInterfaceWrapper) ReconfigureChargeStation(w http.ResponseWriter, r *http.Request)

ReconfigureChargeStation operation middleware

func (*ServerInterfaceWrapper) RegisterChargeStation

func (siw *ServerInterfaceWrapper) RegisterChargeStation(w http.ResponseWriter, r *http.Request)

RegisterChargeStation operation middleware

func (*ServerInterfaceWrapper) RegisterLocation

func (siw *ServerInterfaceWrapper) RegisterLocation(w http.ResponseWriter, r *http.Request)

RegisterLocation operation middleware

func (*ServerInterfaceWrapper) RegisterParty

func (siw *ServerInterfaceWrapper) RegisterParty(w http.ResponseWriter, r *http.Request)

RegisterParty operation middleware

func (*ServerInterfaceWrapper) SetToken

func (siw *ServerInterfaceWrapper) SetToken(w http.ResponseWriter, r *http.Request)

SetToken operation middleware

func (*ServerInterfaceWrapper) TriggerChargeStation

func (siw *ServerInterfaceWrapper) TriggerChargeStation(w http.ResponseWriter, r *http.Request)

TriggerChargeStation operation middleware

func (*ServerInterfaceWrapper) UploadCertificate

func (siw *ServerInterfaceWrapper) UploadCertificate(w http.ResponseWriter, r *http.Request)

UploadCertificate operation middleware

type SetTokenJSONRequestBody

type SetTokenJSONRequestBody = Token

SetTokenJSONRequestBody defines body for SetToken for application/json ContentType.

type Status

type Status struct {
	// Error The error details
	Error *string `json:"error,omitempty"`

	// Status The status description
	Status string `json:"status"`
}

Status HTTP status

type Token

type Token struct {
	// CacheMode Indicates what type of token caching is allowed
	CacheMode TokenCacheMode `json:"cacheMode"`

	// ContractId The contract ID (eMAID) associated with the token (with optional component separators)
	ContractId string `json:"contractId"`

	// CountryCode The country code of the issuing eMSP
	CountryCode string `json:"countryCode"`

	// GroupId This id groups a couple of tokens to make two or more tokens work as one
	GroupId *string `json:"groupId,omitempty"`

	// Issuer Issuing company, most of the times the name of the company printed on the RFID card, not necessarily the eMSP
	Issuer string `json:"issuer"`

	// LanguageCode The preferred language to use encoded as ISO 639-1 language code
	LanguageCode *string `json:"languageCode,omitempty"`

	// LastUpdated The date the record was last updated (ignored on create/update)
	LastUpdated *time.Time `json:"lastUpdated,omitempty"`

	// PartyId The party id of the issuing eMSP
	PartyId string `json:"partyId"`

	// Type The type of token
	Type TokenType `json:"type"`

	// Uid The unique token id
	Uid string `json:"uid"`

	// Valid Is this token valid
	Valid bool `json:"valid"`

	// VisualNumber The visual/readable number/identification printed on an RFID card
	VisualNumber *string `json:"visualNumber,omitempty"`
}

Token An authorization token

func (Token) Bind

func (t Token) Bind(r *http.Request) error

func (Token) Render

func (t Token) Render(w http.ResponseWriter, r *http.Request) error

type TokenCacheMode

type TokenCacheMode string

TokenCacheMode Indicates what type of token caching is allowed

const (
	ALLOWED        TokenCacheMode = "ALLOWED"
	ALLOWEDOFFLINE TokenCacheMode = "ALLOWED_OFFLINE"
	ALWAYS         TokenCacheMode = "ALWAYS"
	NEVER          TokenCacheMode = "NEVER"
)

Defines values for TokenCacheMode.

type TokenType

type TokenType string

TokenType The type of token

const (
	ADHOCUSER TokenType = "AD_HOC_USER"
	APPUSER   TokenType = "APP_USER"
	OTHER     TokenType = "OTHER"
	RFID      TokenType = "RFID"
)

Defines values for TokenType.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type TriggerChargeStationJSONRequestBody

type TriggerChargeStationJSONRequestBody = ChargeStationTrigger

TriggerChargeStationJSONRequestBody defines body for TriggerChargeStation for application/json ContentType.

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshallingParamError

type UnmarshallingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshallingParamError) Error

func (e *UnmarshallingParamError) Error() string

func (*UnmarshallingParamError) Unwrap

func (e *UnmarshallingParamError) Unwrap() error

type UploadCertificateJSONRequestBody

type UploadCertificateJSONRequestBody = Certificate

UploadCertificateJSONRequestBody defines body for UploadCertificate for application/json ContentType.

Jump to

Keyboard shortcuts

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