Documentation
¶
Overview ¶
Code generated by "gonum -types=KindEnum -output=kind_enum.go"; DO NOT EDIT. See https://github.com/steinfletcher/gonum
Index ¶
- Variables
- func IsValidKind(k Kind) bool
- func KindNames() []string
- func NewProgress(out io.Writer, size int, description string, opts ...progressbar.Option) (bar *progressbar.ProgressBar)
- func NewQuery(opts ...QueryOption) string
- type Client
- type Kind
- type KindEnum
- type PluginSearchResult
- type PluginSearchResults
- type Query
- type QueryOption
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoValidTopics = errors.New("topics did not contain a valid topic matching 'devctl-<PLUGIN_KIND>-plugin'") ErrInvalidTopic = errors.New("failed to parse string as a plugin kind that is not known") )
View Source
var SDK = Kind{/* contains filtered or unexported fields */}
Enum instances
Functions ¶
func IsValidKind ¶
func KindNames ¶
func KindNames() []string
KindNames returns the displays values of all enum instances as a slice
func NewProgress ¶
func NewQuery ¶
func NewQuery(opts ...QueryOption) string
Types ¶
type Client ¶
type Client interface { SearchOpts(ctx context.Context, option ...QueryOption) (res PluginSearchResults, err error) Search(ctx context.Context, query string) (res PluginSearchResults, err error) }
type Kind ¶
type Kind struct {
// contains filtered or unexported fields
}
Kind is the enum that instances should be created from
func ParseKindFromRepo ¶
func ParseKindFromRepo(repo github.Repository) (k Kind, err error)
func (Kind) Description ¶
Description returns the enum description if present. If no description is defined an empty string is returned
func (Kind) MarshalJSON ¶
MarshalJSON provides json serialization support by implementing the Marshaler interface
func (Kind) String ¶
String returns the enum display value and is an alias of Name to implement the Stringer interface
func (*Kind) UnmarshalJSON ¶
UnmarshalJSON provides json deserialization support by implementing the Unmarshaler interface
type KindEnum ¶
type KindEnum struct {
SDK string `enum:"SDK,installs updates and manages different sdks on your system"`
}
type PluginSearchResult ¶
type PluginSearchResults ¶
type PluginSearchResults []PluginSearchResult
type QueryOption ¶
func WithKind ¶
func WithKind(kind Kind) QueryOption
func WithName ¶
func WithName(name string) QueryOption
Click to show internal directories.
Click to hide internal directories.