From f1cfbbcd718ffd7ee24f448cf483b38c0d1601aa Mon Sep 17 00:00:00 2001 From: Adphi Date: Tue, 9 Aug 2022 13:43:02 +0200 Subject: [PATCH] chore: add missing copyright headers, remove done todos Signed-off-by: Adphi --- builder_test.go | 14 ++++++++++++++ cmd/d2vm/run/hetzner.go | 16 ++++++++++++++-- cmd/d2vm/version.go | 14 ++++++++++++++ version.go | 14 ++++++++++++++ 4 files changed, 56 insertions(+), 2 deletions(-) diff --git a/builder_test.go b/builder_test.go index aac9857..498a658 100644 --- a/builder_test.go +++ b/builder_test.go @@ -1,3 +1,17 @@ +// Copyright 2022 Linka Cloud All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package d2vm import ( diff --git a/cmd/d2vm/run/hetzner.go b/cmd/d2vm/run/hetzner.go index f3022f6..1250c2b 100644 --- a/cmd/d2vm/run/hetzner.go +++ b/cmd/d2vm/run/hetzner.go @@ -1,3 +1,17 @@ +// Copyright 2022 Linka Cloud All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package run import ( @@ -70,8 +84,6 @@ func runHetzner(ctx context.Context, imgPath string, stdin io.Reader, stderr io. return err } defer src.Close() - // TODO(adphi): check image format - // TODO(adphi): convert to raw if needed c := hcloud.NewClient(hcloud.WithToken(hetznerToken)) st, _, err := c.ServerType.GetByName(ctx, hetznerVMType) diff --git a/cmd/d2vm/version.go b/cmd/d2vm/version.go index 5d236d2..dbedd93 100644 --- a/cmd/d2vm/version.go +++ b/cmd/d2vm/version.go @@ -1,3 +1,17 @@ +// Copyright 2022 Linka Cloud All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/version.go b/version.go index ed3a300..ca04e88 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,17 @@ +// Copyright 2022 Linka Cloud All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package d2vm var (