Documentation ¶
Index ¶
- type Entry
- type Store
- func (s *Store) Describe(verbose bool) (result string)
- func (s *Store) Get(id string) (e Entry, exists bool)
- func (s *Store) GetExampleArguments() (result []string)
- func (s *Store) GetGroupsSortedByRank() (result []string)
- func (s *Store) GetKeysForGroupSortedByRank(group string) (result []string)
- func (s *Store) GetKeysSortedByName() (result []string)
- func (s *Store) InheritFrom(other *Store) (err error)
- func (s *Store) IsValid() (err error)
- func (s *Store) UnmarshalYAML(unmarshal func(interface{}) error) (err error)
- func (s *Store) ValidateAndProcessArgs(as *args.Store) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry interface { ID() string ArgStoreIDs() []string Type() string Example() string Description() string AcceptedValues() []string Group() string // contains filtered or unexported methods }
Entry defines the interface for all param entries
type Store ¶
Store stores a list of parameter descriptions
func (*Store) Describe ¶
Describe returns a short textual description of all parameters contained in this store. It returns the description as a multi-line string.
func (*Store) GetExampleArguments ¶
GetExampleArguments returns an array containing all keys and example values for all parameters. The result can be passed to the ArgStore.
func (*Store) GetGroupsSortedByRank ¶
GetGroupsSortedByRank returns the list of groups sorted by rank
func (*Store) GetKeysForGroupSortedByRank ¶
GetKeysForGroupSortedByRank returns the list of key IDs contained in the listed group.
func (*Store) GetKeysSortedByName ¶
GetKeysSortedByName returns the list of keys contained in this store as list sorted by rank.
func (*Store) InheritFrom ¶
InheritFrom inherits entries from another param store. An error is returned in case an entry exists in both stores.
func (*Store) UnmarshalYAML ¶
UnmarshalYAML unmarshals a Parameter Store