Documentation ¶
Index ¶
- Constants
- func GetManagementConsoleURL(ctx context.Context, pgClient *postgresqlDb.Queries) (string, error)
- func GetManagementConsoleURLandPort(ctx context.Context, pgClient *postgresqlDb.Queries) (string, string, error)
- func InitializeAESSetting(ctx context.Context, pgClient *postgresqlDb.Queries) error
- func SetConsoleIDSetting(ctx context.Context, pgClient *postgresqlDb.Queries) error
- func SetScanResultsDeletionSetting(ctx context.Context, pgClient *postgresqlDb.Queries) error
- type Setting
- type SettingUpdateRequest
- type SettingValue
- type SettingsResponse
Constants ¶
View Source
const ( ConsoleURLSettingKey = "console_url" InactiveNodesDeleteScanResultsKey = "inactive_delete_scan_results" ConsoleIDKey = "console_id" Port443 = "443" Port80 = "80" )
Variables ¶
This section is empty.
Functions ¶
func GetManagementConsoleURL ¶
func InitializeAESSetting ¶
func InitializeAESSetting(ctx context.Context, pgClient *postgresqlDb.Queries) error
func SetConsoleIDSetting ¶
func SetConsoleIDSetting(ctx context.Context, pgClient *postgresqlDb.Queries) error
func SetScanResultsDeletionSetting ¶
func SetScanResultsDeletionSetting(ctx context.Context, pgClient *postgresqlDb.Queries) error
Types ¶
type Setting ¶
type Setting struct { ID int64 `json:"id"` Key string `json:"key"` Value *SettingValue `json:"value"` IsVisibleOnUI bool `json:"is_visible_on_ui"` }
func GetSettingByKey ¶
func (*Setting) Create ¶
func (s *Setting) Create(ctx context.Context, pgClient *postgresqlDb.Queries) (*postgresqlDb.Setting, error)
type SettingUpdateRequest ¶
type SettingValue ¶
type SettingsResponse ¶
type SettingsResponse struct { ID int64 `json:"id" required:"true"` Key string `json:"key" required:"true"` Label string `json:"label" required:"true"` Value interface{} `json:"value" required:"true"` Description string `json:"description" required:"true"` }
func GetVisibleSettings ¶
func GetVisibleSettings(ctx context.Context, pgClient *postgresqlDb.Queries) ([]SettingsResponse, error)
Click to show internal directories.
Click to hide internal directories.