2023-05-25 12:43:44 -04:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "configapi",
|
|
|
|
srcs = [
|
|
|
|
"attestation.go",
|
|
|
|
"attestationversion.go",
|
|
|
|
"configapi.go",
|
|
|
|
"repo.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/api/configapi",
|
|
|
|
visibility = ["//:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//internal/constants",
|
|
|
|
"//internal/kms/storage",
|
2023-06-01 07:55:46 -04:00
|
|
|
"//internal/sigstore",
|
|
|
|
"//internal/staticupload",
|
2023-05-25 12:43:44 -04:00
|
|
|
"//internal/variant",
|
2023-06-01 07:55:46 -04:00
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_s3//:s3",
|
2023-05-25 12:43:44 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "configapi_test",
|
|
|
|
srcs = [
|
|
|
|
"attestationversion_test.go",
|
|
|
|
"repo_test.go",
|
|
|
|
],
|
|
|
|
embed = [":configapi"],
|
|
|
|
deps = [
|
2023-06-01 07:55:46 -04:00
|
|
|
"//internal/staticupload",
|
2023-05-25 12:43:44 -04:00
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@in_gopkg_yaml_v3//:yaml_v3",
|
|
|
|
],
|
|
|
|
)
|