* Move the server daemons into their own package With this change the internal/server package now is dedicated to the server domain (workers and controllers) and not to the server daemons. The hope is that this will make it easier to keep the daemons decoupled from the representation of the servers in the database.
30 lines
1.3 KiB
Go
30 lines
1.3 KiB
Go
package common
|
|
|
|
import (
|
|
"github.com/hashicorp/boundary/internal/auth/oidc"
|
|
"github.com/hashicorp/boundary/internal/auth/password"
|
|
"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/servers"
|
|
"github.com/hashicorp/boundary/internal/session"
|
|
"github.com/hashicorp/boundary/internal/target"
|
|
)
|
|
|
|
type (
|
|
AuthTokenRepoFactory = oidc.AuthTokenRepoFactory
|
|
VaultCredentialRepoFactory = func() (*vault.Repository, error)
|
|
IamRepoFactory func() (*iam.Repository, error)
|
|
OidcAuthRepoFactory = oidc.OidcRepoFactory
|
|
PasswordAuthRepoFactory func() (*password.Repository, error)
|
|
ServersRepoFactory func() (*servers.Repository, error)
|
|
StaticRepoFactory func() (*static.Repository, error)
|
|
PluginHostRepoFactory func() (*pluginhost.Repository, error)
|
|
HostPluginRepoFactory func() (*hostplugin.Repository, error)
|
|
SessionRepoFactory func() (*session.Repository, error)
|
|
ConnectionRepoFactory func() (*session.ConnectionRepository, error)
|
|
TargetRepoFactory func() (*target.Repository, error)
|
|
)
|