You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/plugins/kms/assets.go

26 lines
375 B

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package kms_plugin_assets
import (
"embed"
"io/fs"
)
const contentDir = "assets"
// content is our static web server content.
//
//go:embed assets
var content embed.FS
func FileSystem() fs.FS {
// Remove the root
f, err := fs.Sub(content, contentDir)
if err != nil {
panic(err)
}
return f
}