values

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OverrideValue

type OverrideValue struct {
	Key   string
	Value string
}

func (*OverrideValue) ToString

func (o *OverrideValue) ToString() string

ToString generate string value from key value. For example, `{Key: "hoge", Value: "fuga"}` is converted to `hoge=fuga`.

type TemplateVariable

type TemplateVariable struct {
	CommitSHA1 string
}

TemplateVariable defines variables to replace template in override values.

func (*TemplateVariable) ReplaceVariables

func (t *TemplateVariable) ReplaceVariables(text string) (string, error)

ReplaceVariables replaces all variables in provided text.

func (*TemplateVariable) ReplaceVariablesAll

func (t *TemplateVariable) ReplaceVariablesAll(text []string) ([]string, error)

ReplaceVariablesAll replaces all variables in provided text list.

Jump to

Keyboard shortcuts

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