Documentation ¶
Index ¶
- func IsIntrinsic(key string) bool
- func IsIntrinsicFunc(node *yaml.Node) bool
- type CFReference
- type EqualityOptions
- type FileContext
- type FileContexts
- type InvalidContentError
- type Option
- type Parameter
- type Parameters
- type Parser
- type Property
- func GetAzs(property *Property) (*Property, bool)
- func GetCidr(property *Property) (*Property, bool)
- func ImportPlaceholder(property *Property) (*Property, bool)
- func PassthroughResolution(property *Property) (*Property, bool)
- func ResolveAnd(property *Property) (resolved *Property, success bool)
- func ResolveBase64(property *Property) (*Property, bool)
- func ResolveCondition(property *Property) (resolved *Property, success bool)
- func ResolveEquals(property *Property) (resolved *Property, success bool)
- func ResolveFindInMap(property *Property) (resolved *Property, success bool)
- func ResolveGetAtt(property *Property) (resolved *Property, success bool)
- func ResolveIf(property *Property) (resolved *Property, success bool)
- func ResolveIntrinsicFunc(property *Property) (*Property, bool)
- func ResolveJoin(property *Property) (resolved *Property, success bool)
- func ResolveLength(property *Property) (*Property, bool)
- func ResolveNot(property *Property) (resolved *Property, success bool)
- func ResolveOr(property *Property) (resolved *Property, success bool)
- func ResolveReference(property *Property) (resolved *Property, success bool)
- func ResolveSelect(property *Property) (resolved *Property, success bool)
- func ResolveSplit(property *Property) (resolved *Property, success bool)
- func ResolveSub(property *Property) (resolved *Property, success bool)
- func (p *Property) AsBool() bool
- func (p *Property) AsBoolValue() iacTypes.BoolValue
- func (p *Property) AsInt() int
- func (p *Property) AsIntValue() iacTypes.IntValue
- func (p *Property) AsList() []*Property
- func (p *Property) AsMap() map[string]*Property
- func (p *Property) AsRawStrings() ([]string, error)
- func (p *Property) AsString() string
- func (p *Property) AsStringValue() iacTypes.StringValue
- func (p *Property) BoolDefault(defaultValue bool) iacTypes.BoolValue
- func (p *Property) Comment() string
- func (p *Property) Contains(checkVal any) bool
- func (p *Property) ConvertTo(conversionType cftypes.CfType) *Property
- func (p *Property) EqualTo(checkValue any, equalityOptions ...EqualityOptions) bool
- func (p *Property) GetBoolProperty(path string, defaultValue ...bool) iacTypes.BoolValue
- func (p *Property) GetIntProperty(path string, defaultValue ...int) iacTypes.IntValue
- func (p *Property) GetJsonBytes(squashList ...bool) []byte
- func (p *Property) GetJsonBytesAsString(squashList ...bool) string
- func (p *Property) GetProperty(path string) *Property
- func (p *Property) GetStringProperty(path string, defaultValue ...string) iacTypes.StringValue
- func (p *Property) IntDefault(defaultValue int) iacTypes.IntValue
- func (p *Property) Is(t cftypes.CfType) bool
- func (p *Property) IsBool() bool
- func (p *Property) IsConvertableTo(conversionType cftypes.CfType) bool
- func (p *Property) IsEmpty() bool
- func (p *Property) IsInt() bool
- func (p *Property) IsList() bool
- func (p *Property) IsMap() bool
- func (p *Property) IsNil() bool
- func (p *Property) IsNotBool() bool
- func (p *Property) IsNotInt() bool
- func (p *Property) IsNotList() bool
- func (p *Property) IsNotMap() bool
- func (p *Property) IsNotNil() bool
- func (p *Property) IsNotString() bool
- func (p *Property) IsString() bool
- func (p *Property) IsTrue() bool
- func (p *Property) IsUnresolved() bool
- func (p *Property) Len() int
- func (p *Property) Metadata() iacTypes.Metadata
- func (p *Property) ParentRange() iacTypes.Range
- func (p *Property) Range() iacTypes.Range
- func (p *Property) RawValue() any
- func (p *Property) SetLogicalResource(id string)
- func (p *Property) String() string
- func (p *Property) StringDefault(defaultValue string) iacTypes.StringValue
- func (p *Property) Type() cftypes.CfType
- func (p *Property) UnmarshalJSONWithMetadata(node jfather.Node) error
- func (p *Property) UnmarshalYAML(node *yaml.Node) error
- type PropertyInner
- type Resource
- func (r *Resource) BoolDefault(defaultValue bool) iacTypes.BoolValue
- func (r *Resource) GetBoolProperty(path string, defaultValue ...bool) iacTypes.BoolValue
- func (r *Resource) GetIntProperty(path string, defaultValue ...int) iacTypes.IntValue
- func (r *Resource) GetProperty(path string) *Property
- func (r *Resource) GetStringProperty(path string, defaultValue ...string) iacTypes.StringValue
- func (r *Resource) ID() string
- func (r *Resource) IntDefault(defaultValue int) iacTypes.IntValue
- func (r *Resource) IsNil() bool
- func (r *Resource) Metadata() iacTypes.Metadata
- func (r *Resource) Range() iacTypes.Range
- func (r *Resource) SourceFormat() SourceFormat
- func (r *Resource) StringDefault(defaultValue string) iacTypes.StringValue
- func (r *Resource) Type() string
- func (r *Resource) UnmarshalJSONWithMetadata(node jfather.Node) error
- func (r *Resource) UnmarshalYAML(value *yaml.Node) error
- type ResourceInner
- type SourceFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsIntrinsic ¶
func IsIntrinsicFunc ¶
func IsIntrinsicFunc(node *yaml.Node) bool
Types ¶
type CFReference ¶
type CFReference struct {
// contains filtered or unexported fields
}
func NewCFReference ¶
func NewCFReference(id string, resourceRange iacTypes.Range) CFReference
func (CFReference) String ¶
func (cf CFReference) String() string
type FileContext ¶
type FileContext struct { SourceFormat SourceFormat Ignores ignore.Rules Parameters map[string]*Parameter `json:"Parameters" yaml:"Parameters"` Resources map[string]*Resource `json:"Resources" yaml:"Resources"` Globals map[string]*Resource `json:"Globals" yaml:"Globals"` Mappings map[string]any `json:"Mappings,omitempty" yaml:"Mappings"` Conditions map[string]Property `json:"Conditions,omitempty" yaml:"Conditions"` // contains filtered or unexported fields }
func (*FileContext) GetResourceByLogicalID ¶
func (t *FileContext) GetResourceByLogicalID(name string) *Resource
func (*FileContext) GetResourcesByType ¶
func (t *FileContext) GetResourcesByType(names ...string) []*Resource
func (*FileContext) Metadata ¶
func (t *FileContext) Metadata() iacTypes.Metadata
type FileContexts ¶
type FileContexts []*FileContext
type InvalidContentError ¶
type InvalidContentError struct {
// contains filtered or unexported fields
}
func NewErrInvalidContent ¶
func NewErrInvalidContent(source string, err error) *InvalidContentError
func (*InvalidContentError) Error ¶
func (e *InvalidContentError) Error() string
func (*InvalidContentError) Reason ¶
func (e *InvalidContentError) Reason() error
type Option ¶
type Option func(*Parser)
func WithConfigsFS ¶
func WithParameterFiles ¶
func WithParameters ¶
type Parameter ¶
type Parameter struct {
// contains filtered or unexported fields
}
func (*Parameter) UnmarshalJSONWithMetadata ¶
func (*Parameter) UnmarshalYAML ¶
func (*Parameter) UpdateDefault ¶
type Parameters ¶
func (*Parameters) Merge ¶
func (p *Parameters) Merge(other Parameters)
func (*Parameters) UnmarshalJSON ¶
func (p *Parameters) UnmarshalJSON(data []byte) error
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
type Property ¶
type Property struct { Inner PropertyInner // contains filtered or unexported fields }
func ImportPlaceholder ¶
func PassthroughResolution ¶
func ResolveAnd ¶
func ResolveBase64 ¶
func ResolveCondition ¶
func ResolveEquals ¶
func ResolveFindInMap ¶
func ResolveGetAtt ¶
func ResolveIntrinsicFunc ¶
func ResolveJoin ¶
func ResolveLength ¶
func ResolveNot ¶
func ResolveReference ¶
func ResolveSelect ¶
func ResolveSplit ¶
func ResolveSub ¶
func (*Property) AsBoolValue ¶
func (*Property) AsIntValue ¶
func (*Property) AsRawStrings ¶
func (*Property) AsStringValue ¶
func (p *Property) AsStringValue() iacTypes.StringValue
func (*Property) BoolDefault ¶
func (*Property) EqualTo ¶
func (p *Property) EqualTo(checkValue any, equalityOptions ...EqualityOptions) bool
func (*Property) GetBoolProperty ¶
func (*Property) GetIntProperty ¶
func (*Property) GetJsonBytes ¶
func (*Property) GetJsonBytesAsString ¶
func (*Property) GetProperty ¶
func (*Property) GetStringProperty ¶
func (p *Property) GetStringProperty(path string, defaultValue ...string) iacTypes.StringValue
func (*Property) IsConvertableTo ¶
func (*Property) IsNotString ¶
func (*Property) IsUnresolved ¶
func (*Property) ParentRange ¶
func (*Property) SetLogicalResource ¶
func (*Property) StringDefault ¶
func (p *Property) StringDefault(defaultValue string) iacTypes.StringValue
func (*Property) UnmarshalJSONWithMetadata ¶
func (*Property) UnmarshalYAML ¶
type PropertyInner ¶
type Resource ¶
type Resource struct { Inner ResourceInner // contains filtered or unexported fields }
func (*Resource) BoolDefault ¶
func (*Resource) GetBoolProperty ¶
func (*Resource) GetIntProperty ¶
func (*Resource) GetProperty ¶
func (*Resource) GetStringProperty ¶
func (r *Resource) GetStringProperty(path string, defaultValue ...string) iacTypes.StringValue
func (*Resource) SourceFormat ¶
func (r *Resource) SourceFormat() SourceFormat
func (*Resource) StringDefault ¶
func (r *Resource) StringDefault(defaultValue string) iacTypes.StringValue
func (*Resource) UnmarshalJSONWithMetadata ¶
func (*Resource) UnmarshalYAML ¶
type ResourceInner ¶
type SourceFormat ¶
type SourceFormat string
const ( YamlSourceFormat SourceFormat = "yaml" JsonSourceFormat SourceFormat = "json" )
Source Files ¶
- errors.go
- file_context.go
- fn_and.go
- fn_base64.go
- fn_builtin.go
- fn_condition.go
- fn_equals.go
- fn_find_in_map.go
- fn_get_attr.go
- fn_if.go
- fn_join.go
- fn_length.go
- fn_not.go
- fn_or.go
- fn_ref.go
- fn_select.go
- fn_split.go
- fn_sub.go
- intrinsics.go
- parameter.go
- parser.go
- property.go
- property_conversion.go
- property_helpers.go
- pseudo_parameters.go
- reference.go
- resource.go
- util.go
Click to show internal directories.
Click to hide internal directories.