openevse

package
v0.0.0-...-0c7050d Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClearManualOverrideRequest

func NewClearManualOverrideRequest(server string) (*http.Request, error)

NewClearManualOverrideRequest generates requests for ClearManualOverride

func NewGetClaimRequest

func NewGetClaimRequest(server string, client int) (*http.Request, error)

NewGetClaimRequest generates requests for GetClaim

func NewGetConfigRequest

func NewGetConfigRequest(server string) (*http.Request, error)

NewGetConfigRequest generates requests for GetConfig

func NewGetEventBlockInfoRequest

func NewGetEventBlockInfoRequest(server string) (*http.Request, error)

NewGetEventBlockInfoRequest generates requests for GetEventBlockInfo

func NewGetEventBlockRequest

func NewGetEventBlockRequest(server string, index int) (*http.Request, error)

NewGetEventBlockRequest generates requests for GetEventBlock

func NewGetManualOverrideRequest

func NewGetManualOverrideRequest(server string) (*http.Request, error)

NewGetManualOverrideRequest generates requests for GetManualOverride

func NewGetScheduleEventRequest

func NewGetScheduleEventRequest(server string, id int) (*http.Request, error)

NewGetScheduleEventRequest generates requests for GetScheduleEvent

func NewGetStatusRequest

func NewGetStatusRequest(server string) (*http.Request, error)

NewGetStatusRequest generates requests for GetStatus

func NewGetTeslaVehiclesRequest

func NewGetTeslaVehiclesRequest(server string) (*http.Request, error)

NewGetTeslaVehiclesRequest generates requests for GetTeslaVehicles

func NewListClaimsRequest

func NewListClaimsRequest(server string) (*http.Request, error)

NewListClaimsRequest generates requests for ListClaims

func NewListScheduleRequest

func NewListScheduleRequest(server string) (*http.Request, error)

NewListScheduleRequest generates requests for ListSchedule

func NewReleaseClaimRequest

func NewReleaseClaimRequest(server string, client int) (*http.Request, error)

NewReleaseClaimRequest generates requests for ReleaseClaim

func NewRemoveScheduleEventRequest

func NewRemoveScheduleEventRequest(server string, id int) (*http.Request, error)

NewRemoveScheduleEventRequest generates requests for RemoveScheduleEvent

func NewSetClaimRequest

func NewSetClaimRequest(server string, client int, body SetClaimJSONRequestBody) (*http.Request, error)

NewSetClaimRequest calls the generic SetClaim builder with application/json body

func NewSetClaimRequestWithBody

func NewSetClaimRequestWithBody(server string, client int, contentType string, body io.Reader) (*http.Request, error)

NewSetClaimRequestWithBody generates requests for SetClaim with any type of body

func NewSetManualOverrideRequest

func NewSetManualOverrideRequest(server string, body SetManualOverrideJSONRequestBody) (*http.Request, error)

NewSetManualOverrideRequest calls the generic SetManualOverride builder with application/json body

func NewSetManualOverrideRequestWithBody

func NewSetManualOverrideRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewSetManualOverrideRequestWithBody generates requests for SetManualOverride with any type of body

func NewSetScheduleEventRequest

func NewSetScheduleEventRequest(server string, id int, body SetScheduleEventJSONRequestBody) (*http.Request, error)

NewSetScheduleEventRequest calls the generic SetScheduleEvent builder with application/json body

func NewSetScheduleEventRequestWithBody

func NewSetScheduleEventRequestWithBody(server string, id int, contentType string, body io.Reader) (*http.Request, error)

NewSetScheduleEventRequestWithBody generates requests for SetScheduleEvent with any type of body

func NewStatusUpdatesRequest

func NewStatusUpdatesRequest(server string) (*http.Request, error)

NewStatusUpdatesRequest generates requests for StatusUpdates

func NewToggleManualOverrideRequest

func NewToggleManualOverrideRequest(server string) (*http.Request, error)

NewToggleManualOverrideRequest generates requests for ToggleManualOverride

func NewUpdateConfigRequest

func NewUpdateConfigRequest(server string, body UpdateConfigJSONRequestBody) (*http.Request, error)

NewUpdateConfigRequest calls the generic UpdateConfig builder with application/json body

func NewUpdateConfigRequestWithBody

func NewUpdateConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateConfigRequestWithBody generates requests for UpdateConfig with any type of body

func NewUpdateScheduleRequest

func NewUpdateScheduleRequest(server string, body UpdateScheduleJSONRequestBody) (*http.Request, error)

NewUpdateScheduleRequest calls the generic UpdateSchedule builder with application/json body

func NewUpdateScheduleRequestWithBody

func NewUpdateScheduleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateScheduleRequestWithBody generates requests for UpdateSchedule with any type of body

Types

type BadRequest

type BadRequest = Message

BadRequest defines model for BadRequest.

type ClearManualOverrideResponse

type ClearManualOverrideResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseClearManualOverrideResponse

func ParseClearManualOverrideResponse(rsp *http.Response) (*ClearManualOverrideResponse, error)

ParseClearManualOverrideResponse parses an HTTP response from a ClearManualOverrideWithResponse call

func (ClearManualOverrideResponse) Status

Status returns HTTPResponse.Status

func (ClearManualOverrideResponse) StatusCode

func (r ClearManualOverrideResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) ClearManualOverride

