parser

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParsedResourceData

type ParsedResourceData struct {
	Applications      []map[string]interface{}
	Pipelines         []map[string]interface{}
	PipelineTemplates []map[string]interface{}
}

ParsedResourceData contains all the managed ResourceData defined for Floodgate.

type Parser

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

Parser parse files to get resources

func NewJsonnetParser

func NewJsonnetParser(librariesPath ...string) (*Parser, error)

NewJsonnetParser create parser to parse Jsonnet files

func NewParser

func NewParser(fileLoaders ...fl.FileLoader) (*Parser, error)

NewParser create new parser

func NewResourceParser

func NewResourceParser(librariesPath ...string) (*Parser, error)

NewResourceParser create parser to parser JSON, Jsonnet and YAML files

func (*Parser) ParseDirectories

func (p *Parser) ParseDirectories(directories []string) (*ParsedResourceData, error)

ParseDirectories walks through provided directories to parse provided configuration files and catalogs them according to their types.

func (*Parser) RegisterFileLoader

func (p *Parser) RegisterFileLoader(fileLoader fl.FileLoader) error

RegisterFileLoader register new file loaders

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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