template

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateValue

type TemplateValue struct {
	AppRepo   TemplateValueAppRepoInfo
	InfraRepo TemplateValueInfraRepoInfo
	Variables map[string]string
}

func NewTemplateValue

func NewTemplateValue(
	appOrg, appRepo string, appPrNum int, appLatestCommitSha string,
	infraOrg, infraRepo, infraLatestCommitSha string,
	variables map[string]string,
) *TemplateValue

func (TemplateValue) MapTemplating

func (v TemplateValue) MapTemplating(m map[string]string) (map[string]string, error)

func (TemplateValue) MapTemplatingAndAppend

func (v TemplateValue) MapTemplatingAndAppend(base, m map[string]string) (map[string]string, error)

func (TemplateValue) Templating

func (v TemplateValue) Templating(text string) (string, error)

type TemplateValueAppRepoInfo

type TemplateValueAppRepoInfo struct {
	Organization    string
	Repository      string
	PrNumber        int
	LatestCommitSha string
}

type TemplateValueInfraRepoInfo

type TemplateValueInfraRepoInfo struct {
	Organization    string
	Repository      string
	LatestCommitSha string
}

Jump to

Keyboard shortcuts

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