2022-06-10 11:51:19 +00:00
|
|
|
package supplier
|
|
|
|
|
|
|
|
import "context"
|
|
|
|
|
|
|
|
type ServiceProviderSupplier interface {
|
|
|
|
ScimEndpoint() string
|
|
|
|
Name() string
|
|
|
|
StartSession(context.Context) error
|
|
|
|
CloseSession() error
|
|
|
|
InstallOrUpdate() error
|
|
|
|
Enable() error
|
|
|
|
GenerateCredentials() (string, string, error)
|
|
|
|
}
|
|
|
|
|
2022-06-16 08:14:40 +00:00
|
|
|
type spConfig struct {
|
2022-06-10 11:51:19 +00:00
|
|
|
Host string `validate:"required,url"`
|
|
|
|
Username string `validate:"required"`
|
|
|
|
Password string `validate:"required"`
|
|
|
|
Version string
|
|
|
|
Name string
|
|
|
|
}
|