Rename root, api and sdk module paths (imports, go.mod, go_package, ldflags, build scripts, buf configs) and regenerate protobuf/gateway code with the project's pinned toolchain. Wire identifiers unchanged. api gets a local replace for sdk; root/api/sdk require v0.1.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
28 lines
871 B
Go
28 lines
871 B
Go
// Copyright IBM Corp. 2020, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package iam
|
|
|
|
import "repo.anhonesthost.net/CyberCoveLLC/threshold/internal/types/action"
|
|
|
|
// CrudActions returns a standard set of actions for resources that support a CRUD API
|
|
func CrudActions() map[string]action.Type {
|
|
return map[string]action.Type{
|
|
action.Create.String(): action.Create,
|
|
action.Update.String(): action.Update,
|
|
action.Read.String(): action.Read,
|
|
action.Delete.String(): action.Delete,
|
|
}
|
|
}
|
|
|
|
// CrudlActions adds list to the standard set of actions for resources that support a CRUD API
|
|
func CrudlActions() map[string]action.Type {
|
|
return map[string]action.Type{
|
|
action.Create.String(): action.Create,
|
|
action.Update.String(): action.Update,
|
|
action.Read.String(): action.Read,
|
|
action.Delete.String(): action.Delete,
|
|
action.List.String(): action.List,
|
|
}
|
|
}
|