Migrate plugin host/set/catalog prefixes to typed (#2256)

* Migrate plugin host/set/catalog prefixes to typed

* Add credential store typing too
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2022-07-15 13:09:55 -04:00
1 parent 674b9627af
commit 8c56a5648d
20 files changed
+178 -71

No files matched your search

+7 -4
View File
@@ -10,16 +10,19 @@ import (
)
func init() {
if err := subtypes.Register(host.Domain, Subtype, HostCatalogPrefix, HostSetPrefix, HostPrefix); err != nil {
if err := subtypes.Register(host.Domain, Subtype, HostCatalogPrefix, PreviousHostCatalogPrefix, HostSetPrefix, PreviousHostSetPrefix, HostPrefix, PreviousHostPrefix); err != nil {
panic(err)
}
}
// PublicId prefixes for the resources in the plugin package.
const (
HostCatalogPrefix = "hc"
HostSetPrefix = "hs"
HostPrefix = "h"
HostCatalogPrefix = "hcplg"
PreviousHostCatalogPrefix = "hc"
HostSetPrefix = "hsplg"
PreviousHostSetPrefix = "hs"
HostPrefix = "hplg"
PreviousHostPrefix = "h"
Subtype = subtypes.Subtype("plugin")
)