-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(obcluster): added handler for listing obcluster parameters
- Loading branch information
Showing
4 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
Copyright (c) 2024 OceanBase | ||
ob-operator is licensed under Mulan PSL v2. | ||
You can use this software according to the terms and conditions of the Mulan PSL v2. | ||
You may obtain a copy of Mulan PSL v2 at: | ||
http://license.coscl.org.cn/MulanPSL2 | ||
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||
See the Mulan PSL v2 for more details. | ||
*/ | ||
|
||
package obcluster | ||
|
||
// ParameterItem defines the parameter item returned by 'show parameters' command | ||
type ParameterItem struct { | ||
Zone string `json:"zone"` | ||
SvrType string `json:"svrType" db:"svr_type"` | ||
SvrIP string `json:"svrIP" db:"svr_ip"` | ||
SvrPort string `json:"svrPort" db:"svr_port"` | ||
Name string `json:"name"` | ||
DataType string `json:"dataType" db:"data_type"` | ||
Value string `json:"value"` | ||
Info string `json:"info"` | ||
Section string `json:"section"` | ||
Scope string `json:"scope"` | ||
Source string `json:"source"` | ||
EditLevel string `json:"editLevel" db:"edit_level"` | ||
DefaultValue string `json:"defaultValue" db:"default_value"` | ||
IsDefault bool `json:"isDefault" db:"isdefault"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters