metadata: use resource max and end on registration

Ensure the registered resource type does not conflict
with existing resource types or over the max.

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2022-04-19 14:25:31 -07:00
parent 8367f69fb5
commit 3b82f9e33c
2 changed files with 11 additions and 8 deletions

View File

@@ -44,6 +44,8 @@ const (
ResourceLease
// ResourceIngest specifies a content ingest
ResourceIngest
// resourceEnd is the end of specified resource types
resourceEnd
)
const (