templating

package
v0.0.0-...-abeb386 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// {{.ProductName}}
	ProductName string

	// {{.ProductVersion}}
	ProductVersion string

	// {{.VersionInfo.Version}} is a string
	// {{.VersionInfo.Branch}} is a string
	// {{.VersionInfo.Revision}} is a string
	VersionInfo git.ProjectInfo

	// {{.Dist.Type}} is "sls" or "bin" or "rpm"
	// {{.Dist}} is a fully customizable map
	Dist params.DistInfo

	// {{.Publish.GroupID}} is a string
	// {{.Publish.Metadata}} is a map of string to string
	// {{.Publish.Tags}} is a slice of strings
	Publish params.Publish
}

func ConvertSpec

func ConvertSpec(buildSpec params.ProductBuildSpec, distCfg params.Dist) Config

Jump to

Keyboard shortcuts

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