config

package
v0.0.0-...-37076e9 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

type Binding struct {
	Name string
}

Binding specifies the name of a supported binding

func GetBinding

func GetBinding(name string) Binding

GetBinding matches the input with one of the supported bindings

func (Binding) ToSelector

func (b Binding) ToSelector() genspec.BindSelector

ToSelector is

type GenConfig

type GenConfig struct {
	Input    string
	Output   string
	Language Language
	Binding  Binding
}

GenConfig is the configuration for generating artifacts

func GetConfig

func GetConfig(i string, o string, lang string, bind string) GenConfig

GetConfig takes the names of language and binding and returns the configuration for generating artifacts

type Language

type Language struct {
	Name string
}

Language specifies the name and template paths of a supported languages

func GetLanguage

func GetLanguage(name string) Language

GetLanguage matches the input with one of the supported languages

Jump to

Keyboard shortcuts

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