experimentalflags

package
v0.125.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package experimentalflags provides functionality for reading options defined in an environment variable named IMAGE_BUILDER_EXPERIMENTAL.

These functions should be used to determine, in a common way, if experimental features should be enabled when using the libarary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(option string) bool

Bool returns true if there is a boolean option with the given option name.

Example usage by the user:

IMAGE_BUILDER_EXPERIMENTAL=skip-foo,skip-bar=1,skip-baz=true

would result in experimetnalflags.Bool("skip-foo") -> true

func String

func String(option string) string

String returns the user set string for the given experimental feature.

Note that currently no quoting or escaping is supported, so a string can (currently) not contain a "," or a "=".

Example usage by the user:

IMAGE_BUILDER_EXPERIMENTAL=key=value

would result in experimetnalflags.String("key") -> "value"

Types

This section is empty.

Jump to

Keyboard shortcuts

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