Documentation ¶ Index ¶ type Config type Frag type Item type List func New(conf Config, fs afero.Fs) (*List, error) func (al *List) FragmentFetcher(namespace string) func(name string) (string, error) func (al *List) Get(name string) (Item, error) func (al *List) Load() ([]Item, error) func (al *List) Set(vars []byte, query string, md Metadata, namespace string) error type Metadata Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Log *log.Logger } type Frag ¶ type Frag struct { Name string Value string } type Item ¶ type Item struct { Namespace string `yaml:",omitempty"` Name string Comment string `yaml:",omitempty"` Query string Vars string `yaml:",omitempty"` Metadata Metadata `yaml:",inline,omitempty"` // contains filtered or unexported fields } type List ¶ type List struct { // contains filtered or unexported fields } func New ¶ func New(conf Config, fs afero.Fs) (*List, error) func (*List) FragmentFetcher ¶ func (al *List) FragmentFetcher(namespace string) func(name string) (string, error) func (*List) Get ¶ added in v0.20.5 func (al *List) Get(name string) (Item, error) func (*List) Load ¶ func (al *List) Load() ([]Item, error) func (*List) Set ¶ func (al *List) Set(vars []byte, query string, md Metadata, namespace string) error type Metadata ¶ added in v0.16.19 type Metadata struct { Order struct { Var string `yaml:"var,omitempty"` Values []string `yaml:"values,omitempty"` } `yaml:",omitempty"` } Source Files ¶ View all Source files allow.go gql.go util.go Click to show internal directories. Click to hide internal directories.