system

package
v0.0.0-...-8aeb8a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Authorization string `json:"authorization"`
	SSOProvider   string `json:"sso_provider"`
	//SSOAuthLink                 string `json:"sso_auth_link"`
	Users                       bool   `json:"users"`
	SMTP                        bool   `json:"smtp"`
	SelfHosted                  bool   `json:"selfhosted"`
	SupportWidget               bool   `json:"support_widget"`
	DefaultS3Bucket             bool   `json:"default_s3_bucket"`
	SupportTrackingDomains      bool   `json:"support_tracking_domains"`
	TelemetryUsageDisabled      bool   `json:"telemetry_usage_disabled"`
	DockerHubID                 string `json:"docker_hub_id"`
	OnlyAdminCanChangeUserEmail bool   `json:"only_admin_can_change_user_email"`
	ServerPublicUrl             string `json:"server_public_url"`
	PluginScript                string `json:"plugin_script"`
	Tag                         string `json:"tag"`
	BuiltAt                     string `json:"built_at"`
}

Configuration is used for system endpoint in Configurator and for Server redirect when configured provides current authorization configuration and amount of registered users

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a reloadable service for keeping system configuration

func NewService

func NewService(url string) *Service

NewService returns configured Service and call resources.Watcher()

func (*Service) IsConfigured

func (s *Service) IsConfigured() bool

func (*Service) ShouldBeRedirected

func (s *Service) ShouldBeRedirected() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL