Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRevision ¶ added in v1.1.0
func GetRevision() string
GetRevision function is based on the function defined under https://pkg.go.dev/knative.dev/pkg@v0.0.0-20240815051656-89743d9bbf7c/changeset at https://github.com/knative/pkg/blob/89743d9bbf7c/changeset/commit.go#L51
func WithDefaultBool ¶
WithDefaultBool returns the boolean value of the supplied environment variable or, if not present, the supplied default value.
func WithDefaultDuration ¶
WithDefaultDuration returns the duration value of the supplied environment variable or, if not present, the supplied default value.
func WithDefaultInt ¶
WithDefaultInt returns the int value of the supplied environment variable or, if not present, the supplied default value. If the int conversion fails, returns the default
func WithDefaultInt64 ¶
WithDefaultInt64 returns the int value of the supplied environment variable or, if not present, the supplied default value. If the int conversion fails, returns the default
func WithDefaultString ¶
WithDefaultString returns the string value of the supplied environment variable or, if not present, the supplied default value.
Types ¶
This section is empty.