loader

package
v0.544.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 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) (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.

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