eval

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package eval encapsulates the manner in which components and parameters are evaluated for qbec.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Components

func Components(components []model.Component, ctx Context) ([]model.K8sLocalObject, error)

Components evaluates the specified components using the specific runtime parameters file and returns the result.

func Params

func Params(file string, ctx Context) (map[string]interface{}, error)

Params evaluates the supplied parameters file in the supplied VM and returns it as a JSON object.

Types

type Context

type Context struct {
	App     string // the application for which the evaluation is done
	Env     string // the environment for which the evaluation is done
	VM      *vm.VM // the base VM to use for eval
	Verbose bool   // show generated code
}

Context is the evaluation context

Source Files

  • eval.go
  • object-extract.go

Jump to

Keyboard shortcuts

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