2026-04-06 15:48:37 +05:30
|
|
|
// Copyright IBM Corp. 2020, 2026
|
2023-10-11 18:26:16 +00:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
|
|
|
|
package authmethods
|
|
|
|
|
|
|
|
|
|
import (
|
2026-10-12 10:33:41 -07:00
|
|
|
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/types/action"
|
|
|
|
|
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/types/resource"
|
2023-10-11 18:26:16 +00:00
|
|
|
"golang.org/x/exp/maps"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// init functions process in alphabetical order of filenames within a package.
|
|
|
|
|
// this needs to run last since it used the IdActions variable which gets
|
|
|
|
|
// modified in other init functions in this package.
|
|
|
|
|
func init() {
|
|
|
|
|
// TODO: refactor to remove IdActions and CollectionActions package variables
|
|
|
|
|
// Then this registration can happen in authmethod_service.go and we don't
|
|
|
|
|
// need to worry about the order of init functions in a package.
|
|
|
|
|
action.RegisterResource(resource.AuthMethod, action.Union(maps.Values(IdActions)...), CollectionActions)
|
|
|
|
|
}
|