This is a precursor to another upcoming PR that will make use of these changes, but it makes that PR more manageable.
30 lines
1.4 KiB
Go
30 lines
1.4 KiB
Go
package common
|
|
|
|
import (
|
|
"github.com/hashicorp/boundary/internal/auth/oidc"
|
|
"github.com/hashicorp/boundary/internal/auth/password"
|
|
credstatic "github.com/hashicorp/boundary/internal/credential/static"
|
|
"github.com/hashicorp/boundary/internal/credential/vault"
|
|
pluginhost "github.com/hashicorp/boundary/internal/host/plugin"
|
|
"github.com/hashicorp/boundary/internal/host/static"
|
|
"github.com/hashicorp/boundary/internal/iam"
|
|
hostplugin "github.com/hashicorp/boundary/internal/plugin/host"
|
|
"github.com/hashicorp/boundary/internal/server"
|
|
"github.com/hashicorp/boundary/internal/session"
|
|
)
|
|
|
|
type (
|
|
AuthTokenRepoFactory = oidc.AuthTokenRepoFactory
|
|
VaultCredentialRepoFactory = func() (*vault.Repository, error)
|
|
StaticCredentialRepoFactory = func() (*credstatic.Repository, error)
|
|
IamRepoFactory = iam.IamRepoFactory
|
|
OidcAuthRepoFactory = oidc.OidcRepoFactory
|
|
PasswordAuthRepoFactory func() (*password.Repository, error)
|
|
ServersRepoFactory func() (*server.Repository, error)
|
|
StaticRepoFactory func() (*static.Repository, error)
|
|
PluginHostRepoFactory func() (*pluginhost.Repository, error)
|
|
HostPluginRepoFactory func() (*hostplugin.Repository, error)
|
|
ConnectionRepoFactory func() (*session.ConnectionRepository, error)
|
|
WorkerAuthRepoStorageFactory func() (*server.WorkerAuthRepositoryStorage, error)
|
|
)
|