features

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Features

type Features struct {
	// SkipGlobs determines whether to interpret paths as file globs or not. New
	// in v1beta2.
	SkipGlobs bool

	// SkipGitVars determines whether to create builtin variables for _git_sha,
	// _git_short_sha, and _git_tag. New in v1beta3.
	SkipGitVars bool

	// SkipTime determines whether to support the _now_ms template variable and
	// the formatTime template function. New in v1beta6.
	SkipTime bool
}

Features controls which code paths are enabled in abc spec by a given api_version.

These should true for old api_versions that don't support the feature, and false for new api_versions that do support the feature. This will allow the most recent schema to have all booleans false (all features enabled) without undergoing any special transformation. Older schemas will have features disabled (booleans set to true) in their Upgrade() method.

Jump to

Keyboard shortcuts

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