osbase/oci/osimage: add package
This adds the osimage package, which allows reading OS images
represented as OCI artifacts.
Change-Id: Ie122c16d19145f68d0f92a9d6c598342b4d257bd
Reviewed-on: https://review.monogon.dev/c/monogon/+/4087
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/osbase/oci/osimage/BUILD.bazel b/osbase/oci/osimage/BUILD.bazel
new file mode 100644
index 0000000..bfb8dd6
--- /dev/null
+++ b/osbase/oci/osimage/BUILD.bazel
@@ -0,0 +1,16 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+
+go_library(
+ name = "osimage",
+ srcs = [
+ "osimage.go",
+ "types.go",
+ ],
+ importpath = "source.monogon.dev/osbase/oci/osimage",
+ visibility = ["//visibility:public"],
+ deps = [
+ "//osbase/oci",
+ "//osbase/structfs",
+ "@com_github_klauspost_compress//zstd",
+ ],
+)