allow

package
v0.21.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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"`
	// 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 NewReadOnly added in v0.20.22

func NewReadOnly(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(filePath string) (Item, error)

func (*List) GetByName added in v0.20.23

func (al *List) GetByName(filePath string) (Item, error)

func (*List) Load

func (al *List) Load() ([]Item, error)

func (*List) Set

func (al *List) Set(vars []byte, query string, namespace string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL