has2be

package
v0.0.0-...-55c65bb Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationStatusEnumType

type AuthorizationStatusEnumType string
const AuthorizationStatusEnumTypeAccepted AuthorizationStatusEnumType = "Accepted"
const AuthorizationStatusEnumTypeBlocked AuthorizationStatusEnumType = "Blocked"
const AuthorizationStatusEnumTypeConcurrentTx AuthorizationStatusEnumType = "ConcurrentTx"
const AuthorizationStatusEnumTypeExpired AuthorizationStatusEnumType = "Expired"
const AuthorizationStatusEnumTypeInvalid AuthorizationStatusEnumType = "Invalid"
const AuthorizationStatusEnumTypeNoCredit AuthorizationStatusEnumType = "NoCredit"
const AuthorizationStatusEnumTypeNotAllowedTypeEVSE AuthorizationStatusEnumType = "NotAllowedTypeEVSE"
const AuthorizationStatusEnumTypeNotAtThisLocation AuthorizationStatusEnumType = "NotAtThisLocation"
const AuthorizationStatusEnumTypeNotAtThisTime AuthorizationStatusEnumType = "NotAtThisTime"
const AuthorizationStatusEnumTypeUnknown AuthorizationStatusEnumType = "Unknown"

type AuthorizeCertificateStatusEnumType

type AuthorizeCertificateStatusEnumType string
const AuthorizeCertificateStatusEnumTypeAccepted AuthorizeCertificateStatusEnumType = "Accepted"
const AuthorizeCertificateStatusEnumTypeCertificateRevoked AuthorizeCertificateStatusEnumType = "CertificateRevoked"

type AuthorizeRequestJson

type AuthorizeRequestJson struct {
	// ISO15118CertificateHashData corresponds to the JSON schema field
	// "15118CertificateHashData".
	ISO15118CertificateHashData []OCSPRequestDataType `json:"15118CertificateHashData" yaml:"15118CertificateHashData" mapstructure:"15118CertificateHashData"`

	// IdToken corresponds to the JSON schema field "idToken".
	IdToken IdTokenType `json:"idToken" yaml:"idToken" mapstructure:"idToken"`
}

func (*AuthorizeRequestJson) IsRequest

func (*AuthorizeRequestJson) IsRequest()

type AuthorizeResponseJson

type AuthorizeResponseJson struct {
	// CertificateStatus corresponds to the JSON schema field "certificateStatus".
	CertificateStatus AuthorizeCertificateStatusEnumType `json:"certificateStatus" yaml:"certificateStatus" mapstructure:"certificateStatus"`

	// IdTokenInfo corresponds to the JSON schema field "idTokenInfo".
	IdTokenInfo IdTokenInfoType `json:"idTokenInfo" yaml:"idTokenInfo" mapstructure:"idTokenInfo"`
}

func (*AuthorizeResponseJson) IsResponse

func (*AuthorizeResponseJson) IsResponse()

type CertificateChainType

type CertificateChainType struct {
	// Certificate corresponds to the JSON schema field "certificate".
	Certificate string `json:"certificate" yaml:"certificate" mapstructure:"certificate"`

	// ChildCertificate corresponds to the JSON schema field "childCertificate".
	ChildCertificate []string `json:"childCertificate,omitempty" yaml:"childCertificate,omitempty" mapstructure:"childCertificate,omitempty"`
}

type CertificateSignedRequestJson

type CertificateSignedRequestJson struct {

	// TypeOfCertificate corresponds to the JSON schema field "typeOfCertificate".
	TypeOfCertificate CertificateSigningUseEnumType `json:"typeOfCertificate" yaml:"typeOfCertificate" mapstructure:"typeOfCertificate"`
}

func (*CertificateSignedRequestJson) IsRequest

func (*CertificateSignedRequestJson) IsRequest()

type CertificateSignedResponseJson

type CertificateSignedResponseJson struct {
	// Status corresponds to the JSON schema field "status".
	Status CertificateSignedStatusEnumType `json:"status" yaml:"status" mapstructure:"status"`
}

func (*CertificateSignedResponseJson) IsResponse

func (*CertificateSignedResponseJson) IsResponse()