func (c *Client) ClearManualOverride(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClaim

func (c *Client) GetClaim(ctx context.Context, client int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConfig

func (c *Client) GetConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetEventBlock

func (c *Client) GetEventBlock(ctx context.Context, index int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetEventBlockInfo

func (c *Client) GetEventBlockInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetManualOverride

func (c *Client) GetManualOverride(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetScheduleEvent

func (c *Client) GetScheduleEvent(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStatus

func (c *Client) GetStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTeslaVehicles

func (c *Client) GetTeslaVehicles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListClaims

func (c *Client) ListClaims(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSchedule

func (c *Client) ListSchedule(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReleaseClaim

func (c *Client) ReleaseClaim(ctx context.Context, client int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveScheduleEvent

func (c *Client) RemoveScheduleEvent(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetClaim

func (c *Client) SetClaim(ctx context.Context, client int, body SetClaimJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetClaimWithBody

func (c *Client) SetClaimWithBody(ctx context.Context, client int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetManualOverride

func (c *Client) SetManualOverride(ctx context.Context, body SetManualOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetManualOverrideWithBody

func (c *Client) SetManualOverrideWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetScheduleEvent

func (c *Client) SetScheduleEvent(ctx context.Context, id int, body SetScheduleEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetScheduleEventWithBody

func (c *Client) SetScheduleEventWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StatusUpdates

func (c *Client) StatusUpdates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ToggleManualOverride

func (c *Client) ToggleManualOverride(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateConfig

func (c *Client) UpdateConfig(ctx context.Context, body UpdateConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateConfigWithBody

func (c *Client) UpdateConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSchedule

func (c *Client) UpdateSchedule(ctx context.Context, body UpdateScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateScheduleWithBody

func (c *Client) UpdateScheduleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListClaims request
	ListClaims(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReleaseClaim request
	ReleaseClaim(ctx context.Context, client int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClaim request
	GetClaim(ctx context.Context, client int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetClaim request with any body
	SetClaimWithBody(ctx context.Context, client int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetClaim(ctx context.Context, client int, body SetClaimJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConfig request
	GetConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateConfig request with any body
	UpdateConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateConfig(ctx context.Context, body UpdateConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEventBlockInfo request
	GetEventBlockInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEventBlock request
	GetEventBlock(ctx context.Context, index int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClearManualOverride request
	ClearManualOverride(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetManualOverride request
	GetManualOverride(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ToggleManualOverride request
	ToggleManualOverride(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetManualOverride request with any body
	SetManualOverrideWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetManualOverride(ctx context.Context, body SetManualOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSchedule request
	ListSchedule(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSchedule request with any body
	UpdateScheduleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateSchedule(ctx context.Context, body UpdateScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveScheduleEvent request
	RemoveScheduleEvent(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetScheduleEvent request
	GetScheduleEvent(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetScheduleEvent request with any body
	SetScheduleEventWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetScheduleEvent(ctx context.Context, id int, body SetScheduleEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStatus request
	GetStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTeslaVehicles request
	GetTeslaVehicles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StatusUpdates request
	StatusUpdates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) ClearManualOverrideWithResponse

func (c *ClientWithResponses) ClearManualOverrideWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ClearManualOverrideResponse, error)

ClearManualOverrideWithResponse request returning *ClearManualOverrideResponse

func (*ClientWithResponses) GetClaimWithResponse

func (c *ClientWithResponses) GetClaimWithResponse(ctx context.Context, client int, reqEditors ...RequestEditorFn) (*GetClaimResponse, error)

GetClaimWithResponse request returning *GetClaimResponse

func (*ClientWithResponses) GetConfigWithResponse

func (c *ClientWithResponses) GetConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigResponse, error)

GetConfigWithResponse request returning *GetConfigResponse

func (*ClientWithResponses) GetEventBlockInfoWithResponse

func (c *ClientWithResponses) GetEventBlockInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetEventBlockInfoResponse, error)

GetEventBlockInfoWithResponse request returning *GetEventBlockInfoResponse

func (*ClientWithResponses) GetEventBlockWithResponse

func (c *ClientWithResponses) GetEventBlockWithResponse(ctx context.Context, index int, reqEditors ...RequestEditorFn) (*GetEventBlockResponse, error)

GetEventBlockWithResponse request returning *GetEventBlockResponse

func (*ClientWithResponses) GetManualOverrideWithResponse

func (c *ClientWithResponses) GetManualOverrideWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetManualOverrideResponse, error)

GetManualOverrideWithResponse request returning *GetManualOverrideResponse

func (*ClientWithResponses) GetScheduleEventWithResponse

func (c *ClientWithResponses) GetScheduleEventWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetScheduleEventResponse, error)

GetScheduleEventWithResponse request returning *GetScheduleEventResponse

func (*ClientWithResponses) GetStatusWithResponse

func (c *ClientWithResponses) GetStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusResponse, error)

GetStatusWithResponse request returning *GetStatusResponse

func (*ClientWithResponses) GetTeslaVehiclesWithResponse

func (c *ClientWithResponses) GetTeslaVehiclesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTeslaVehiclesResponse, error)

GetTeslaVehiclesWithResponse request returning *GetTeslaVehiclesResponse

func (*ClientWithResponses) ListClaimsWithResponse

func (c *ClientWithResponses) ListClaimsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListClaimsResponse, error)

ListClaimsWithResponse request returning *ListClaimsResponse

func (*ClientWithResponses) ListScheduleWithResponse

func (c *ClientWithResponses) ListScheduleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListScheduleResponse, error)

ListScheduleWithResponse request returning *ListScheduleResponse

func (*ClientWithResponses) ReleaseClaimWithResponse

func (c *ClientWithResponses) ReleaseClaimWithResponse(ctx context.Context, client int, reqEditors ...RequestEditorFn) (*ReleaseClaimResponse, error)

ReleaseClaimWithResponse request returning *ReleaseClaimResponse

func (*ClientWithResponses) RemoveScheduleEventWithResponse

func (c *ClientWithResponses) RemoveScheduleEventWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*RemoveScheduleEventResponse, error)

RemoveScheduleEventWithResponse request returning *RemoveScheduleEventResponse

func (*ClientWithResponses) SetClaimWithBodyWithResponse

func (c *ClientWithResponses) SetClaimWithBodyWithResponse(ctx context.Context, client int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetClaimResponse, error)

SetClaimWithBodyWithResponse request with arbitrary body returning *SetClaimResponse

func (*ClientWithResponses) SetClaimWithResponse

func (c *ClientWithResponses) SetClaimWithResponse(ctx context.Context, client int, body SetClaimJSONRequestBody, reqEditors ...RequestEditorFn) (*SetClaimResponse, error)

func (*ClientWithResponses) SetManualOverrideWithBodyWithResponse

func (c *ClientWithResponses) SetManualOverrideWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetManualOverrideResponse, error)

SetManualOverrideWithBodyWithResponse request with arbitrary body returning *SetManualOverrideResponse

func (*ClientWithResponses) SetManualOverrideWithResponse

func (c *ClientWithResponses) SetManualOverrideWithResponse(ctx context.Context, body SetManualOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*SetManualOverrideResponse, error)

func (*ClientWithResponses) SetScheduleEventWithBodyWithResponse

func (c *ClientWithResponses) SetScheduleEventWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetScheduleEventResponse, error)

SetScheduleEventWithBodyWithResponse request with arbitrary body returning *SetScheduleEventResponse

func (*ClientWithResponses) SetScheduleEventWithResponse

func (c *ClientWithResponses) SetScheduleEventWithResponse(ctx context.Context, id int, body SetScheduleEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SetScheduleEventResponse, error)

func (*ClientWithResponses) StatusUpdatesWithResponse

func (c *ClientWithResponses) StatusUpdatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StatusUpdatesResponse, error)

StatusUpdatesWithResponse request returning *StatusUpdatesResponse

func (*ClientWithResponses) ToggleManualOverrideWithResponse

func (c *ClientWithResponses) ToggleManualOverrideWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ToggleManualOverrideResponse, error)

ToggleManualOverrideWithResponse request returning *ToggleManualOverrideResponse

func (*ClientWithResponses) UpdateConfigWithBodyWithResponse

func (c *ClientWithResponses) UpdateConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConfigResponse, error)

UpdateConfigWithBodyWithResponse request with arbitrary body returning *UpdateConfigResponse

func (*ClientWithResponses) UpdateConfigWithResponse

func (c *ClientWithResponses) UpdateConfigWithResponse(ctx context.Context, body UpdateConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConfigResponse, error)

func (*ClientWithResponses) UpdateScheduleWithBodyWithResponse

func (c *ClientWithResponses) UpdateScheduleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateScheduleResponse, error)

UpdateScheduleWithBodyWithResponse request with arbitrary body returning *UpdateScheduleResponse

func (*ClientWithResponses) UpdateScheduleWithResponse

func (c *ClientWithResponses) UpdateScheduleWithResponse(ctx context.Context, body UpdateScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateScheduleResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListClaims request
	ListClaimsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListClaimsResponse, error)

	// ReleaseClaim request
	ReleaseClaimWithResponse(ctx context.Context, client int, reqEditors ...RequestEditorFn) (*ReleaseClaimResponse, error)

	// GetClaim request
	GetClaimWithResponse(ctx context.Context, client int, reqEditors ...RequestEditorFn) (*GetClaimResponse, error)

	// SetClaim request with any body
	SetClaimWithBodyWithResponse(ctx context.Context, client int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetClaimResponse, error)

	SetClaimWithResponse(ctx context.Context, client int, body SetClaimJSONRequestBody, reqEditors ...RequestEditorFn) (*SetClaimResponse, error)

	// GetConfig request
	GetConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigResponse, error)

	// UpdateConfig request with any body
	UpdateConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConfigResponse, error)

	UpdateConfigWithResponse(ctx context.Context, body UpdateConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConfigResponse, error)

	// GetEventBlockInfo request
	GetEventBlockInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetEventBlockInfoResponse, error)

	// GetEventBlock request
	GetEventBlockWithResponse(ctx context.Context, index int, reqEditors ...RequestEditorFn) (*GetEventBlockResponse, error)

	// ClearManualOverride request
	ClearManualOverrideWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ClearManualOverrideResponse, error)

	// GetManualOverride request
	GetManualOverrideWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetManualOverrideResponse, error)

	// ToggleManualOverride request
	ToggleManualOverrideWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ToggleManualOverrideResponse, error)

	// SetManualOverride request with any body
	SetManualOverrideWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetManualOverrideResponse, error)

	SetManualOverrideWithResponse(ctx context.Context, body SetManualOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*SetManualOverrideResponse, error)

	// ListSchedule request
	ListScheduleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListScheduleResponse, error)

	// UpdateSchedule request with any body
	UpdateScheduleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateScheduleResponse, error)

	UpdateScheduleWithResponse(ctx context.Context, body UpdateScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateScheduleResponse, error)

	// RemoveScheduleEvent request
	RemoveScheduleEventWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*RemoveScheduleEventResponse, error)

	// GetScheduleEvent request
	GetScheduleEventWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetScheduleEventResponse, error)

	// SetScheduleEvent request with any body
	SetScheduleEventWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetScheduleEventResponse, error)

	SetScheduleEventWithResponse(ctx context.Context, id int, body SetScheduleEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SetScheduleEventResponse, error)

	// GetStatus request
	GetStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusResponse, error)

	// GetTeslaVehicles request
	GetTeslaVehiclesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTeslaVehiclesResponse, error)

	// StatusUpdates request
	StatusUpdatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StatusUpdatesResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type GetClaimResponse

type GetClaimResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// `true` if the manual override is auto-released when the vehicle is
		// disconnected, `false` if manual override will persist after vehicle
		// disconnection.
		AutoRelease *bool `json:"auto_release,omitempty"`

		// Specify the active charge current in Amps
		ChargeCurrent *int `json:"charge_current,omitempty"`

		// Stop the charge after `energy_limit` Wh of energy have been transfered.
		//
		// > Note:  Not currently implemented
		EnergyLimit *int32 `json:"energy_limit,omitempty"`

		// Dynamically alter the max current while still allowing other claims to very the current via `charge_current` that can not exceede this value. This is primerialy designed for load sharing situations while still allowing things like PV divert to work so the charge current is the minimum of `charge_current` <= `max_current` <= configured soft limit <= hard coded limit
		MaxCurrent *int `json:"max_current,omitempty"`

		// Either enable charging (`active`) or block charging (`disabled`)
		State *string `json:"state,omitempty"`

		// Stop the charge after the duration of the charging session has exceeded `time_limit` seconds
		//
		// > Note:  Not currently implemented
		TimeLimit *int32 `json:"time_limit,omitempty"`
	}
	JSON404 *Message
}

