loader

package
v0.632.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

package loader loads a source file into a sysl Module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindRootFromSyslModule

func FindRootFromSyslModule(modulePath string, fs afero.Fs, rootMarker string) (string, error)

func LoadSyslModule

func LoadSyslModule(root, filename string, fs afero.Fs, logger *logrus.Logger) (*sysl.Module, string, error)

func LoadSyslModuleFromPb added in v0.374.0

func LoadSyslModuleFromPb(pbPath string, fs afero.Fs) (*sysl.Module, error)

LoadSyslPb decodes a Sysl module from a protobuf message.

func LoadSyslModuleWithSettings added in v0.632.0

func LoadSyslModuleWithSettings(root,
	filename string,
	fs afero.Fs,
	logger *logrus.Logger,
	settings parse.Settings,
) (*sysl.Module, string, error)

Types

type ProjectConfiguration

type ProjectConfiguration struct {
	Module, Root string
	RootIsFound  bool
	Fs           afero.Fs
}

func NewProjectConfiguration

func NewProjectConfiguration() *ProjectConfiguration

func (*ProjectConfiguration) ConfigureProject

func (pc *ProjectConfiguration) ConfigureProject(root, module string, fs afero.Fs, logger *logrus.Logger) error

Jump to

Keyboard shortcuts

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