Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Ctl Global instance of the config controller Ctl = NewController() )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // UserConfigs get the user scope configurations UserConfigs(ctx context.Context) (map[string]*models.Value, error) // UpdateUserConfigs update the user scope configurations UpdateUserConfigs(ctx context.Context, conf map[string]interface{}) error // AllConfigs get all configurations, used by internal, should include the system config items AllConfigs(ctx context.Context) (map[string]interface{}, error) // ConvertForGet - delete sensitive attrs and add editable field to every attr ConvertForGet(ctx context.Context, cfg map[string]interface{}, internal bool) (map[string]*models.Value, error) // OverwriteConfig overwrite config in the database and set all configure read only when CONFIG_OVERWRITE_JSON is provided OverwriteConfig(ctx context.Context) error }
Controller define operations related to configures
type ScanAllPolicy ¶
type ScanAllPolicy struct { Type string `json:"type"` Param map[string]interface{} `json:"parameter,omitempty"` }
ScanAllPolicy is represent the json request and object for scan all policy Only for migrating from the legacy schedule.
Click to show internal directories.
Click to hide internal directories.