parser

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filePath string) ([]byte, error)

Load loads file asset into byte array

Assets from given directory are added to the final binary through go-bindata code generation

func Parse

func Parse(source []byte) (runtime.Object, error)

Parse takes byte array as a source and turns it into runtime.Object

func ParseParameters

func ParseParameters(tpl []byte) ([]openshiftApi.Parameter, error)

ParseParameters parses parameters defined in the template

func ProcessTemplate

func ProcessTemplate(templatePath string, variables map[string]string) ([]byte, error)

ProcessTemplate applies variables defined in the passed map to the

func ProcessTemplateUsingEnvVars

func ProcessTemplateUsingEnvVars(templatePath string) ([]byte, error)

ProcessTemplateUsingEnvVars takes template path, loads its content and substitutes variables by using those which are defined as environment variables. Returns processed template as byte array

Types

type DecodeFunc

type DecodeFunc func(data []byte, defaults *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error)

DecodeFunc is a function type matching Decoder function from k8s runtime apimachinery.

func Decoder

func Decoder() (DecodeFunc, error)

Decoder registers required schemas containing objects to be deserialize from YAML and constructs decode function to be applied on the source YAML

Jump to

Keyboard shortcuts

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