2023-05-30 07:48:29 -04:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "staticupload",
|
|
|
|
srcs = [
|
|
|
|
"delete.go",
|
2023-06-01 07:55:46 -04:00
|
|
|
"get.go",
|
2023-05-30 07:48:29 -04:00
|
|
|
"staticupload.go",
|
|
|
|
"upload.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/staticupload",
|
|
|
|
visibility = ["//:__subpackages__"],
|
|
|
|
deps = [
|
2023-06-01 07:55:46 -04:00
|
|
|
"//internal/constants",
|
2023-05-30 07:48:29 -04:00
|
|
|
"@com_github_aws_aws_sdk_go_v2_config//:config",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_feature_s3_manager//:manager",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_cloudfront//:cloudfront",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_cloudfront//types",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_s3//:s3",
|
2023-06-01 07:55:46 -04:00
|
|
|
"@com_github_google_uuid//:uuid",
|
2023-05-30 07:48:29 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "staticupload_test",
|
|
|
|
srcs = ["staticupload_test.go"],
|
|
|
|
embed = [":staticupload"],
|
|
|
|
deps = [
|
2023-08-31 04:31:45 -04:00
|
|
|
"//internal/logger",
|
2023-05-30 07:48:29 -04:00
|
|
|
"@com_github_aws_aws_sdk_go_v2_feature_s3_manager//:manager",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_cloudfront//:cloudfront",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_cloudfront//types",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_s3//:s3",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_s3//types",
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@org_uber_go_goleak//:goleak",
|
|
|
|
],
|
|
|
|
)
|