core

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExplorePaths added in v0.0.3

func ExplorePaths(rootPath, _type, format, regexPattern string) ([]string, error)

ExplorePaths explores the given root path for the type and format

Types

type Evaluator added in v0.0.2

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

Evaluator contains information on how to evaluate a Resource

func NewEvaluator added in v0.0.2

func NewEvaluator(framework *model.Framework, evaluate model.Evaluate) (*Evaluator, error)

NewEvaluator initializes Evaluator

func (*Evaluator) Evaluate added in v0.0.2

func (e *Evaluator) Evaluate(resourceData *model.Data) (bool, error)

Evaluate evaluates snippet for a Resource data

type Loader added in v0.0.2

type Loader struct {
}

Loader is a loader management

func (*Loader) LoadData added in v0.0.3

func (l *Loader) LoadData(path, _type, format string) (*model.Data, error)

LoadData loads data based on the specified path, type, and format

func (*Loader) LoadDefinition added in v0.0.2

func (l *Loader) LoadDefinition(rcp *recipe.Definition) (*model.Definition, error)

LoadDefinition loads definition based on the specified recipe

func (*Loader) LoadFramework added in v0.0.2

func (l *Loader) LoadFramework(rcp *recipe.Framework) (*model.Framework, error)

LoadFramework loads framework based on the specified recipe

func (*Loader) LoadProcedure added in v0.0.2

func (l *Loader) LoadProcedure(rcp *recipe.Procedure) (*model.Procedure, error)

LoadProcedure loads procedure based on the specified recipe

func (*Loader) LoadSchema added in v0.0.2

func (l *Loader) LoadSchema(rcp *recipe.Schema) (*model.Schema, error)

LoadSchema loads schema based on the specified recipe

type Pipeline

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

Pipeline defines how a pipeline is executed

func NewPipeline

func NewPipeline(
	rcp *recipe.Recipe,
	evaluate model.Evaluate,
	newProgress model.NewProgress,
) (*Pipeline, error)

NewPipeline initializes pipeline process

func (*Pipeline) Execute

func (p *Pipeline) Execute() error

Execute executes pipeline process

type Validator added in v0.0.2

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

Validator is a validator for Resource against a Schema

func NewValidator added in v0.0.2

func NewValidator(framework *model.Framework) (*Validator, error)

NewValidator initializes Validator

func (*Validator) Validate added in v0.0.2

func (v *Validator) Validate(resourceData *model.Data) (bool, error)

Validate validates a Resource data against all schemas

Jump to

Keyboard shortcuts

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