Move struct DynamicOptions to package pkg/server (#5625)

* move struct DynamicOptions to package pkg/server/dynamic_options.go

Signed-off-by: wenhaozhou <wenhaozhou@yunify.com>

* update test types

Signed-off-by: wenhaozhou <wenhaozhou@yunify.com>

---------

Signed-off-by: wenhaozhou <wenhaozhou@yunify.com>
This commit is contained in:
Wenhao Zhou
2023-04-07 11:33:36 +08:00
committed by GitHub
parent c57a89af3c
commit 62427cda32
21 changed files with 139 additions and 122 deletions

View File

@@ -19,7 +19,7 @@ package identityprovider
import (
"net/http"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/oauth"
"kubesphere.io/kubesphere/pkg/server/options"
)
type OAuthProvider interface {
@@ -31,5 +31,5 @@ type OAuthProviderFactory interface {
// Type unique type of the provider
Type() string
// Create Apply the dynamic options
Create(options oauth.DynamicOptions) (OAuthProvider, error)
Create(options options.DynamicOptions) (OAuthProvider, error)
}