Documentation ¶
Overview ¶
Copyright 2022, Pulumi Corporation. All rights reserved.
Handle configuration types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( String Type = typ{schema.StringType} StringList = typ{&schema.ArrayType{ElementType: schema.StringType}} Number = typ{schema.NumberType} NumberList = typ{&schema.ArrayType{ElementType: schema.NumberType}} Boolean = typ{schema.BoolType} BooleanList = typ{&schema.ArrayType{ElementType: schema.NumberType}} Int = typ{schema.IntType} IntList = typ{&schema.ArrayType{ElementType: schema.IntType}} )
View Source
var ( ErrHeterogeneousList = HeterogeneousListErr{} ErrEmptyList = fmt.Errorf("empty list") ErrUnexpectedType = UnexpectedTypeErr{} )
View Source
var ConfigTypes = Types{ String, StringList, Number, NumberList, Int, IntList, Boolean, BooleanList, }
Functions ¶
func IsValidType ¶
Types ¶
type HeterogeneousListErr ¶ added in v0.5.5
func (*HeterogeneousListErr) Error ¶ added in v0.5.5
func (e *HeterogeneousListErr) Error() string
func (*HeterogeneousListErr) Is ¶ added in v0.5.5
func (e *HeterogeneousListErr) Is(err error) bool
type Type ¶
type UnexpectedTypeErr ¶ added in v0.5.5
type UnexpectedTypeErr struct {
T interface{}
}
func (*UnexpectedTypeErr) Error ¶ added in v0.5.5
func (e *UnexpectedTypeErr) Error() string
func (*UnexpectedTypeErr) Is ¶ added in v0.5.5
func (e *UnexpectedTypeErr) Is(err error) bool
Click to show internal directories.
Click to hide internal directories.