env

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MPL-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Array = func(evs *api.EnvVarDefinition) {
		evs.Type = api.EnvVarTypeArray
	}

	Bool = func(evs *api.EnvVarDefinition) {
		evs.Type = api.EnvVarTypeBoolean
	}

	Number = func(evs *api.EnvVarDefinition) {
		evs.Type = api.EnvVarTypeNumber
	}

	String = func(evs *api.EnvVarDefinition) {
		evs.Type = api.EnvVarTypeString
	}

	Required = func(evs *api.EnvVarDefinition) {
		evs.Required = true
	}
)

Functions

This section is empty.

Types

type Var

type Var struct {
	// contains filtered or unexported fields
}

func NewVar

func NewVar(name string, typ api.EnvVarType) *Var

func (*Var) Name

func (v *Var) Name() string

func (*Var) Type

func (v *Var) Type() api.EnvVarType

type VarOption

type VarOption func(*api.EnvVarDefinition)

Jump to

Keyboard shortcuts

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