Skip to content

Commit d9d48ec

Browse files
authored
fix oss (#15)
1 parent d49c12d commit d9d48ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+11
-170
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ APPENDIX: How to apply the Apache License to your work.
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2022 DataDog
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

cmd/ocitool/appendlayer_cmd.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package main
62

73
import (

cmd/ocitool/createlayer_cmd.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package main
62

73
import (

cmd/ocitool/desc_helpers.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package main
62

73
import (

cmd/ocitool/digest_cmd.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package main
62

73
import (

cmd/ocitool/gen_cmd.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package main
62

73
import (

cmd/ocitool/index_cmd.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package main
62

73
import (

cmd/ocitool/main.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package main
62

73
import (

cmd/ocitool/manifest_cmd.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package main
62

73
import (

cmd/ocitool/pull_cmd.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package main
62

73
import (

cmd/ocitool/push_cmd.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package main
62

73
import (

cmd/ocitool/pushblob_cmd.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package main
62

73
import (

internal/flagutil/kv.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package flagutil
62

73
import (

internal/set/string.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package set
62

73
// String is a set of strings, used to check the existance of strings,

internal/tarutil/tarappend.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package tarutil
62

73
import (

pkg/blob/blobindex.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package blob
62

73
import (

pkg/credhelper/docker.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package credhelper
62

73
import (

pkg/deb2layer/deb.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package deb2layer
62

73
import (

pkg/deb2layer/deb_test.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package deb2layer
62

73
import (

pkg/layer/append.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package layer
62

73
import (

pkg/layer/appendlayeringester.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package layer
62

73
import (

pkg/ociutil/bazel.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/desc.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/diff.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/fetch.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/fs.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/handler.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/image.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/json.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/layers.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
// TODO use upstream defs when a new release is cut

pkg/ociutil/manifest.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/multiprovider.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/platforms.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/provider.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
// This is copied from https://github.com/oras-project/oras-go/blob/v0.5.0/pkg/oras/provider.go

pkg/ociutil/push.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/repoing.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/split.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/tar.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

pkg/ociutil/writer.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package ociutil
62

73
import (

release/doc_gen.go

+10-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
1+
// XXX Copied from
2+
// https://github.com/bazelbuild/bazel-skylib/blob/main/gazelle/bzl/gazelle.go
3+
4+
// Package bzl generates a `bzl_library` target for every `.bzl` file in
5+
// each package.
26
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
7+
// The `bzl_library` rule is provided by
8+
// https://github.com/bazelbuild/bazel-skylib.
9+
//
10+
// This extension is experimental and subject to change. It is not included
11+
// in the default Gazelle binary.
412

513
/* Copyright 2020 The Bazel Authors. All rights reserved.
614
Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,17 +22,6 @@ See the License for the specific language governing permissions and
1422
limitations under the License.
1523
*/
1624

17-
// XXX Copied from
18-
// https://github.com/bazelbuild/bazel-skylib/blob/main/gazelle/bzl/gazelle.go
19-
20-
// Package bzl generates a `bzl_library` target for every `.bzl` file in
21-
// each package.
22-
//
23-
// The `bzl_library` rule is provided by
24-
// https://github.com/bazelbuild/bazel-skylib.
25-
//
26-
// This extension is experimental and subject to change. It is not included
27-
// in the default Gazelle binary.
2825
package bzl
2926

3027
import (

tests/go-multiarch-image/main.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.
2-
//
3-
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
4-
51
package main
62

73
func main() {

0 commit comments

Comments
 (0)