Versions in this module Expand all Collapse all v0 v0.13.1 Nov 21, 2018 v0.13.0 Sep 20, 2018 Changes in this version + const DefaultAPIVersion + const DefaultKind + var DefaultBuilder = JsonnetParse + func BindFlags(p *Prototype) (fs *pflag.FlagSet, err error) + func ExtractParameters(fs afero.Fs, p *Prototype, flags *pflag.FlagSet) (map[string]string, error) + type Builder func(source string) (*Prototype, error) + type FlagDefinitionError struct + func (e *FlagDefinitionError) Error() string + type Index interface + List func() (Prototypes, error) + SearchNames func(query string, opts SearchOptions) (Prototypes, error) + func NewIndex(prototypes []*Prototype, builder Builder) (Index, error) + type ParamSchema struct + Alias *string + Default *string + Description string + Name string + Type ParamType + func (ps *ParamSchema) Quote(value string) (string, error) + type ParamSchemas []*ParamSchema + func (ps ParamSchemas) PrettyString(prefix string) string + type ParamType string + const Array + const Number + const NumberOrString + const Object + const String + func (pt ParamType) String() string + type Prototype struct + APIVersion string + Kind string + Name string + Params ParamSchemas + Template SnippetSchema + Version string + func JsonnetParse(src string) (*Prototype, error) + func Unmarshal(bytes []byte) (*Prototype, error) + func (s *Prototype) OptionalParams() ParamSchemas + func (s *Prototype) RequiredParams() ParamSchemas + type Prototypes []*Prototype + func (p Prototypes) SortByVersion() + type SearchOptions int + const Prefix + const Substring + const Suffix + type SnippetSchema struct + Description string + JSONBody []string + JsonnetBody []string + Prefix string + ShortDescription string + YAMLBody []string + func (schema *SnippetSchema) AvailableTemplates() (ts []TemplateType) + func (schema *SnippetSchema) Body(t TemplateType) (template []string, err error) + type TemplateType string + const JSON + const Jsonnet + const YAML + func ParseTemplateType(t string) (TemplateType, error) + type ValuesFile struct + func NewValuesFile(src string) *ValuesFile + func ReadValues(r io.Reader) (*ValuesFile, error) + func (vf *ValuesFile) Get(k string) (string, error) + func (vf *ValuesFile) Keys() ([]string, error)