func ParseGetClaimResponse

func ParseGetClaimResponse(rsp *http.Response) (*GetClaimResponse, error)

ParseGetClaimResponse parses an HTTP response from a GetClaimWithResponse call

func (GetClaimResponse) Status

func (r GetClaimResponse) Status() string

Status returns HTTPResponse.Status

func (GetClaimResponse) StatusCode

func (r GetClaimResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetConfigResponse

type GetConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Buildenv                    *string   `json:"buildenv,omitempty"`
		ChargeMode                  *string   `json:"charge_mode,omitempty"`
		DiodeCheck                  *bool     `json:"diode_check,omitempty"`
		DivertPVRatio               *float32  `json:"divert_PV_ratio,omitempty"`
		DivertAttackSmoothingFactor *float32  `json:"divert_attack_smoothing_factor,omitempty"`
		DivertDecaySmoothingFactor  *float32  `json:"divert_decay_smoothing_factor,omitempty"`
		DivertEnabled               *bool     `json:"divert_enabled,omitempty"`
		DivertMinChargeTime         *float32  `json:"divert_min_charge_time,omitempty"`
		EmoncmsApikey               *string   `json:"emoncms_apikey,omitempty"`
		EmoncmsEnabled              *bool     `json:"emoncms_enabled,omitempty"`
		EmoncmsFingerprint          *string   `json:"emoncms_fingerprint,omitempty"`
		EmoncmsNode                 *string   `json:"emoncms_node,omitempty"`
		EmoncmsServer               *string   `json:"emoncms_server,omitempty"`
		Espflash                    *float32  `json:"espflash,omitempty"`
		Espinfo                     *string   `json:"espinfo,omitempty"`
		Firmware                    *string   `json:"firmware,omitempty"`
		Flags                       *float32  `json:"flags,omitempty"`
		GfciCheck                   *bool     `json:"gfci_check,omitempty"`
		GroundCheck                 *bool     `json:"ground_check,omitempty"`
		Hostname                    *string   `json:"hostname,omitempty"`
		HttpSupportedProtocols      *[]string `json:"http_supported_protocols,omitempty"`
		LedBrightness               *float32  `json:"led_brightness,omitempty"`
		MaxCurrentHard              *int      `json:"max_current_hard,omitempty"`
		MaxCurrentSoft              *int      `json:"max_current_soft,omitempty"`
		MinCurrentHard              *int      `json:"min_current_hard,omitempty"`
		MqttAnnounceTopic           *string   `json:"mqtt_announce_topic,omitempty"`
		MqttEnabled                 *bool     `json:"mqtt_enabled,omitempty"`
		MqttGridIe                  *string   `json:"mqtt_grid_ie,omitempty"`
		MqttPass                    *string   `json:"mqtt_pass,omitempty"`
		MqttPort                    *int      `json:"mqtt_port,omitempty"`
		MqttProtocol                *string   `json:"mqtt_protocol,omitempty"`
		MqttRejectUnauthorized      *bool     `json:"mqtt_reject_unauthorized,omitempty"`
		MqttServer                  *string   `json:"mqtt_server,omitempty"`
		MqttSolar                   *string   `json:"mqtt_solar,omitempty"`
		MqttSupportedProtocols      *[]string `json:"mqtt_supported_protocols,omitempty"`
		MqttTopic                   *string   `json:"mqtt_topic,omitempty"`
		MqttUser                    *string   `json:"mqtt_user,omitempty"`
		MqttVehicleEta              *string   `json:"mqtt_vehicle_eta,omitempty"`
		MqttVehicleRange            *string   `json:"mqtt_vehicle_range,omitempty"`
		MqttVehicleRangeMiles       *bool     `json:"mqtt_vehicle_range_miles,omitempty"`
		MqttVehicleSoc              *string   `json:"mqtt_vehicle_soc,omitempty"`
		MqttVrms                    *string   `json:"mqtt_vrms,omitempty"`
		OcppChargeBoxId             *string   `json:"ocpp_chargeBoxId,omitempty"`
		OcppEnabled                 *bool     `json:"ocpp_enabled,omitempty"`
		OcppEnergizePlug            *bool     `json:"ocpp_energize_plug,omitempty"`
		OcppIdTag                   *string   `json:"ocpp_idTag,omitempty"`
		OcppServer                  *string   `json:"ocpp_server,omitempty"`
		OcppSuspendEvse             *bool     `json:"ocpp_suspend_evse,omitempty"`
		Offset                      *int      `json:"offset,omitempty"`
		Ohm                         *string   `json:"ohm,omitempty"`
		OhmEnabled                  *bool     `json:"ohm_enabled,omitempty"`
		Pass                        *string   `json:"pass,omitempty"`
		PauseUsesDisabled           *bool     `json:"pause_uses_disabled,omitempty"`
		Protocol                    *string   `json:"protocol,omitempty"`
		RelayCheck                  *bool     `json:"relay_check,omitempty"`
		Scale                       *int      `json:"scale,omitempty"`
		Service                     *int      `json:"service,omitempty"`
		SntpEnabled                 *bool     `json:"sntp_enabled,omitempty"`
		SntpHostname                *string   `json:"sntp_hostname,omitempty"`
		Ssid                        *string   `json:"ssid,omitempty"`
		TempCheck                   *bool     `json:"temp_check,omitempty"`
		TeslaAccessToken            *string   `json:"tesla_access_token,omitempty"`
		TeslaCreatedAt              *float32  `json:"tesla_created_at,omitempty"`
		TeslaEnabled                *bool     `json:"tesla_enabled,omitempty"`
		TeslaExpiresIn              *float32  `json:"tesla_expires_in,omitempty"`
		TeslaRefreshToken           *string   `json:"tesla_refresh_token,omitempty"`
		TeslaVehicleId              *string   `json:"tesla_vehicle_id,omitempty"`
		TimeZone                    *string   `json:"time_zone,omitempty"`
		TxStartPoint                *string   `json:"tx_start_point,omitempty"`
		VentCheck                   *bool     `json:"vent_check,omitempty"`
		Version                     *string   `json:"version,omitempty"`
		WwwPassword                 *string   `json:"www_password,omitempty"`
		WwwUsername                 *string   `json:"www_username,omitempty"`
	}
}

