2020-06-08 14:43:13 -07:00
|
|
|
package common
|
|
|
|
|
|
|
|
|
|
import (
|
2021-04-08 20:54:32 -04:00
|
|
|
"github.com/hashicorp/boundary/internal/auth/oidc"
|
2020-08-10 17:15:02 -04:00
|
|
|
"github.com/hashicorp/boundary/internal/auth/password"
|
2022-05-18 20:20:45 -07:00
|
|
|
credstatic "github.com/hashicorp/boundary/internal/credential/static"
|
2021-06-22 22:26:26 -04:00
|
|
|
"github.com/hashicorp/boundary/internal/credential/vault"
|
2021-09-13 15:02:04 -07:00
|
|
|
pluginhost "github.com/hashicorp/boundary/internal/host/plugin"
|
2020-08-10 17:15:02 -04:00
|
|
|
"github.com/hashicorp/boundary/internal/host/static"
|
|
|
|
|
"github.com/hashicorp/boundary/internal/iam"
|
2021-09-14 09:57:07 -07:00
|
|
|
hostplugin "github.com/hashicorp/boundary/internal/plugin/host"
|
2022-06-20 18:20:17 -07:00
|
|
|
"github.com/hashicorp/boundary/internal/server"
|
2020-09-19 00:18:17 -04:00
|
|
|
"github.com/hashicorp/boundary/internal/session"
|
2020-06-08 14:43:13 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type (
|
2022-06-03 14:44:53 -04:00
|
|
|
AuthTokenRepoFactory = oidc.AuthTokenRepoFactory
|
|
|
|
|
VaultCredentialRepoFactory = func() (*vault.Repository, error)
|
2022-06-15 16:45:00 -05:00
|
|
|
StaticCredentialRepoFactory = func() (*credstatic.Repository, error)
|
2022-06-03 14:44:53 -04:00
|
|
|
IamRepoFactory func() (*iam.Repository, error)
|
|
|
|
|
OidcAuthRepoFactory = oidc.OidcRepoFactory
|
|
|
|
|
PasswordAuthRepoFactory func() (*password.Repository, error)
|
2022-06-20 18:20:17 -07:00
|
|
|
ServersRepoFactory func() (*server.Repository, error)
|
2022-06-03 14:44:53 -04:00
|
|
|
StaticRepoFactory func() (*static.Repository, error)
|
|
|
|
|
PluginHostRepoFactory func() (*pluginhost.Repository, error)
|
|
|
|
|
HostPluginRepoFactory func() (*hostplugin.Repository, error)
|
|
|
|
|
ConnectionRepoFactory func() (*session.ConnectionRepository, error)
|
2022-06-20 18:20:17 -07:00
|
|
|
WorkerAuthRepoStorageFactory func() (*server.WorkerAuthRepositoryStorage, error)
|
2020-06-08 14:43:13 -07:00
|
|
|
)
|