type CertificateSignedStatusEnumType

type CertificateSignedStatusEnumType string
const CertificateSignedStatusEnumTypeAccepted CertificateSignedStatusEnumType = "Accepted"
const CertificateSignedStatusEnumTypeRejected CertificateSignedStatusEnumType = "Rejected"

type CertificateSigningUseEnumType

type CertificateSigningUseEnumType string
const CertificateSigningUseEnumTypeChargingStationCertificate CertificateSigningUseEnumType = "ChargingStationCertificate"
const CertificateSigningUseEnumTypeV2GCertificate CertificateSigningUseEnumType = "V2GCertificate"

type GenericStatusEnumType

type GenericStatusEnumType string
const GenericStatusEnumTypeAccepted GenericStatusEnumType = "Accepted"
const GenericStatusEnumTypeRejected GenericStatusEnumType = "Rejected"

type Get15118EVCertificateRequestJson

type Get15118EVCertificateRequestJson struct {
	// Schema version currently used for the 15118 session between EV and Charging
	// Station. Needed for parsing of the EXI stream by the CSMS.
	A15118SchemaVersion *string `json:"15118SchemaVersion,omitempty" yaml:"15118SchemaVersion,omitempty" mapstructure:"15118SchemaVersion,omitempty"`

	// Raw CertificateInstallationReq request from EV, Base64 encoded.
	ExiRequest string `json:"exiRequest" yaml:"exiRequest" mapstructure:"exiRequest"`
}

func (*Get15118EVCertificateRequestJson) IsRequest

func (*Get15118EVCertificateRequestJson) IsRequest()

type Get15118EVCertificateResponseJson

type Get15118EVCertificateResponseJson struct {
	// ContractSignatureCertificateChain corresponds to the JSON schema field
	// "contractSignatureCertificateChain".
	ContractSignatureCertificateChain *CertificateChainType `` /* 160-byte string literal not displayed */

	// Raw CertificateInstallationRes response for the EV, Base64 encoded.
	ExiResponse string `json:"exiResponse" yaml:"exiResponse" mapstructure:"exiResponse"`

	// SaProvisioningCertificateChain corresponds to the JSON schema field
	// "saProvisioningCertificateChain".
	SaProvisioningCertificateChain *CertificateChainType `` /* 151-byte string literal not displayed */

	// Status corresponds to the JSON schema field "status".
	Status Iso15118EVCertificateStatusEnumType `json:"status" yaml:"status" mapstructure:"status"`
}

func (*Get15118EVCertificateResponseJson) IsResponse

func (*Get15118EVCertificateResponseJson) IsResponse()

type GetCertificateStatusEnumType

type GetCertificateStatusEnumType string
const GetCertificateStatusEnumTypeAccepted GetCertificateStatusEnumType = "Accepted"
const GetCertificateStatusEnumTypeFailed GetCertificateStatusEnumType = "Failed"

type GetCertificateStatusRequestJson

type GetCertificateStatusRequestJson struct {
	// OcspRequestData corresponds to the JSON schema field "ocspRequestData".
	OcspRequestData OCSPRequestDataType `json:"ocspRequestData" yaml:"ocspRequestData" mapstructure:"ocspRequestData"`
}

func (*GetCertificateStatusRequestJson) IsRequest

func (*GetCertificateStatusRequestJson) IsRequest()

type GetCertificateStatusResponseJson

type GetCertificateStatusResponseJson struct {
	// OCSPResponse class as defined in <<ref-ocpp_security_24, IETF RFC
	// 6960>>. DER encoded (as defined in <<ref-ocpp_security_24, IETF RFC
	// 6960>>;), and then base64 encoded. MAY only be omitted when status is not
	// Accepted.
	OcspResult *string `json:"ocspResult,omitempty" yaml:"ocspResult,omitempty" mapstructure:"ocspResult,omitempty"`

	// Status corresponds to the JSON schema field "status".
	Status GetCertificateStatusEnumType `json:"status" yaml:"status" mapstructure:"status"`
}

func (*GetCertificateStatusResponseJson) IsResponse

func (*GetCertificateStatusResponseJson) IsResponse()