func ParseGetConfigResponse

func ParseGetConfigResponse(rsp *http.Response) (*GetConfigResponse, error)

ParseGetConfigResponse parses an HTTP response from a GetConfigWithResponse call

func (GetConfigResponse) Status

func (r GetConfigResponse) Status() string

Status returns HTTPResponse.Status

func (GetConfigResponse) StatusCode

func (r GetConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetEventBlockInfoResponse

type GetEventBlockInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Max *int `json:"max,omitempty"`
		Min *int `json:"min,omitempty"`
	}
}

func ParseGetEventBlockInfoResponse

func ParseGetEventBlockInfoResponse(rsp *http.Response) (*GetEventBlockInfoResponse, error)

ParseGetEventBlockInfoResponse parses an HTTP response from a GetEventBlockInfoWithResponse call

func (GetEventBlockInfoResponse) Status

func (r GetEventBlockInfoResponse) Status() string

Status returns HTTPResponse.Status

func (GetEventBlockInfoResponse) StatusCode

func (r GetEventBlockInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetEventBlockResponse

type GetEventBlockResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]LogEvent
	JSON404      *Message
}

func ParseGetEventBlockResponse

func ParseGetEventBlockResponse(rsp *http.Response) (*GetEventBlockResponse, error)

ParseGetEventBlockResponse parses an HTTP response from a GetEventBlockWithResponse call

func (GetEventBlockResponse) Status

func (r GetEventBlockResponse) Status() string

Status returns HTTPResponse.Status

func (GetEventBlockResponse) StatusCode

func (r GetEventBlockResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetManualOverrideResponse

type GetManualOverrideResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// `true` if the manual override is auto-released when the vehicle is
		// disconnected, `false` if manual override will persist after vehicle
		// disconnection.
		AutoRelease *bool `json:"auto_release,omitempty"`

		// Specify the active charge current in Amps
		ChargeCurrent *int `json:"charge_current,omitempty"`

		// Stop the charge after `energy_limit` Wh of energy have been transfered.
		//
		// > Note:  Not currently implemented
		EnergyLimit *int32 `json:"energy_limit,omitempty"`

		// Dynamically alter the max current while still allowing other claims to very the current via `charge_current` that can not exceede this value. This is primerialy designed for load sharing situations while still allowing things like PV divert to work so the charge current is the minimum of `charge_current` <= `max_current` <= configured soft limit <= hard coded limit
		MaxCurrent *int `json:"max_current,omitempty"`

		// Either enable charging (`active`) or block charging (`disabled`)
		State *string `json:"state,omitempty"`

		// Stop the charge after the duration of the charging session has exceeded `time_limit` seconds
		//
		// > Note:  Not currently implemented
		TimeLimit *int32 `json:"time_limit,omitempty"`
	}
	JSON404 *Message
}

func ParseGetManualOverrideResponse

func ParseGetManualOverrideResponse(rsp *http.Response) (*GetManualOverrideResponse, error)

ParseGetManualOverrideResponse parses an HTTP response from a GetManualOverrideWithResponse call

func (GetManualOverrideResponse) Status

func (r GetManualOverrideResponse) Status() string

Status returns HTTPResponse.Status

func (GetManualOverrideResponse) StatusCode

func (r GetManualOverrideResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetScheduleEventResponse

type GetScheduleEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *string
}

func ParseGetScheduleEventResponse

func ParseGetScheduleEventResponse(rsp *http.Response) (*GetScheduleEventResponse, error)

ParseGetScheduleEventResponse parses an HTTP response from a GetScheduleEventWithResponse call

func (GetScheduleEventResponse) Status

func (r GetScheduleEventResponse) Status() string

Status returns HTTPResponse.Status

func (GetScheduleEventResponse) StatusCode

