Skip to content

env

import "github.com/xigxog/kubefox/kit/env"

Index

Variables

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
    }
)

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)

Generated by gomarkdoc