This adds a context to the session.RepositoryFactory, allowing errors.NewDeprecated to be replaced with errors.New. It also removes the common.SessionRepoFactory, instead packages just directly import from the session package.
32 lines
1.5 KiB
Go
32 lines
1.5 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"
|
|
"github.com/hashicorp/boundary/internal/target"
|
|
)
|
|
|
|
type (
|
|
AuthTokenRepoFactory = oidc.AuthTokenRepoFactory
|
|
VaultCredentialRepoFactory = func() (*vault.Repository, error)
|
|
StaticCredentialRepoFactory = func() (*credstatic.Repository, error)
|
|
IamRepoFactory func() (*iam.Repository, error)
|
|
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)
|
|
TargetRepoFactory func() (*target.Repository, error)
|
|
WorkerAuthRepoStorageFactory func() (*server.WorkerAuthRepositoryStorage, error)
|
|
)
|