type HashAlgorithmEnumType

type HashAlgorithmEnumType string
const HashAlgorithmEnumTypeSHA256 HashAlgorithmEnumType = "SHA256"
const HashAlgorithmEnumTypeSHA384 HashAlgorithmEnumType = "SHA384"
const HashAlgorithmEnumTypeSHA512 HashAlgorithmEnumType = "SHA512"

type IdTokenEnumType

type IdTokenEnumType string
const IdTokenEnumTypeEMAID IdTokenEnumType = "eMAID"

type IdTokenInfoType

type IdTokenInfoType struct {
	// ID_ Token. Expiry. Date_ Time
	// urn:x-oca:ocpp:uid:1:569373
	// Date and Time after which the token must be considered invalid.
	//
	CacheExpiryDateTime *string `json:"cacheExpiryDateTime,omitempty" yaml:"cacheExpiryDateTime,omitempty" mapstructure:"cacheExpiryDateTime,omitempty"`

	// Status corresponds to the JSON schema field "status".
	Status AuthorizationStatusEnumType `json:"status" yaml:"status" mapstructure:"status"`
}

ID_ Token urn:x-oca:ocpp:uid:2:233247 Contains status information about an identifier. It is advised to not stop charging for a token that expires during charging, as ExpiryDate is only used for caching purposes. If ExpiryDate is not given, the status has no end date.

type IdTokenType

type IdTokenType struct {
	// IdToken is case insensitive. Will hold the eMAID.
	//
	IdToken string `json:"idToken" yaml:"idToken" mapstructure:"idToken"`

	// Type corresponds to the JSON schema field "type".
	Type IdTokenEnumType `json:"type" yaml:"type" mapstructure:"type"`
}

Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.

type Iso15118EVCertificateStatusEnumType

type Iso15118EVCertificateStatusEnumType string
const Iso15118EVCertificateStatusEnumTypeAccepted Iso15118EVCertificateStatusEnumType = "Accepted"
const Iso15118EVCertificateStatusEnumTypeFailed Iso15118EVCertificateStatusEnumType = "Failed"

type OCSPRequestDataType

type OCSPRequestDataType struct {
	// HashAlgorithm corresponds to the JSON schema field "hashAlgorithm".
	HashAlgorithm HashAlgorithmEnumType `json:"hashAlgorithm" yaml:"hashAlgorithm" mapstructure:"hashAlgorithm"`

	// Hashed value of the issuers public key
	IssuerKeyHash string `json:"issuerKeyHash" yaml:"issuerKeyHash" mapstructure:"issuerKeyHash"`

	// Hashed value of the Issuer DN (Distinguished Name).
	IssuerNameHash string `json:"issuerNameHash" yaml:"issuerNameHash" mapstructure:"issuerNameHash"`

	// This contains the responder URL (Case insensitive).
	ResponderURL *string `json:"responderURL,omitempty" yaml:"responderURL,omitempty" mapstructure:"responderURL,omitempty"`

	// The serial number of the certificate.
	SerialNumber string `json:"serialNumber" yaml:"serialNumber" mapstructure:"serialNumber"`
}

type SignCertificateRequestJson

type SignCertificateRequestJson struct {
	// The Charging Station SHALL send the public key in form of a Certificate Signing
	// Request (CSR) as described in the X.509 standard.
	Csr string `json:"csr" yaml:"csr" mapstructure:"csr"`

	// TypeOfCertificate corresponds to the JSON schema field "typeOfCertificate".
	TypeOfCertificate *CertificateSigningUseEnumType `json:"typeOfCertificate,omitempty" yaml:"typeOfCertificate,omitempty" mapstructure:"typeOfCertificate,omitempty"`
}

func (*SignCertificateRequestJson) IsRequest

func (*SignCertificateRequestJson) IsRequest()

type SignCertificateResponseJson

type SignCertificateResponseJson struct {
	// Status corresponds to the JSON schema field "status".
	Status GenericStatusEnumType `json:"status" yaml:"status" mapstructure:"status"`
}

func (*SignCertificateResponseJson) IsResponse

func (*SignCertificateResponseJson) IsResponse()

Jump to

Keyboard shortcuts

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