helpers

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QPS   = 200
	Burst = 200
)
View Source
const (
	ErrorEmptyAssetAfterTemplating = "ERROR_EMPTY_ASSET_AFTER_TEMPLATING"
)

Variables

This section is empty.

Functions

func DryRunMessage

func DryRunMessage(dryRun bool)

func GetExampleHeader

func GetExampleHeader() string

func HasMultipleAssets added in v1.2.2

func HasMultipleAssets(reader asset.ScenarioReader, path string) (bool, error)

func IsEmpty added in v1.2.2

func IsEmpty(body []byte) bool

IsEmpty check if a content is empty after removing comments and blank lines.

func IsEmptyAsset added in v1.2.2

func IsEmptyAsset(err error) bool

IsEmptyAsset returns true if the error is ErrorEmptyAssetAfterTemplating

func SplitFiles added in v1.2.2

func SplitFiles(reader asset.ScenarioReader, paths []string) (*asset.MemFS, error)

func UsageTempate

func UsageTempate(cmd *cobra.Command, reader asset.ScenarioReader, valuesTemplatePath string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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