Files
terraform-provider-threshold/plugins/kms/assets.go
T

22 lines
349 B
Go
Raw Normal View History

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package kms_plugin_assets
import (
"io/fs"
"path"
"runtime"
)
const contentDir = "assets"
func FileSystem() fs.FS {
// Remove the root
dir := path.Join(contentDir, runtime.GOOS, runtime.GOARCH)
f, err := fs.Sub(content, dir)
if err != nil {
panic(err)
}
return f
}