From e03c76057ddaf7f19fabecfcbbeb6c5783bfcc41 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 15 Aug 2021 13:18:48 +0200 Subject: [PATCH] Attach license notice to sponsored code --- charger/abl.go | 17 +++++++++++++++++ charger/easee.go | 17 +++++++++++++++++ charger/easee/LICENSE | 16 ---------------- charger/heidelberg-ec.go | 17 +++++++++++++++++ vehicle/tronity.go | 21 +++++++++++++++++++-- 5 files changed, 70 insertions(+), 18 deletions(-) delete mode 100644 charger/easee/LICENSE diff --git a/charger/abl.go b/charger/abl.go index 5cd36b721..5f8f914d5 100644 --- a/charger/abl.go +++ b/charger/abl.go @@ -1,5 +1,22 @@ package charger +// LICENSE + +// Copyright (c) 2019-2021 andig + +// This module is NOT covered by the MIT license. All rights reserved. + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + import ( "encoding/binary" "fmt" diff --git a/charger/easee.go b/charger/easee.go index 9a1cfb5a9..68ff6d7d6 100644 --- a/charger/easee.go +++ b/charger/easee.go @@ -1,5 +1,22 @@ package charger +// LICENSE + +// Copyright (c) 2019-2021 andig + +// This module is NOT covered by the MIT license. All rights reserved. + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + import ( "fmt" "net/http" diff --git a/charger/easee/LICENSE b/charger/easee/LICENSE deleted file mode 100644 index da43384fb..000000000 --- a/charger/easee/LICENSE +++ /dev/null @@ -1,16 +0,0 @@ -LICENSE - -Copyright (c) 2019-2021 andig - -This module is NOT covered by the MIT license. All rights reserved. - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/charger/heidelberg-ec.go b/charger/heidelberg-ec.go index 3deb56c47..251ec48ab 100644 --- a/charger/heidelberg-ec.go +++ b/charger/heidelberg-ec.go @@ -1,5 +1,22 @@ package charger +// LICENSE + +// Copyright (c) 2019-2021 andig + +// This module is NOT covered by the MIT license. All rights reserved. + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + import ( "encoding/binary" "fmt" diff --git a/vehicle/tronity.go b/vehicle/tronity.go index 891732357..4681ecbda 100644 --- a/vehicle/tronity.go +++ b/vehicle/tronity.go @@ -1,5 +1,22 @@ package vehicle +// LICENSE + +// Copyright (c) 2019-2021 andig + +// This module is NOT covered by the MIT license. All rights reserved. + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + import ( "context" "errors" @@ -200,8 +217,6 @@ func (v *Tronity) Range() (int64, error) { return 0, err } -var _ api.VehicleStartCharge = (*Tronity)(nil) - func (v *Tronity) post(uri string) error { resp, err := v.Post(uri, "", nil) if err == nil { @@ -218,6 +233,8 @@ func (v *Tronity) post(uri string) error { return err } +var _ api.VehicleStartCharge = (*Tronity)(nil) + // StartCharge implements the api.VehicleStartCharge interface func (v *Tronity) StartCharge() error { uri := fmt.Sprintf("%s/v1/vehicles/%s/charge_start", tronity.URI, v.vid)