config

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Copyright 2022, Pulumi Corporation. All rights reserved.

Handle configuration types.

Index

Constants

This section is empty.

Variables

View Source
var (
	String      Primitive = "String"
	StringList            = newList(String)
	Number      Primitive = "Number"
	NumberList            = newList(Number)
	Boolean     Primitive = "Boolean"
	BooleanList           = newList(Boolean)

	Invalid Primitive = "Invalid"
)
View Source
var Primitives = Types{
	String,
	Number,
	Boolean,
}

Functions

func IsValidType

func IsValidType(c Type) bool

Types

type List

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

func (List) Element

func (l List) Element() Type

func (List) String

func (l List) String() string

type Primitive

type Primitive string

func (Primitive) String

func (p Primitive) String() string

type Type

type Type interface {
	fmt.Stringer
}

func Parse

func Parse(s string) (Type, bool)

type Types

type Types []Type

func (Types) String

func (c Types) String() string

Jump to

Keyboard shortcuts

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