Documentation ¶
Index ¶
- func IsSecretField(fieldName string) bool
- type Service
- func (s *Service) Delete(ctx context.Context, provider string) error
- func (s *Service) GetForProvider(ctx context.Context, provider string) (*models.SSOSettings, error)
- func (s *Service) GetForProviderWithRedactedSecrets(ctx context.Context, provider string) (*models.SSOSettings, error)
- func (s *Service) List(ctx context.Context) ([]*models.SSOSettings, error)
- func (s *Service) ListWithRedactedSecrets(ctx context.Context) ([]*models.SSOSettings, error)
- func (s *Service) Patch(ctx context.Context, provider string, data map[string]any) error
- func (s *Service) RegisterFallbackStrategy(providerRegex string, strategy ssosettings.FallbackStrategy)
- func (s *Service) RegisterReloadable(provider string, reloadable ssosettings.Reloadable)
- func (s *Service) Reload(ctx context.Context, provider string)
- func (s *Service) Run(ctx context.Context) error
- func (s *Service) Upsert(ctx context.Context, settings *models.SSOSettings, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSecretField ¶
IsSecretField returns true if the SSO settings field provided is a secret
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func ProvideService ¶
func ProvideService(cfg *setting.Cfg, sqlStore db.DB, ac ac.AccessControl, routeRegister routing.RouteRegister, features featuremgmt.FeatureToggles, secrets secrets.Service, usageStats usagestats.Service, registerer prometheus.Registerer, settingsProvider setting.Provider, licensing licensing.Licensing) *Service
func (*Service) GetForProvider ¶
func (*Service) GetForProviderWithRedactedSecrets ¶
func (*Service) ListWithRedactedSecrets ¶
func (*Service) RegisterFallbackStrategy ¶
func (s *Service) RegisterFallbackStrategy(providerRegex string, strategy ssosettings.FallbackStrategy)
func (*Service) RegisterReloadable ¶
func (s *Service) RegisterReloadable(provider string, reloadable ssosettings.Reloadable)
Click to show internal directories.
Click to hide internal directories.