generate

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(config BuildConfig) error

func BuildFile added in v1.1.1

func BuildFile(cfg BuildConfig) error

func ExecuteTemplates

func ExecuteTemplates(file string, values interface{}) (error, string)

Reads a YAML document from the values_in stream, uses it as values for the tpl_files templates and writes the executed templates to the out stream.

func Ignore

func Ignore(v interface{}) string

func Text added in v1.1.1

func Text(v interface{}) string

Types

type BuildConfig

type BuildConfig struct {
	Filename  string
	Template  Template
	Templates templates.Template
}

type Chart added in v1.1.0

type Chart struct {
	Name        string
	Description string
	Version     string
	ApiVersion  string
	AppVersion  string
}

type Deployment added in v1.1.0

type Deployment struct {
	Metadata     Metadata
	Replicas     int
	Image        Image
	Ports        []Port
	Resources    interface{}
	NodeSelector interface{}
	Affinity     interface{}
	Tolerations  interface{}
}

type Image added in v1.1.0

type Image struct {
	Repository string
	Tag        string
	PullPolicy string
}

type Ingress added in v1.1.0

type Ingress struct {
	Enable bool
	Domain string
}

type Metadata added in v1.1.1

type Metadata struct {
	Name   string
	Labels map[string]string
}

type Port added in v1.1.1

type Port struct {
	Name     string
	Port     int
	Protocol string
}

type Project added in v1.1.0

type Project struct {
	Chart      Chart
	Deployment []Deployment
	Service    []Service
	Ingress    []Ingress
}

func (*Project) Init added in v1.1.0

func (p *Project) Init() error

type Service added in v1.1.0

type Service struct {
	Metadata Metadata
	Type     string
	Ports    []Port
	Selector map[string]string
}

type Template added in v1.1.1

type Template struct {
	Filename string
	Path     string
	Output   string
	Values   Project
	Template string
}

Jump to

Keyboard shortcuts

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