workspace

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortFilesInLibrary added in v0.13.0

func SortFilesInLibrary(files []*FileInLibrary)

Types

type DataValuesPreProcessing added in v0.15.0

type DataValuesPreProcessing struct {
	IgnoreUnknownComments bool // TODO remove?
	// contains filtered or unexported fields
}

func (DataValuesPreProcessing) Apply added in v0.15.0

func (o DataValuesPreProcessing) Apply() (interface{}, error)

type EvalExport added in v0.23.0

type EvalExport struct {
	Path    string
	Symbols starlark.StringDict
}

type EvalResult added in v0.15.0

type EvalResult struct {
	Files   []files.OutputFile
	DocSet  *yamlmeta.DocumentSet
	Exports []EvalExport
}

type EvalValuesAst added in v0.15.0

type EvalValuesAst interface{}

type FileInLibrary added in v0.5.0

type FileInLibrary struct {
	File    *files.File
	Library *Library
	// contains filtered or unexported fields
}

func (*FileInLibrary) RelativePath added in v0.15.0

func (fileInLib *FileInLibrary) RelativePath() string

type Library

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

func NewRootLibrary

func NewRootLibrary(fs []*files.File) *Library

func (*Library) CreateLibrary

func (l *Library) CreateLibrary(name string) *Library

func (*Library) FindAccessibleLibrary

func (l *Library) FindAccessibleLibrary(path string) (*Library, error)

func (*Library) FindFile

func (l *Library) FindFile(path string) (FileInLibrary, error)

func (*Library) FindLibrary

func (l *Library) FindLibrary(name string) (*Library, bool)

func (*Library) ListAccessibleFiles

func (l *Library) ListAccessibleFiles() []*FileInLibrary

func (*Library) Print

func (l *Library) Print(out io.Writer)

func (*Library) PrintStr added in v0.24.0

func (l *Library) PrintStr() string

type LibraryExecutionContext added in v0.24.0

type LibraryExecutionContext struct {
	Current *Library
	Root    *Library
}

type LibraryExecutionFactory added in v0.23.0

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

func NewLibraryExecutionFactory added in v0.23.0

func NewLibraryExecutionFactory(ui files.UI, templateLoaderOpts TemplateLoaderOpts) *LibraryExecutionFactory

func (*LibraryExecutionFactory) New added in v0.23.0

type LibraryLoader added in v0.15.0

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

func NewLibraryLoader added in v0.15.0

func NewLibraryLoader(libraryCtx LibraryExecutionContext,
	ui files.UI, templateLoaderOpts TemplateLoaderOpts,
	libraryExecFactory *LibraryExecutionFactory) *LibraryLoader

func (*LibraryLoader) Eval added in v0.15.0

func (ll *LibraryLoader) Eval(values EvalValuesAst) (*EvalResult, error)

func (*LibraryLoader) Values added in v0.15.0

func (ll *LibraryLoader) Values(valuesAsts []EvalValuesAst) (EvalValuesAst, error)

type LibraryModule added in v0.23.0

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

func NewLibraryModule added in v0.23.0

func NewLibraryModule(libraryCtx LibraryExecutionContext,
	libraryExecutionFactory *LibraryExecutionFactory) LibraryModule

func (LibraryModule) AsModule added in v0.23.0

func (b LibraryModule) AsModule() starlark.StringDict

func (LibraryModule) Get added in v0.23.0

func (l LibraryModule) Get(thread *starlark.Thread, f *starlark.Builtin,
	args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

type OverlayPostProcessing added in v0.15.0

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

func (OverlayPostProcessing) Apply added in v0.15.0

type TemplateLoader

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

func NewTemplateLoader

func NewTemplateLoader(values interface{}, ui files.UI, opts TemplateLoaderOpts,
	libraryExecFactory *LibraryExecutionFactory) *TemplateLoader

func (*TemplateLoader) EvalStarlark

func (l *TemplateLoader) EvalStarlark(libraryCtx LibraryExecutionContext, file *files.File) (starlark.StringDict, error)

func (*TemplateLoader) EvalText

func (*TemplateLoader) EvalYAML

func (*TemplateLoader) FindCompiledTemplate

func (l *TemplateLoader) FindCompiledTemplate(path string) (*template.CompiledTemplate, error)

func (*TemplateLoader) ListData

func (l *TemplateLoader) ListData(thread *starlark.Thread, f *starlark.Builtin,
	args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func (*TemplateLoader) Load

func (l *TemplateLoader) Load(thread *starlark.Thread, module string) (starlark.StringDict, error)

func (*TemplateLoader) LoadData

func (l *TemplateLoader) LoadData(thread *starlark.Thread, f *starlark.Builtin,
	args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func (*TemplateLoader) ParseYAML added in v0.17.0

func (l *TemplateLoader) ParseYAML(file *files.File) (*yamlmeta.DocumentSet, error)

type TemplateLoaderOpts added in v0.12.0

type TemplateLoaderOpts struct {
	IgnoreUnknownComments bool
	StrictYAML            bool
}

Jump to

Keyboard shortcuts

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