Documentation ¶
Index ¶
- Constants
- func NewApi(store Store, config libsecurity.Config) *api
- type AppInfoResponse
- type CanopsisVersionConf
- type IntervalUnit
- type LogInProvider
- type LoginConfig
- type LoginConfigResponse
- type LoginServiceConf
- type PopupTimeout
- type RemediationConf
- type Store
- type TimezoneConf
- type UserInterfaceConf
Constants ¶
View Source
const ( Casconfig = "casconfig" Ldapconfig = "ldapconfig" CrecordName = "crecord_name" )
View Source
const ( ObjectCollection = "object" UserInterfaceDocumentID = "user_interface" CanopsisVersionDocumentId = "canopsis_version" )
Variables ¶
This section is empty.
Functions ¶
func NewApi ¶
func NewApi( store Store, config libsecurity.Config, ) *api
Types ¶
type AppInfoResponse ¶
type AppInfoResponse struct { UserInterfaceConf TimezoneConf CanopsisVersionConf RemediationConf }
type CanopsisVersionConf ¶
type IntervalUnit ¶
type LogInProvider ¶
type LogInProvider struct { }
type LoginConfig ¶
type LoginConfigResponse ¶
type LoginConfigResponse struct { LoginConfig LoginConfig `json:"login_config"` UserInterfaceConf UserInterfaceConf `json:"user_interface"` CanopsisVersionConf }
type LoginServiceConf ¶
type PopupTimeout ¶
type PopupTimeout struct { Info *IntervalUnit `json:"info,omitempty" bson:"info,omitempty"` Error *IntervalUnit `json:"error,omitempty" bson:"error,omitempty"` }
type RemediationConf ¶
type RemediationConf struct {
JobExecutorFetchTimeoutSeconds int64 `json:"jobexecutorfetchtimeoutseconds,omitempty" bson:"jobexecutorfetchtimeoutseconds"`
}
type Store ¶
type Store interface { RetrieveObjectConfig() ([]LoginServiceConf, error) RetrieveUserInterfaceConfig() (UserInterfaceConf, error) RetrieveCanopsisVersionConfig() (CanopsisVersionConf, error) RetrieveTimezoneConf() (TimezoneConf, error) RetrieveRemediationConf() (RemediationConf, error) UpdateUserInterfaceConfig(*UserInterfaceConf) error DeleteUserInterfaceConfig() error }
type TimezoneConf ¶
type TimezoneConf struct {
Timezone string `json:"timezone,omitempty" bson:"timezone"`
}
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"` CheckCountRequestTimeout int64 `json:"check_count_request_timeout" bson:"check_count_request_timeout"` }
Click to show internal directories.
Click to hide internal directories.