load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "layer", srcs = [ "layer.go", "mutate.go", "options.go", "types.go", ], importpath = "edge-infra.dev/pkg/f8n/warehouse/oci/layer", visibility = ["//visibility:public"], deps = [ "//pkg/f8n/warehouse", "//pkg/f8n/warehouse/capability", "//pkg/k8s/unstructured", "@com_github_fluxcd_pkg_ssa//:ssa", "@com_github_google_go_containerregistry//pkg/v1:pkg", "@com_github_google_go_containerregistry//pkg/v1/partial", "@com_github_google_go_containerregistry//pkg/v1/static", "@com_github_google_go_containerregistry//pkg/v1/types", "@io_k8s_sigs_kustomize_kyaml//kio", ], ) go_test( name = "layer_test", srcs = ["layer_test.go"], deps = [ ":layer", "//pkg/f8n/warehouse", "//pkg/f8n/warehouse/capability", "//pkg/f8n/warehouse/cluster", "//pkg/f8n/warehouse/pallet", "@com_github_google_go_containerregistry//pkg/v1:pkg", "@com_github_google_go_containerregistry//pkg/v1/mutate", "@com_github_google_go_containerregistry//pkg/v1/partial", "@com_github_google_go_containerregistry//pkg/v1/static", ], )