allow

package
v3.0.0-...-ee9ecd6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownGraphQLQuery = errors.New("unknown graphql query")

Functions

This section is empty.

Types

type FS

type FS interface {
	Get(path string) (data []byte, err error)
	Put(path string, data []byte) (err error)
	Exists(path string) (exists bool, err error)
}

type Fragment

type Fragment struct {
	Name  string
	Value []byte
}

type Item

type Item struct {
	Namespace  string
	Operation  string
	Name       string
	ActionJSON map[string]json.RawMessage
	Query      []byte
	Fragments  []Fragment
}

type List

type List struct {
	// contains filtered or unexported fields
}

func New

func New(log *_log.Logger, fs FS, readOnly bool) (al *List, err error)

func (*List) GetByName

func (al *List) GetByName(name string, useCache bool) (item Item, err error)

func (*List) Set

func (al *List) Set(item Item) error

Jump to

Keyboard shortcuts

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