Versions in this module Expand all Collapse all v0 v0.0.5 Mar 1, 2024 v0.0.4 Feb 28, 2024 v0.0.3 Feb 28, 2024 v0.0.2 Feb 27, 2024 Changes in this version + const EvalContextEnvVarKey + var Functions = map[string]function.Function + var ServiceTypes = []ServiceType + func AssignAttributesToEvalContext(ctx *hcl.EvalContext, body hcl.Body, ...) (map[string]string, error) + func AssignDecodedBlockToEvalCtxVars(ctx *hcl.EvalContext, block *hcl.Block, t kcty.CtyMarshalable) + func AssignEnvVarsToEvalContext(ctx *hcl.EvalContext, envVars ...string) + func AssignToEvalCtxVars(ctx *hcl.EvalContext, typeString, label string, t kcty.CtyMarshalable) + func AssignToEvalCtxVarsByDecodingBlock[T kcty.CtyMarshalable](ctx *hcl.EvalContext, block *hcl.Block) error + func AssignVariablesFromBlock(ctx *hcl.EvalContext, block *hcl.Block) error + func DecodeBlockAndAssignDecodedBlockToEvalCtxVars[T kcty.CtyMarshalable](ctx *hcl.EvalContext, block *hcl.Block) (t T, err error) + func DecodeBlock[T any](ctx *hcl.EvalContext, block *hcl.Block) (t T, err error) + func DecodeBodyLabelReader[T any](ctx *hcl.EvalContext, reader BodyLabelReader) (t T, err error) + func DecodeBody[T any](ctx *hcl.EvalContext, body hcl.Body) (T, error) + func NewContext(parent *hcl.EvalContext, options ...ContextOption) (*hcl.EvalContext, error) + func RegisterAssignableBlock[T kcty.CtyMarshalable](blockTypes ...string) + func RegisterEvalContextFunc(key string, f function.Function) + func RegisterEvalContextVar(key string, v cty.Value) + type APIGWClient = RESTClient + type AssignAttributesToEvalContextOption func(*assignAttributesToEvalContextOptionArg) + func AssignAttributesToEvalContextRootKeyOption(rootKey string) AssignAttributesToEvalContextOption + type BlockWrapper hcl.Block + func (bw *BlockWrapper) AllLabels() []string + func (bw *BlockWrapper) FirstLabel() string + func (bw *BlockWrapper) GetBody() hcl.Body + type BodyLabelReader interface + type BodyReader interface + GetBody func() hcl.Body + type ContextOption func(*hcl.EvalContext) error + func ContextDotEnvFileOption(dotEnvFile string) ContextOption + func ContextExplicitEnvVarsOption(envVars ...string) ContextOption + func ContextExplicitVarsOption(rootKey string, values map[string]cty.Value) ContextOption + func ContextOSEnvVarsOption() ContextOption + type LabelReader interface + AllLabels func() []string + FirstLabel func() string + type OIDCClient struct + AuthMethod string + AuthToken string + ClientID string + ClientSecret string + Endpoints *OIDCEndpoints + Headers map[string][]string + RedirectURIs []string + Scopes []string + TLS *TLS + func (oc OIDCClient) AllLabels() []string + func (oc OIDCClient) CtyType() cty.Type + func (oc OIDCClient) CtyValue() cty.Value + func (oc OIDCClient) FirstLabel() string + type OIDCEndpoints struct + Auth string + Introspection string + Issuer string + JWKS string + Token string + Userinfo string + func (oe OIDCEndpoints) CtyType() cty.Type + func (oe OIDCEndpoints) CtyValue() cty.Value + type OIDCProvider struct + Alias string + Clients []*OIDCClient + DefaultClient string + Endpoints *OIDCEndpoints + func (op OIDCProvider) AllLabels() []string + func (op OIDCProvider) CtyType() cty.Type + func (op OIDCProvider) CtyValue() cty.Value + func (op OIDCProvider) FirstLabel() string + type RESTClient struct + Alias string + AuthMethod string + AuthToken string + Headers map[string][]string + TLS *TLS + URL string + func (rc RESTClient) AllLabels() []string + func (rc RESTClient) CtyType() cty.Type + func (rc RESTClient) CtyValue() cty.Value + func (rc RESTClient) FirstLabel() string + type ServiceType = string + const ServiceTypeAPIGW + const ServiceTypeOIDC + const ServiceTypeREST + type TLS struct + ClientAuthType tls.ClientAuthType + ClientCAs []string + CurvePreferences []tls.CurveID + InsecureSkipVerify bool + MaxVersion uint16 + MinVersion uint16 + RootCAs []string + ServerName string + func (t TLS) CtyType() cty.Type + func (t TLS) CtyValue() cty.Value + type TLSClientAuthTypeWrapper tls.ClientAuthType + func (t TLSClientAuthTypeWrapper) CtyValue() cty.Value + func (t TLSClientAuthTypeWrapper) String() string + type TLSCurveIDWrapper kcty.UInt16Wrapper + func (t TLSCurveIDWrapper) CtyValue() cty.Value + func (t TLSCurveIDWrapper) String() string + type TLSCurvePreferences []tls.CurveID + func (t TLSCurvePreferences) CtyValue() cty.Value + type TLSVersionWrapper kcty.UInt16Wrapper + func (t TLSVersionWrapper) CtyValue() cty.Value + func (t TLSVersionWrapper) String() string