2026-04-06 15:48:37 +05:30
|
|
|
// Copyright IBM Corp. 2020, 2026
|
2022-03-16 17:04:07 -04:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-02-02 17:15:17 -08:00
|
|
|
|
2022-03-16 17:04:07 -04:00
|
|
|
package kms_plugin_assets
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"embed"
|
|
|
|
|
"io/fs"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const contentDir = "assets"
|
|
|
|
|
|
|
|
|
|
// content is our static web server content.
|
2022-08-25 09:12:24 -07:00
|
|
|
//
|
2022-03-16 17:04:07 -04:00
|
|
|
//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
|
|
|
|
|
}
|