mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-05 05:36:50 +08:00
add comments to exported structs and methods
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
|||||||
// database, server, etc.
|
// database, server, etc.
|
||||||
type SystemConfig map[string]string
|
type SystemConfig map[string]string
|
||||||
|
|
||||||
|
// NodePoolOption extends ParameterOption to support resourceRequirements
|
||||||
type NodePoolOption struct {
|
type NodePoolOption struct {
|
||||||
ParameterOption
|
ParameterOption
|
||||||
Resources corev1.ResourceRequirements
|
Resources corev1.ResourceRequirements
|
||||||
@@ -85,6 +86,7 @@ func (s SystemConfig) NodePoolOptions() (options []*NodePoolOption, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NodePoolOptionByValue returns the nodePoolOption based on a given value
|
||||||
func (s SystemConfig) NodePoolOptionByValue(value string) (option *NodePoolOption, err error) {
|
func (s SystemConfig) NodePoolOptionByValue(value string) (option *NodePoolOption, err error) {
|
||||||
options, err := s.NodePoolOptions()
|
options, err := s.NodePoolOptions()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user