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:
1 parent
674b9627af
commit
8c56a5648d
20 files changed
+178
-71
No files matched your search
@@ -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")
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user