Documentation ¶
Overview ¶
Inspired from https://github.com/alecthomas/participle/blob/master/_examples/expr/main.go
This file contains the particle base expression parser and evaluator to compute the values of sequences.
Names for some CloudFormation custom resources.
Index ¶
- Constants
- func ArnRegion(arn string) string
- func CogCondPreAuthParameterName(userPoolId string, userPoolClientId string) string
- func DnsCertificeSnsMessageIdParameterName(stackArn string, logicalResourceID string) (string, error)
- func Eval(expr string, x int64) (int64, error)
- func EvalExpression(e Expression, x int64) int64
- func EvalFactor(t Factor, x int64) int64
- func EvalOp(v1 int64, op string, v2 int64) int64
- func EvalTerm(t Term, x int64) int64
- func ExtractStackId(stackArn string) (string, error)
- func ExtractStackName(stackArn string) (string, error)
- func IsCertificateArn(s string) bool
- func IsForgeSsmParameterARN(s string) bool
- func IsSameRegion(event cfn.Event, oldRegion, region string) bool
- func SequenceParameterName(sequenceName string) string
- func UnknownRequestType(event cfn.Event) (string, map[string]interface{}, error)
- type Expression
- type Factor
- type OpTerm
- type OpValue
- type Term
Constants ¶
View Source
const SsmParameterPrefix = "/codesmith-forge"
SSM Parameters
Some of the custom CloudFormation resources create by the forge are implemented as SSM parameters in the parameter store.
Variables ¶
This section is empty.
Functions ¶
func CogCondPreAuthParameterName ¶
CogCondPreAuth naming
func DnsCertificeSnsMessageIdParameterName ¶
func DnsCertificeSnsMessageIdParameterName(stackArn string, logicalResourceID string) (string, error)
Dns Certificate SNS Message memory
func EvalExpression ¶
func EvalExpression(e Expression, x int64) int64
func EvalFactor ¶
func ExtractStackId ¶
func ExtractStackName ¶
func IsCertificateArn ¶
func IsForgeSsmParameterARN ¶
Types ¶
type Expression ¶
type Factor ¶
type Factor struct { Number *int64 ` @Int` Variable *string `| @"x"` Subexpression *Expression `| "(" @@ ")"` }
Click to show internal directories.
Click to hide internal directories.