env

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MPL-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

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

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

	Unique = func(evs *api.EnvVarSchema) {
		evs.Required = true
		evs.Unique = 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.EnvVarSchema)

Jump to

Keyboard shortcuts

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