content

package
v0.0.0-...-71c6e05 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry interface {
	// contains filtered or unexported methods
}

Entry is an interface for the content. D'oh!

type ListStore

type ListStore []Entry

ListStore stores a list of parameter descriptions

func NewListStore

func NewListStore() (s ListStore)

NewListStore creates a new store.

func (*ListStore) GenerateOutput

func (s *ListStore) GenerateOutput(stamp *stamp.Stamp, argStore *args.Store) (err error)

GenerateOutput generates the output for the current content store into the provided stamp

func (*ListStore) InheritFrom

func (s *ListStore) InheritFrom(other ListStore)

InheritFrom copies over entries from another Store.

func (*ListStore) IsValid

func (s *ListStore) IsValid(paramStore *param.Store, canvasStore *canvas.Store) (err error)

IsValid validates whether all content entries are valid. This means, e.g., that the already contain all required values. Thus this should only be called after the store was resolved.

func (*ListStore) Resolve

func (s *ListStore) Resolve(ps preset.Store) (err error)

Resolve resolves preset requirements for all entries in the ContentStore

func (*ListStore) UnmarshalYAML

func (s *ListStore) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

UnmarshalYAML unmarshals a Content List Store

type MapStore

type MapStore map[string]Entry

MapStore stores a list of parameter descriptions type MapStore map[string]Entry

func NewMapStore

func NewMapStore() (s MapStore)

NewMapStore creates a new store.

func (*MapStore) InheritFrom

func (s *MapStore) InheritFrom(other MapStore) (err error)

InheritFrom inherits entries from another param store. An error is returned in case an entry exists in both stores.

func (*MapStore) IsValid

func (s *MapStore) IsValid(paramStore *param.Store, canvasStore *canvas.Store) (err error)

IsValid validates whether all content entries are valid. This means, e.g., that the already contain all required values. Thus this should only be called after the store was resolved.

func (*MapStore) Resolve

func (s *MapStore) Resolve(ps preset.Store) (err error)

Resolve resolves preset requirements for all entries in the ContentStore

func (*MapStore) UnmarshalYAML

func (s *MapStore) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

UnmarshalYAML unmarshals a Content Store

Jump to

Keyboard shortcuts

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