mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-15 10:54:29 -05:00
ae00b0a198
RFC 015 proposes the introduction of data URLs to materialize static content to files on disk. This commit adds support for data URLs to the installer. The corresponding content will be added to versions.go in a subsequent commit.
31 lines
901 B
Python
31 lines
901 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "installer",
|
|
srcs = ["installer.go"],
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/installer",
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//internal/retry",
|
|
"//internal/versions/components",
|
|
"@com_github_spf13_afero//:afero",
|
|
"@com_github_vincent_petithory_dataurl//:dataurl",
|
|
"@io_k8s_utils//clock",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "installer_test",
|
|
srcs = ["installer_test.go"],
|
|
embed = [":installer"],
|
|
deps = [
|
|
"//internal/versions/components",
|
|
"@com_github_spf13_afero//:afero",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@io_k8s_utils//clock/testing",
|
|
"@org_golang_google_grpc//test/bufconn",
|
|
],
|
|
)
|