...

Source file src/github.com/redhat-developer/odo/pkg/api/preference.go

Documentation: github.com/redhat-developer/odo/pkg/api

     1  package api
     2  
     3  type PreferenceList struct {
     4  	Items []PreferenceItem `json:"items,omitempty"`
     5  }
     6  
     7  type PreferenceItem struct {
     8  	Name        string      `json:"name"`
     9  	Value       interface{} `json:"value"`       // The value set by the user, this will be nil if the user hasn't set it
    10  	Default     interface{} `json:"default"`     // default value of the preference if the user hasn't set the value
    11  	Type        string      `json:"type"`        // the type of the preference, possible values int, string, bool
    12  	Description string      `json:"description"` // The description of the preference
    13  }
    14  
    15  type PreferenceView struct {
    16  	Preferences []PreferenceItem `json:"preferences,omitempty"`
    17  	Registries  []Registry       `json:"registries,omitempty"`
    18  }
    19  

View as plain text