func (r GetScheduleEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStatusResponse

type GetStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// the value of the charge current in mA
		Amp *float32 `json:"amp,omitempty"`

		// The computed avalible current for divert
		AvailableCurrent *int `json:"available_current,omitempty"`

		// The divert charge rate
		ChargeRate *int `json:"charge_rate,omitempty"`

		// The LCD colour
		Colour *int `json:"colour,omitempty"`

		// Number of RAPI messages sent
		CommSent *int `json:"comm_sent,omitempty"`

		// Number of successful RAPI messages
		CommSuccess *int `json:"comm_success,omitempty"`

		// `true` if divert is active, `false` if not
		DivertActive *bool `json:"divert_active,omitempty"`

		// The time since the last update of the divert feed
		DivertUpdate *float32 `json:"divert_update,omitempty"`

		// The PV divert mode, `1` normal, `2` Eco
		Divertmode *int `json:"divertmode,omitempty"`

		// The duration of the current charge session, in seconds
		Elapsed *float32 `json:"elapsed,omitempty"`

		// `1`, if connected to an EmonCMS server, `0` not connected
		EmoncmsConnected *int `json:"emoncms_connected,omitempty"`

		// Last response message from the EmonCMS server
		EmoncmsMessage *string `json:"emoncms_message,omitempty"`

		// `1`, Wired ethernet is connected, `0` no wired ethernet connection
		EthConnected *int `json:"eth_connected,omitempty"`

		// `1`, if the WiFi module has negociated a connection to the OpenEVSE module, `0` not connected
		EvseConnected *int `json:"evse_connected,omitempty"`

		// Number of bytes free in the ESP memory heap
		FreeHeap *int `json:"free_heap,omitempty"`

		// Number of GFCI errors
		Gfcicount *int `json:"gfcicount,omitempty"`

		// The latest grid +I/-E feed value received
		GridIe *int `json:"grid_ie,omitempty"`

		// The current IP address of the WiFi module
		Ipaddress *string `json:"ipaddress,omitempty"`

		// `1`, if the manual override is active, `0` default behaviour
		ManualOverride *int `json:"manual_override,omitempty"`

		// The current mode of the EVSE
		Mode *string `json:"mode,omitempty"`

		// `1`, if connected to an EmonCMS server, `0` not connected
		MqttConnected *int `json:"mqtt_connected,omitempty"`

		// `1`, network is connected, either wired or WiFi, `0` no network connection
		NetConnected *int `json:"net_connected,omitempty"`

		// Number of no ground errors
		Nogndcount *int `json:"nogndcount,omitempty"`

		// The current timezone
		Offset *string `json:"offset,omitempty"`

		// Last status message from the OhmHour connection
		OhmHour *string `json:"ohm_hour,omitempty"`

		// `1`, if there is an OTA update active, `0` if normal operation
		OtaUpdate *int `json:"ota_update,omitempty"`

		// The number of posts sent to the EmonCMS server
		PacketsSent *int `json:"packets_sent,omitempty"`

		// The number of successful posts to the EmonCMS server
		PacketsSuccess *int `json:"packets_success,omitempty"`

		// the pilot value, in amps
		Pilot *int `json:"pilot,omitempty"`

		// `1`, if RAPI messages have successfully been sent to the OpenEVSE module, `0` not connected
		RapiConnected *int `json:"rapi_connected,omitempty"`

		// The current service level
		ServiceLevel *int `json:"service_level,omitempty"`

		// The computed smoothed available current for divert
		SmoothedAvailableCurrent *int `json:"smoothed_available_current,omitempty"`

		// The latest solar feed value received
		Solar *int `json:"solar,omitempty"`

		// WiFi RSSI signal strength
		Srssi *int `json:"srssi,omitempty"`

		// The EVSE state
		State *int `json:"state,omitempty"`

		// The EVSE status
		Status *string `json:"status,omitempty"`

		// Number of stuck relay errors
		Stuckcount *int `json:"stuckcount,omitempty"`

		// the derived temperature, in 1/10th °C
		Temp *float32 `json:"temp,omitempty"`

		// The current time on the WiFi module
		Time *string `json:"time,omitempty"`

		// `1`, if a vehicle id connected to the EVSE, `0` not connected
		Vehicle *int `json:"vehicle,omitempty"`

		// the charge voltage, read form the EVSE if supported, or supplied via MQTT or other external source
		Voltage *float32 `json:"voltage,omitempty"`

		// The total amount of energy transfered, in W/hour
		Watthour *float32 `json:"watthour,omitempty"`

		// The amount of energy transfered in this charge session, in W/sec
		Wattsec *float32 `json:"wattsec,omitempty"`

		// `1`, WiFi is connected, `0` no WiFi connection
		WifiClientConnected *int `json:"wifi_client_connected,omitempty"`
	}
}

func ParseGetStatusResponse

func ParseGetStatusResponse(rsp *http.Response) (*GetStatusResponse, error)

ParseGetStatusResponse parses an HTTP response from a GetStatusWithResponse call

func (GetStatusResponse) Status

func (r GetStatusResponse) Status() string

Status returns HTTPResponse.Status

func (GetStatusResponse) StatusCode

func (r GetStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTeslaVehiclesResponse

type GetTeslaVehiclesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Count    float32 `json:"count"`
		Vehicles []struct {
			Id   string `json:"id"`
			Name string `json:"name"`
		} `json:"vehicles"`
	}
}

func ParseGetTeslaVehiclesResponse

func ParseGetTeslaVehiclesResponse(rsp *http.Response) (*GetTeslaVehiclesResponse, error)

ParseGetTeslaVehiclesResponse parses an HTTP response from a GetTeslaVehiclesWithResponse call

func (GetTeslaVehiclesResponse) Status

func (r GetTeslaVehiclesResponse) Status() string

Status returns HTTPResponse.Status

func (GetTeslaVehiclesResponse) StatusCode

func (r GetTeslaVehiclesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListClaimsResponse

type ListClaimsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]struct {
		// `true` if the manual override is auto-released when the vehicle is
		// disconnected, `false` if manual override will persist after vehicle
		// disconnection.
		AutoRelease *bool `json:"auto_release,omitempty"`

		// Specify the active charge current in Amps
		ChargeCurrent *int `json:"charge_current,omitempty"`

		// The client ID, defined by [OpenEVSE](src/evse_man.h#L25)
		Client *int `json:"client,omitempty"`

		// Stop the charge after `energy_limit` Wh of energy have been transfered.
		//
		// > Note:  Not currently implemented
		EnergyLimit *int32 `json:"energy_limit,omitempty"`

		// Dynamically alter the max current while still allowing other claims to very the current via `charge_current` that can not exceede this value. This is primerialy designed for load sharing situations while still allowing things like PV divert to work so the charge current is the minimum of `charge_current` <= `max_current` <= configured soft limit <= hard coded limit
		MaxCurrent *int `json:"max_current,omitempty"`

		// The priority of the claim, the higher the number the higher the priority
		Priority *int `json:"priority,omitempty"`

		// Either enable charging (`active`) or block charging (`disabled`)
		State *string `json:"state,omitempty"`

		// Stop the charge after the duration of the charging session has exceeded `time_limit` seconds
		//
		// > Note:  Not currently implemented
		TimeLimit *int32 `json:"time_limit,omitempty"`
	}
}

func ParseListClaimsResponse

func ParseListClaimsResponse(rsp *http.Response) (*ListClaimsResponse, error)

ParseListClaimsResponse parses an HTTP response from a ListClaimsWithResponse call

func (ListClaimsResponse) Status

func (r ListClaimsResponse) Status() string

Status returns HTTPResponse.Status

func (ListClaimsResponse) StatusCode

func (r ListClaimsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListScheduleResponse

type ListScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ScheduleEvent
	JSON400      *Message
}

func ParseListScheduleResponse

func ParseListScheduleResponse(rsp *http.Response) (*ListScheduleResponse, error)

