warden

package
v0.0.0-...-e5cea4b Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValidationFailed = xerrors.New("validation failed")
)

Functions

func DefaultPreloadModules

func DefaultPreloadModules() []wlua.Module

Types

type Options

type Options struct {
	Libs        []wlua.Module
	Modules     []wlua.Module
	UserModules []wlua.UserModule
	Script      string
}

func DefaultOptions

func DefaultOptions() *Options

DefaultOptions returns the default options used when creating a Warden instance with New.

type Warden

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

func New

func New(opts ...*Options) (*Warden, error)

New creates a new Warden instance.

func (*Warden) Close

func (w *Warden) Close()

func (*Warden) ValidatePlan

func (w *Warden) ValidatePlan(file afero.File) ([]string, error)

ValidatePlan checks the validity of the specified plan with the configured scripts.

Directories

Path Synopsis
lua

Jump to

Keyboard shortcuts

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