template

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 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, appBranch string, appPrNum int,
	infraOrg, infraRepo 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)

func (TemplateValue) WithAppRepoLatestCommitSha added in v0.0.3

func (v TemplateValue) WithAppRepoLatestCommitSha(sha string) *TemplateValue

type TemplateValueAppRepoInfo

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

type TemplateValueInfraRepoInfo

type TemplateValueInfraRepoInfo struct {
	Organization string
	Repository   string
}

Jump to

Keyboard shortcuts

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