ParseListScheduleResponse parses an HTTP response from a ListScheduleWithResponse call

func (ListScheduleResponse) Status

func (r ListScheduleResponse) Status() string

Status returns HTTPResponse.Status

func (ListScheduleResponse) StatusCode

func (r ListScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LogEvent

type LogEvent struct {
	DivertMode *int32   `json:"divertMode,omitempty"`
	Elapsed    *int32   `json:"elapsed,omitempty"`
	Energy     *float64 `json:"energy,omitempty"`
	EvseFlags  *int32   `json:"evseFlags,omitempty"`
	EvseState  *int     `json:"evseState,omitempty"`

	// Either enable charging (`active`) or block charging (`disabled`)
	ManagerState   *string       `json:"managerState,omitempty"`
	Pilot          *int32        `json:"pilot,omitempty"`
	Temperature    *float64      `json:"temperature,omitempty"`
	TempuratureMax *float64      `json:"tempuratureMax,omitempty"`
	Time           *time.Time    `json:"time,omitempty"`
	Type           *LogEventType `json:"type,omitempty"`
}

LogEvent defines model for LogEvent.

type LogEventType

type LogEventType string

LogEventType defines model for LogEvent.Type.

const (
	Information  LogEventType = "information"
	Notification LogEventType = "notification"
	Warning      LogEventType = "warning"
)

Defines values for LogEventType.

type Message

type Message struct {
	// The message
	Msg *string `json:"msg,omitempty"`
}

Message defines model for Message.

type NotFound

type NotFound = Message

NotFound defines model for NotFound.

type RAPIResponse

type RAPIResponse struct {
	Cmd string `json:"cmd"`
	Ret string `json:"ret"`
}

type ReleaseClaimResponse

type ReleaseClaimResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Message
	JSON404      *Message
}

func ParseReleaseClaimResponse

func ParseReleaseClaimResponse(rsp *http.Response) (*ReleaseClaimResponse, error)

ParseReleaseClaimResponse parses an HTTP response from a ReleaseClaimWithResponse call

func (ReleaseClaimResponse) Status

func (r ReleaseClaimResponse) Status() string

Status returns HTTPResponse.Status

func (ReleaseClaimResponse) StatusCode

func (r ReleaseClaimResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveScheduleEventResponse

type RemoveScheduleEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Message
}

func ParseRemoveScheduleEventResponse

func ParseRemoveScheduleEventResponse(rsp *http.Response) (*RemoveScheduleEventResponse, error)

ParseRemoveScheduleEventResponse parses an HTTP response from a RemoveScheduleEventWithResponse call

func (RemoveScheduleEventResponse) Status

Status returns HTTPResponse.Status

func (RemoveScheduleEventResponse) StatusCode

func (r RemoveScheduleEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ScheduleEvent

type ScheduleEvent struct {
	Days []ScheduleEventDays `json:"days"`
	Id   *int                `json:"id,omitempty"`

	// Either enable charging (`active`) or block charging (`disabled`)
	State string `json:"state"`
	Time  string `json:"time"`
}

ScheduleEvent defines model for ScheduleEvent.

type ScheduleEventDays

type ScheduleEventDays string

ScheduleEventDays defines model for ScheduleEvent.Days.

const (
	Friday    ScheduleEventDays = "friday"
	Monday    ScheduleEventDays = "monday"
	Saturday  ScheduleEventDays = "saturday"
	Sunday    ScheduleEventDays = "sunday"
	Thursday  ScheduleEventDays = "thursday"
	Tuesday   ScheduleEventDays = "tuesday"
	Wednesday ScheduleEventDays = "wednesday"
)

Defines values for ScheduleEventDays.

type SetClaimJSONBody

type SetClaimJSONBody struct {
	// `true` if the manual override is auto-released when the vehicle is
	// disconnected, `false` if manual override will persist after vehicle
	// disconnection.
	AutoRelease *bool `json:"auto_release,omitempty"`

	// Specify the active charge current in Amps
	ChargeCurrent *int `json:"charge_current,omitempty"`

	// Stop the charge after `energy_limit` Wh of energy have been transfered.
	//
	// > Note:  Not currently implemented
	EnergyLimit *int32 `json:"energy_limit,omitempty"`

	// Dynamically alter the max current while still allowing other claims to very the current via `charge_current` that can not exceede this value. This is primerialy designed for load sharing situations while still allowing things like PV divert to work so the charge current is the minimum of `charge_current` <= `max_current` <= configured soft limit <= hard coded limit
	MaxCurrent *int `json:"max_current,omitempty"`

	// Either enable charging (`active`) or block charging (`disabled`)
	State *string `json:"state,omitempty"`

	// Stop the charge after the duration of the charging session has exceeded `time_limit` seconds
	//
	// > Note:  Not currently implemented
	TimeLimit *int32 `json:"time_limit,omitempty"`
}

SetClaimJSONBody defines parameters for SetClaim.

type SetClaimJSONRequestBody

type SetClaimJSONRequestBody SetClaimJSONBody

SetClaimJSONRequestBody defines body for SetClaim for application/json ContentType.

type SetClaimResponse

type SetClaimResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Message
	JSON400      *Message
}

func ParseSetClaimResponse

func ParseSetClaimResponse(rsp *http.Response) (*SetClaimResponse, error)

ParseSetClaimResponse parses an HTTP response from a SetClaimWithResponse call

func (SetClaimResponse) Status

func (r SetClaimResponse) Status() string

Status returns HTTPResponse.Status

func (SetClaimResponse) StatusCode

func (r SetClaimResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetManualOverrideJSONBody

type SetManualOverrideJSONBody struct {
	// `true` if the manual override is auto-released when the vehicle is
	// disconnected, `false` if manual override will persist after vehicle
	// disconnection.
	AutoRelease *bool `json:"auto_release,omitempty"`

	// Specify the active charge current in Amps
	ChargeCurrent *int `json:"charge_current,omitempty"`

	// Stop the charge after `energy_limit` Wh of energy have been transfered.
	//
	// > Note:  Not currently implemented
	EnergyLimit *int32 `json:"energy_limit,omitempty"`

	// Dynamically alter the max current while still allowing other claims to very the current via `charge_current` that can not exceede this value. This is primerialy designed for load sharing situations while still allowing things like PV divert to work so the charge current is the minimum of `charge_current` <= `max_current` <= configured soft limit <= hard coded limit
	MaxCurrent *int `json:"max_current,omitempty"`

	// Either enable charging (`active`) or block charging (`disabled`)
	State *string `json:"state,omitempty"`

	// Stop the charge after the duration of the charging session has exceeded `time_limit` seconds
	//
	// > Note:  Not currently implemented
	TimeLimit *int32 `json:"time_limit,omitempty"`
}

SetManualOverrideJSONBody defines parameters for SetManualOverride.

type SetManualOverrideJSONRequestBody

type SetManualOverrideJSONRequestBody SetManualOverrideJSONBody

SetManualOverrideJSONRequestBody defines body for SetManualOverride for application/json ContentType.

type SetManualOverrideResponse

type SetManualOverrideResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Message
}

func ParseSetManualOverrideResponse

