Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type AppInfoResponse ¶
type AppInfoResponse struct { UserInterfaceConf GlobalConf VersionConf Login LoginConf `json:"login"` Remediation *RemediationConf `json:"remediation,omitempty"` DefaultColorTheme colortheme.Response `json:"default_color_theme"` Maintenance bool `json:"maintenance"` SerialName string `json:"serial_name"` }
type GlobalConf ¶
type JobConfigType ¶
type LoginConf ¶
type LoginConf struct { BasicConfig LoginConfigMethod `json:"basic,omitempty"` CasConfig LoginConfigMethod `json:"casconfig,omitempty"` LdapConfig LoginConfigMethod `json:"ldapconfig,omitempty"` SamlConfig LoginConfigMethod `json:"saml2config,omitempty"` OAuth2Config Oauth2LoginConfigMethod `json:"oauth2config,omitempty"` }
type LoginConfigMethod ¶
type Oauth2LoginConfigMethod ¶
type PopupTimeout ¶
type PopupTimeout struct { Info *datetime.DurationWithUnit `json:"info,omitempty" bson:"info,omitempty"` Error *datetime.DurationWithUnit `json:"error,omitempty" bson:"error,omitempty"` }
type RemediationConf ¶
type RemediationConf struct {
JobConfigTypes []JobConfigType `json:"job_config_types"`
}
type Store ¶
type Store interface { RetrieveLoginConfig() LoginConf RetrieveUserInterfaceConfig(ctx context.Context) (UserInterfaceConf, error) RetrieveVersionConfig(ctx context.Context) (VersionConf, error) RetrieveGlobalConfig(ctx context.Context) (GlobalConf, error) RetrieveRemediationConfig(ctx context.Context) (RemediationConf, error) UpdateUserInterfaceConfig(ctx context.Context, conf *UserInterfaceConf) error RetrieveMaintenanceState(ctx context.Context) (bool, error) RetrieveDefaultColorTheme(ctx context.Context, id string) (colortheme.Response, error) RetrieveSerialName(ctx context.Context) (string, error) }
type UserInterfaceConf ¶
type UserInterfaceConf struct { AppTitle string `json:"app_title,omitempty" bson:"app_title,omitempty"` LoginPageDescription string `json:"login_page_description,omitempty" bson:"login_page_description,omitempty"` Logo string `json:"logo,omitempty" bson:"logo,omitempty"` Language string `json:"language,omitempty" bson:"language,omitempty" binding:"oneoforempty=fr en"` PopupTimeout *PopupTimeout `json:"popup_timeout,omitempty" bson:"popup_timeout,omitempty"` AllowChangeSeverityToInfo bool `json:"allow_change_severity_to_info" bson:"allow_change_severity_to_info"` MaxMatchedItems int64 `json:"max_matched_items" bson:"max_matched_items" binding:"gt=0"` CheckCountRequestTimeout int64 `json:"check_count_request_timeout" bson:"check_count_request_timeout" binding:"gt=0"` ShowHeaderOnKioskMode bool `json:"show_header_on_kiosk_mode" bson:"show_header_on_kiosk_mode"` RequiredInstructionApprove bool `json:"required_instruction_approve" bson:"required_instruction_approve"` DisabledTransitions bool `json:"disabled_transitions" bson:"disabled_transitions"` AutoSuggestPbehaviorName bool `json:"auto_suggest_pbehavior_name" bson:"auto_suggest_pbehavior_name"` DefaultColorTheme string `json:"default_color_theme" bson:"default_color_theme"` }
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.