load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "cache", srcs = [ "cache.go", "image.go", "index.go", "layer.go", "options.go", ], importpath = "edge-infra.dev/pkg/f8n/warehouse/oci/cache", visibility = ["//visibility:public"], deps = [ "//pkg/f8n/warehouse/oci", "//pkg/f8n/warehouse/oci/cache/providers/memory", "//pkg/f8n/warehouse/oci/layer", "//pkg/f8n/warehouse/oci/remote", "@com_github_google_go_containerregistry//pkg/name", "@com_github_google_go_containerregistry//pkg/v1:pkg", "@com_github_google_go_containerregistry//pkg/v1/remote", ], ) go_test( name = "cache_test", srcs = [ "cache_benchmark_test.go", "cache_test.go", ], data = [ "//hack/tools:etcd", "//hack/tools:kube-apiserver", "//hack/tools:kubectl", ], embed = [":cache"], tags = ["needs-f2-refactor"], deps = [ "//pkg/f8n/warehouse/cluster", "//pkg/f8n/warehouse/lift/unpack", "//pkg/f8n/warehouse/oci", "//pkg/f8n/warehouse/oci/layer", "//pkg/f8n/warehouse/oci/remote", "//pkg/f8n/warehouse/oci/walk", "//pkg/f8n/warehouse/pallet", "//pkg/f8n/warehouse/whtest/registry", "//pkg/lib/uuid", "//test/fixtures", "@com_github_google_go_containerregistry//pkg/name", "@com_github_google_go_containerregistry//pkg/v1:pkg", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", ], )