func ParseSetManualOverrideResponse(rsp *http.Response) (*SetManualOverrideResponse, error)

ParseSetManualOverrideResponse parses an HTTP response from a SetManualOverrideWithResponse call

func (SetManualOverrideResponse) Status

func (r SetManualOverrideResponse) Status() string

Status returns HTTPResponse.Status

func (SetManualOverrideResponse) StatusCode

func (r SetManualOverrideResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetScheduleEventJSONBody

type SetScheduleEventJSONBody = string

SetScheduleEventJSONBody defines parameters for SetScheduleEvent.

type SetScheduleEventJSONRequestBody

type SetScheduleEventJSONRequestBody = SetScheduleEventJSONBody

SetScheduleEventJSONRequestBody defines body for SetScheduleEvent for application/json ContentType.

type SetScheduleEventResponse

type SetScheduleEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Message
}

func ParseSetScheduleEventResponse

func ParseSetScheduleEventResponse(rsp *http.Response) (*SetScheduleEventResponse, error)

ParseSetScheduleEventResponse parses an HTTP response from a SetScheduleEventWithResponse call

func (SetScheduleEventResponse) Status

func (r SetScheduleEventResponse) Status() string

Status returns HTTPResponse.Status

func (SetScheduleEventResponse) StatusCode

func (r SetScheduleEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StatusUpdatesResponse

type StatusUpdatesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// the value of the charge current in mA
		Amp *float32 `json:"amp,omitempty"`

		// The computed avalible current for divert
		AvailableCurrent *int `json:"available_current,omitempty"`

		// The divert charge rate
		ChargeRate *int `json:"charge_rate,omitempty"`

		// The LCD colour
		Colour *int `json:"colour,omitempty"`

		// Number of RAPI messages sent
		CommSent *int `json:"comm_sent,omitempty"`

		// Number of successful RAPI messages
		CommSuccess *int `json:"comm_success,omitempty"`

		// `true` if divert is active, `false` if not
		DivertActive *bool `json:"divert_active,omitempty"`

		// The time since the last update of the divert feed
		DivertUpdate *float32 `json:"divert_update,omitempty"`

		// The PV divert mode, `1` normal, `2` Eco
		Divertmode *int `json:"divertmode,omitempty"`

		// The duration of the current charge session, in seconds
		Elapsed *float32 `json:"elapsed,omitempty"`

		// `1`, if connected to an EmonCMS server, `0` not connected
		EmoncmsConnected *int `json:"emoncms_connected,omitempty"`

		// Last response message from the EmonCMS server
		EmoncmsMessage *string `json:"emoncms_message,omitempty"`

		// `1`, Wired ethernet is connected, `0` no wired ethernet connection
		EthConnected *int `json:"eth_connected,omitempty"`

		// `1`, if the WiFi module has negociated a connection to the OpenEVSE module, `0` not connected
		EvseConnected *int `json:"evse_connected,omitempty"`

		// Number of bytes free in the ESP memory heap
		FreeHeap *int `json:"free_heap,omitempty"`

		// Number of GFCI errors
		Gfcicount *int `json:"gfcicount,omitempty"`

		// The latest grid +I/-E feed value received
		GridIe *int `json:"grid_ie,omitempty"`

		// The current IP address of the WiFi module
		Ipaddress *string `json:"ipaddress,omitempty"`

		// `1`, if the manual override is active, `0` default behaviour
		ManualOverride *int `json:"manual_override,omitempty"`

		// The current mode of the EVSE
		Mode *string `json:"mode,omitempty"`

		// `1`, if connected to an EmonCMS server, `0` not connected
		MqttConnected *int `json:"mqtt_connected,omitempty"`

		// `1`, network is connected, either wired or WiFi, `0` no network connection
		NetConnected *int `json:"net_connected,omitempty"`

		// Number of no ground errors
		Nogndcount *int `json:"nogndcount,omitempty"`

		// The current timezone
		Offset *string `json:"offset,omitempty"`

		// Last status message from the OhmHour connection
		OhmHour *string `json:"ohm_hour,omitempty"`

		// `1`, if there is an OTA update active, `0` if normal operation
		OtaUpdate *int `json:"ota_update,omitempty"`

		// The number of posts sent to the EmonCMS server
		PacketsSent *int `json:"packets_sent,omitempty"`

		// The number of successful posts to the EmonCMS server
		PacketsSuccess *int `json:"packets_success,omitempty"`

		// the pilot value, in amps
		Pilot *int `json:"pilot,omitempty"`

		// `1`, if RAPI messages have successfully been sent to the OpenEVSE module, `0` not connected
		RapiConnected *int `json:"rapi_connected,omitempty"`

		// The current service level
		ServiceLevel *int `json:"service_level,omitempty"`

		// The computed smoothed available current for divert
		SmoothedAvailableCurrent *int `json:"smoothed_available_current,omitempty"`

		// The latest solar feed value received
		Solar *int `json:"solar,omitempty"`

		// WiFi RSSI signal strength
		Srssi *int `json:"srssi,omitempty"`

		// The EVSE status
		State *int `json:"state,omitempty"`

		// Number of stuck relay errors
		Stuckcount *int `json:"stuckcount,omitempty"`

		// the derived temperature, in 1/10th °C
		Temp *float32 `json:"temp,omitempty"`

		// The current time on the WiFi module
		Time *string `json:"time,omitempty"`

		// `1`, if a vehicle id connected to the EVSE, `0` not connected
		Vehicle *int `json:"vehicle,omitempty"`

		// the charge voltage, read form the EVSE if supported, or supplied via MQTT or other external source
		Voltage *float32 `json:"voltage,omitempty"`

		// The total amount of energy transfered, in W/hour
		Watthour *float32 `json:"watthour,omitempty"`

		// The amount of energy transfered in this charge session, in W/sec
		Wattsec *float32 `json:"wattsec,omitempty"`

		// `1`, WiFi is connected, `0` no WiFi connection
		WifiClientConnected *int `json:"wifi_client_connected,omitempty"`
	}
}

func ParseStatusUpdatesResponse

func ParseStatusUpdatesResponse(rsp *http.Response) (*StatusUpdatesResponse, error)

ParseStatusUpdatesResponse parses an HTTP response from a StatusUpdatesWithResponse call

func (StatusUpdatesResponse) Status

func (r StatusUpdatesResponse) Status() string

Status returns HTTPResponse.Status

func (StatusUpdatesResponse) StatusCode

