Documentation
¶
Index ¶
- type ISelector
- func AssetSelector(ghClient *api.RESTClient, repo string, releaseId int, name string, ...) (ISelector, error)
- func BinarySelector(downloadPath string, name string, matcher string, interactive bool) (ISelector, error)
- func ReleaseSelector(ghClient *api.RESTClient, repo string, version string, interactive bool) (ISelector, error)
- type InteractiveSelector
- type PropertyPair
- type Selector
- type SelectorItem
- func (i SelectorItem) GetProp(key string) interface{}
- func (i SelectorItem) GetPropBool(key string) bool
- func (i SelectorItem) GetPropFs(key string) fs.FS
- func (i SelectorItem) GetPropInt(key string) int
- func (i SelectorItem) GetPropStr(key string) string
- func (i SelectorItem) SetProp(key string, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISelector ¶
type ISelector interface {
SelectItems() ([]*SelectorItem, error)
}
func AssetSelector ¶
func BinarySelector ¶
func ReleaseSelector ¶
type InteractiveSelector ¶
type InteractiveSelector struct { Kind string LastSelected int Items []*SelectorItem Prompt string Multiple bool }
func (*InteractiveSelector) SelectItems ¶
func (s *InteractiveSelector) SelectItems() ([]*SelectorItem, error)
type PropertyPair ¶
type PropertyPair struct { Key string Value interface{} }
func MakeProp ¶
func MakeProp(key string, val interface{}) PropertyPair
type Selector ¶
type Selector struct { Kind string Items []*SelectorItem Name string Matcher string Multiple bool }
func (*Selector) SelectItems ¶
func (s *Selector) SelectItems() ([]*SelectorItem, error)
type SelectorItem ¶
selection item with collection of IProperty properties
func MakeSelectorItem ¶
func MakeSelectorItem(name string, selected bool, properties ...PropertyPair) *SelectorItem
func (SelectorItem) GetProp ¶
func (i SelectorItem) GetProp(key string) interface{}
func (SelectorItem) GetPropBool ¶
func (i SelectorItem) GetPropBool(key string) bool
func (SelectorItem) GetPropInt ¶
func (i SelectorItem) GetPropInt(key string) int
func (SelectorItem) GetPropStr ¶
func (i SelectorItem) GetPropStr(key string) string
func (SelectorItem) SetProp ¶
func (i SelectorItem) SetProp(key string, value interface{})
Click to show internal directories.
Click to hide internal directories.