...

Text file src/edge-infra.dev/pkg/f8n/warehouse/oci/cache/BUILD.bazel

Documentation: edge-infra.dev/pkg/f8n/warehouse/oci/cache

     1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2
     3go_library(
     4    name = "cache",
     5    srcs = [
     6        "cache.go",
     7        "image.go",
     8        "index.go",
     9        "layer.go",
    10        "options.go",
    11    ],
    12    importpath = "edge-infra.dev/pkg/f8n/warehouse/oci/cache",
    13    visibility = ["//visibility:public"],
    14    deps = [
    15        "//pkg/f8n/warehouse/oci",
    16        "//pkg/f8n/warehouse/oci/cache/providers/memory",
    17        "//pkg/f8n/warehouse/oci/layer",
    18        "//pkg/f8n/warehouse/oci/remote",
    19        "@com_github_google_go_containerregistry//pkg/name",
    20        "@com_github_google_go_containerregistry//pkg/v1:pkg",
    21        "@com_github_google_go_containerregistry//pkg/v1/remote",
    22    ],
    23)
    24
    25go_test(
    26    name = "cache_test",
    27    srcs = [
    28        "cache_benchmark_test.go",
    29        "cache_test.go",
    30    ],
    31    data = [
    32        "//hack/tools:etcd",
    33        "//hack/tools:kube-apiserver",
    34        "//hack/tools:kubectl",
    35    ],
    36    embed = [":cache"],
    37    tags = ["needs-f2-refactor"],
    38    deps = [
    39        "//pkg/f8n/warehouse/cluster",
    40        "//pkg/f8n/warehouse/lift/unpack",
    41        "//pkg/f8n/warehouse/oci",
    42        "//pkg/f8n/warehouse/oci/layer",
    43        "//pkg/f8n/warehouse/oci/remote",
    44        "//pkg/f8n/warehouse/oci/walk",
    45        "//pkg/f8n/warehouse/pallet",
    46        "//pkg/f8n/warehouse/whtest/registry",
    47        "//pkg/lib/uuid",
    48        "//test/fixtures",
    49        "@com_github_google_go_containerregistry//pkg/name",
    50        "@com_github_google_go_containerregistry//pkg/v1:pkg",
    51        "@com_github_stretchr_testify//assert",
    52        "@com_github_stretchr_testify//require",
    53    ],
    54)

View as plain text