func (r StatusUpdatesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ToggleManualOverrideResponse

type ToggleManualOverrideResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseToggleManualOverrideResponse

func ParseToggleManualOverrideResponse(rsp *http.Response) (*ToggleManualOverrideResponse, error)

ParseToggleManualOverrideResponse parses an HTTP response from a ToggleManualOverrideWithResponse call

func (ToggleManualOverrideResponse) Status

Status returns HTTPResponse.Status

func (ToggleManualOverrideResponse) StatusCode

func (r ToggleManualOverrideResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateConfigJSONBody

type UpdateConfigJSONBody struct {
	Buildenv                    *string   `json:"buildenv,omitempty"`
	ChargeMode                  *string   `json:"charge_mode,omitempty"`
	DiodeCheck                  *bool     `json:"diode_check,omitempty"`
	DivertPVRatio               *float32  `json:"divert_PV_ratio,omitempty"`
	DivertAttackSmoothingFactor *float32  `json:"divert_attack_smoothing_factor,omitempty"`
	DivertDecaySmoothingFactor  *float32  `json:"divert_decay_smoothing_factor,omitempty"`
	DivertEnabled               *bool     `json:"divert_enabled,omitempty"`
	DivertMinChargeTime         *float32  `json:"divert_min_charge_time,omitempty"`
	EmoncmsApikey               *string   `json:"emoncms_apikey,omitempty"`
	EmoncmsEnabled              *bool     `json:"emoncms_enabled,omitempty"`
	EmoncmsFingerprint          *string   `json:"emoncms_fingerprint,omitempty"`
	EmoncmsNode                 *string   `json:"emoncms_node,omitempty"`
	EmoncmsServer               *string   `json:"emoncms_server,omitempty"`
	Espflash                    *float32  `json:"espflash,omitempty"`
	Espinfo                     *string   `json:"espinfo,omitempty"`
	Firmware                    *string   `json:"firmware,omitempty"`
	Flags                       *float32  `json:"flags,omitempty"`
	GfciCheck                   *bool     `json:"gfci_check,omitempty"`
	GroundCheck                 *bool     `json:"ground_check,omitempty"`
	Hostname                    *string   `json:"hostname,omitempty"`
	HttpSupportedProtocols      *[]string `json:"http_supported_protocols,omitempty"`
	LedBrightness               *float32  `json:"led_brightness,omitempty"`
	MaxCurrentHard              *int      `json:"max_current_hard,omitempty"`
	MaxCurrentSoft              *int      `json:"max_current_soft,omitempty"`
	MinCurrentHard              *int      `json:"min_current_hard,omitempty"`
	MqttAnnounceTopic           *string   `json:"mqtt_announce_topic,omitempty"`
	MqttEnabled                 *bool     `json:"mqtt_enabled,omitempty"`
	MqttGridIe                  *string   `json:"mqtt_grid_ie,omitempty"`
	MqttPass                    *string   `json:"mqtt_pass,omitempty"`
	MqttPort                    *int      `json:"mqtt_port,omitempty"`
	MqttProtocol                *string   `json:"mqtt_protocol,omitempty"`
	MqttRejectUnauthorized      *bool     `json:"mqtt_reject_unauthorized,omitempty"`
	MqttServer                  *string   `json:"mqtt_server,omitempty"`
	MqttSolar                   *string   `json:"mqtt_solar,omitempty"`
	MqttSupportedProtocols      *[]string `json:"mqtt_supported_protocols,omitempty"`
	MqttTopic                   *string   `json:"mqtt_topic,omitempty"`
	MqttUser                    *string   `json:"mqtt_user,omitempty"`
	MqttVehicleEta              *string   `json:"mqtt_vehicle_eta,omitempty"`
	MqttVehicleRange            *string   `json:"mqtt_vehicle_range,omitempty"`
	MqttVehicleRangeMiles       *bool     `json:"mqtt_vehicle_range_miles,omitempty"`
	MqttVehicleSoc              *string   `json:"mqtt_vehicle_soc,omitempty"`
	MqttVrms                    *string   `json:"mqtt_vrms,omitempty"`
	OcppChargeBoxId             *string   `json:"ocpp_chargeBoxId,omitempty"`
	OcppEnabled                 *bool     `json:"ocpp_enabled,omitempty"`
	OcppEnergizePlug            *bool     `json:"ocpp_energize_plug,omitempty"`
	OcppIdTag                   *string   `json:"ocpp_idTag,omitempty"`
	OcppServer                  *string   `json:"ocpp_server,omitempty"`
	OcppSuspendEvse             *bool     `json:"ocpp_suspend_evse,omitempty"`
	Offset                      *int      `json:"offset,omitempty"`
	Ohm                         *string   `json:"ohm,omitempty"`
	OhmEnabled                  *bool     `json:"ohm_enabled,omitempty"`
	Pass                        *string   `json:"pass,omitempty"`
	PauseUsesDisabled           *bool     `json:"pause_uses_disabled,omitempty"`
	Protocol                    *string   `json:"protocol,omitempty"`
	RelayCheck                  *bool     `json:"relay_check,omitempty"`
	Scale                       *int      `json:"scale,omitempty"`
	Service                     *int      `json:"service,omitempty"`
	SntpEnabled                 *bool     `json:"sntp_enabled,omitempty"`
	SntpHostname                *string   `json:"sntp_hostname,omitempty"`
	Ssid                        *string   `json:"ssid,omitempty"`
	TempCheck                   *bool     `json:"temp_check,omitempty"`
	TeslaAccessToken            *string   `json:"tesla_access_token,omitempty"`
	TeslaCreatedAt              *float32  `json:"tesla_created_at,omitempty"`
	TeslaEnabled                *bool     `json:"tesla_enabled,omitempty"`
	TeslaExpiresIn              *float32  `json:"tesla_expires_in,omitempty"`
	TeslaRefreshToken           *string   `json:"tesla_refresh_token,omitempty"`
	TeslaVehicleId              *string   `json:"tesla_vehicle_id,omitempty"`
	TimeZone                    *string   `json:"time_zone,omitempty"`
	TxStartPoint                *string   `json:"tx_start_point,omitempty"`
	VentCheck                   *bool     `json:"vent_check,omitempty"`
	Version                     *string   `json:"version,omitempty"`
	WwwPassword                 *string   `json:"www_password,omitempty"`
	WwwUsername                 *string   `json:"www_username,omitempty"`
}

UpdateConfigJSONBody defines parameters for UpdateConfig.

type UpdateConfigJSONRequestBody

type UpdateConfigJSONRequestBody UpdateConfigJSONBody

UpdateConfigJSONRequestBody defines body for UpdateConfig for application/json ContentType.

type UpdateConfigResponse

type UpdateConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Message
	JSON400      *Message
}

func ParseUpdateConfigResponse

func ParseUpdateConfigResponse(rsp *http.Response) (*UpdateConfigResponse, error)

ParseUpdateConfigResponse parses an HTTP response from a UpdateConfigWithResponse call

func (UpdateConfigResponse) Status

func (r UpdateConfigResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateConfigResponse) StatusCode

func (r UpdateConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateScheduleJSONBody

type UpdateScheduleJSONBody = []ScheduleEvent

UpdateScheduleJSONBody defines parameters for UpdateSchedule.

type UpdateScheduleJSONRequestBody

type UpdateScheduleJSONRequestBody = UpdateScheduleJSONBody

UpdateScheduleJSONRequestBody defines body for UpdateSchedule for application/json ContentType.

type UpdateScheduleResponse

type UpdateScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateScheduleResponse

func ParseUpdateScheduleResponse(rsp *http.Response) (*UpdateScheduleResponse, error)

ParseUpdateScheduleResponse parses an HTTP response from a UpdateScheduleWithResponse call

func (UpdateScheduleResponse) Status

func (r UpdateScheduleResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateScheduleResponse) StatusCode

func (r UpdateScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateSuccessful

type UpdateSuccessful = Message

UpdateSuccessful defines model for UpdateSuccessful.

Jump to

Keyboard shortcuts

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