Documentation ¶
Index ¶
- func ParsePropertyRef(value any, ctx knowledgebase.DynamicContext, ...) (construct.PropertyRef, error)
- func ValidatePropertyRef(value construct.PropertyRef, propertyType string, ...) (refVal any, err error)
- type AnyProperty
- func (a *AnyProperty) AppendProperty(resource *construct.Resource, value any) error
- func (a *AnyProperty) Clone() knowledgebase.Property
- func (a *AnyProperty) Contains(value any, contains any) bool
- func (a *AnyProperty) Details() *knowledgebase.PropertyDetails
- func (a *AnyProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
- func (a *AnyProperty) Parse(value any, ctx knowledgebase.DynamicContext, ...) (any, error)
- func (a *AnyProperty) RemoveProperty(resource *construct.Resource, value any) error
- func (a *AnyProperty) SetProperty(resource *construct.Resource, value any) error
- func (a *AnyProperty) SubProperties() knowledgebase.Properties
- func (a *AnyProperty) Type() string
- func (a *AnyProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
- func (a *AnyProperty) ZeroValue() any
- type BoolProperty
- func (b *BoolProperty) AppendProperty(resource *construct.Resource, value any) error
- func (b *BoolProperty) Clone() knowledgebase.Property
- func (b *BoolProperty) Contains(value any, contains any) bool
- func (b *BoolProperty) Details() *knowledgebase.PropertyDetails
- func (b *BoolProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
- func (b *BoolProperty) Parse(value any, ctx knowledgebase.DynamicContext, ...) (any, error)
- func (b *BoolProperty) RemoveProperty(resource *construct.Resource, value any) error
- func (b *BoolProperty) SetProperty(resource *construct.Resource, value any) error
- func (b *BoolProperty) SubProperties() knowledgebase.Properties
- func (b *BoolProperty) Type() string
- func (b *BoolProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
- func (b *BoolProperty) ZeroValue() any
- type FloatProperty
- func (f *FloatProperty) AppendProperty(resource *construct.Resource, value any) error
- func (f *FloatProperty) Clone() knowledgebase.Property
- func (f *FloatProperty) Contains(value any, contains any) bool
- func (f *FloatProperty) Details() *knowledgebase.PropertyDetails
- func (f *FloatProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
- func (f *FloatProperty) Parse(value any, ctx knowledgebase.DynamicContext, ...) (any, error)
- func (f *FloatProperty) RemoveProperty(resource *construct.Resource, value any) error
- func (f *FloatProperty) SetProperty(resource *construct.Resource, value any) error
- func (f *FloatProperty) SubProperties() knowledgebase.Properties
- func (f *FloatProperty) Type() string
- func (f *FloatProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
- func (f *FloatProperty) ZeroValue() any
- type IntProperty
- func (i *IntProperty) AppendProperty(resource *construct.Resource, value any) error
- func (i *IntProperty) Clone() knowledgebase.Property
- func (i *IntProperty) Contains(value any, contains any) bool
- func (i *IntProperty) Details() *knowledgebase.PropertyDetails
- func (i *IntProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
- func (i *IntProperty) Parse(value any, ctx knowledgebase.DynamicContext, ...) (any, error)
- func (i *IntProperty) RemoveProperty(resource *construct.Resource, value any) error
- func (i *IntProperty) SetProperty(resource *construct.Resource, value any) error
- func (i *IntProperty) SubProperties() knowledgebase.Properties
- func (i *IntProperty) Type() string
- func (i *IntProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
- func (i *IntProperty) ZeroValue() any
- type ListProperty
- func (l *ListProperty) AppendProperty(resource *construct.Resource, value any) error
- func (l *ListProperty) Clone() knowledgebase.Property
- func (l *ListProperty) Contains(value any, contains any) bool
- func (l *ListProperty) Details() *knowledgebase.PropertyDetails
- func (list *ListProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
- func (l *ListProperty) Item() knowledgebase.Property
- func (list *ListProperty) Parse(value any, ctx knowledgebase.DynamicContext, ...) (any, error)
- func (l *ListProperty) RemoveProperty(resource *construct.Resource, value any) error
- func (l *ListProperty) SetProperty(resource *construct.Resource, value any) error
- func (l *ListProperty) SubProperties() knowledgebase.Properties
- func (l *ListProperty) Type() string
- func (l *ListProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
- func (l *ListProperty) ZeroValue() any
- type MapProperty
- func (m *MapProperty) AppendProperty(resource *construct.Resource, value any) error
- func (m *MapProperty) Clone() knowledgebase.Property
- func (m *MapProperty) Contains(value any, contains any) bool
- func (m *MapProperty) Details() *knowledgebase.PropertyDetails
- func (m *MapProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
- func (m *MapProperty) Key() knowledgebase.Property
- func (m *MapProperty) Parse(value any, ctx knowledgebase.DynamicContext, ...) (any, error)
- func (m *MapProperty) RemoveProperty(resource *construct.Resource, value any) error
- func (m *MapProperty) SetProperty(resource *construct.Resource, value any) error
- func (m *MapProperty) SubProperties() knowledgebase.Properties
- func (m *MapProperty) Type() string
- func (m *MapProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
- func (m *MapProperty) Value() knowledgebase.Property
- func (m *MapProperty) ZeroValue() any
- type PropertyValidityCheck
- type ResourceProperty
- func (r *ResourceProperty) AppendProperty(resource *construct.Resource, value any) error
- func (r *ResourceProperty) Clone() knowledgebase.Property
- func (r *ResourceProperty) Contains(value any, contains any) bool
- func (r *ResourceProperty) Details() *knowledgebase.PropertyDetails
- func (r *ResourceProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
- func (r *ResourceProperty) Parse(value any, ctx knowledgebase.DynamicContext, ...) (any, error)
- func (r *ResourceProperty) RemoveProperty(resource *construct.Resource, value any) error
- func (r *ResourceProperty) SetProperty(resource *construct.Resource, value any) error
- func (r *ResourceProperty) SubProperties() knowledgebase.Properties
- func (r *ResourceProperty) Type() string
- func (r *ResourceProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
- func (r *ResourceProperty) ZeroValue() any
- type SetProperty
- func (s *SetProperty) AppendProperty(resource *construct.Resource, value any) error
- func (s *SetProperty) Clone() knowledgebase.Property
- func (s *SetProperty) Contains(value any, contains any) bool
- func (s *SetProperty) Details() *knowledgebase.PropertyDetails
- func (s *SetProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
- func (s *SetProperty) Item() knowledgebase.Property
- func (s *SetProperty) Parse(value any, ctx knowledgebase.DynamicContext, ...) (any, error)
- func (s *SetProperty) RemoveProperty(resource *construct.Resource, value any) error
- func (s *SetProperty) SetProperty(resource *construct.Resource, value any) error
- func (s *SetProperty) SubProperties() knowledgebase.Properties
- func (s *SetProperty) Type() string
- func (s *SetProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
- func (s *SetProperty) ZeroValue() any
- type SharedPropertyFields
- type StringProperty
- func (str *StringProperty) AppendProperty(resource *construct.Resource, value any) error
- func (s *StringProperty) Clone() knowledgebase.Property
- func (s *StringProperty) Contains(value any, contains any) bool
- func (s *StringProperty) Details() *knowledgebase.PropertyDetails
- func (s *StringProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
- func (str *StringProperty) Parse(value any, ctx knowledgebase.DynamicContext, ...) (any, error)
- func (str *StringProperty) RemoveProperty(resource *construct.Resource, value any) error
- func (str *StringProperty) SetProperty(resource *construct.Resource, value any) error
- func (s *StringProperty) SubProperties() knowledgebase.Properties
- func (s *StringProperty) Type() string
- func (s *StringProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
- func (s *StringProperty) ZeroValue() any
- type ValidityCheckData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePropertyRef ¶
func ParsePropertyRef(value any, ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (construct.PropertyRef, error)
func ValidatePropertyRef ¶
func ValidatePropertyRef(value construct.PropertyRef, propertyType string, ctx knowledgebase.DynamicContext) (refVal any, err error)
Types ¶
type AnyProperty ¶
type AnyProperty struct { knowledgebase.PropertyDetails }
func (*AnyProperty) AppendProperty ¶
func (a *AnyProperty) AppendProperty(resource *construct.Resource, value any) error
func (*AnyProperty) Clone ¶
func (a *AnyProperty) Clone() knowledgebase.Property
func (*AnyProperty) Details ¶
func (a *AnyProperty) Details() *knowledgebase.PropertyDetails
func (*AnyProperty) GetDefaultValue ¶
func (a *AnyProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*AnyProperty) Parse ¶
func (a *AnyProperty) Parse(value any, ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*AnyProperty) RemoveProperty ¶
func (a *AnyProperty) RemoveProperty(resource *construct.Resource, value any) error
func (*AnyProperty) SetProperty ¶
func (a *AnyProperty) SetProperty(resource *construct.Resource, value any) error
func (*AnyProperty) SubProperties ¶
func (a *AnyProperty) SubProperties() knowledgebase.Properties
func (*AnyProperty) Type ¶
func (a *AnyProperty) Type() string
func (*AnyProperty) Validate ¶
func (a *AnyProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
func (*AnyProperty) ZeroValue ¶
func (a *AnyProperty) ZeroValue() any
type BoolProperty ¶
type BoolProperty struct { knowledgebase.PropertyDetails }
func (*BoolProperty) AppendProperty ¶
func (b *BoolProperty) AppendProperty(resource *construct.Resource, value any) error
func (*BoolProperty) Clone ¶
func (b *BoolProperty) Clone() knowledgebase.Property
func (*BoolProperty) Details ¶
func (b *BoolProperty) Details() *knowledgebase.PropertyDetails
func (*BoolProperty) GetDefaultValue ¶
func (b *BoolProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*BoolProperty) Parse ¶
func (b *BoolProperty) Parse(value any, ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*BoolProperty) RemoveProperty ¶
func (b *BoolProperty) RemoveProperty(resource *construct.Resource, value any) error
func (*BoolProperty) SetProperty ¶
func (b *BoolProperty) SetProperty(resource *construct.Resource, value any) error
func (*BoolProperty) SubProperties ¶
func (b *BoolProperty) SubProperties() knowledgebase.Properties
func (*BoolProperty) Type ¶
func (b *BoolProperty) Type() string
func (*BoolProperty) Validate ¶
func (b *BoolProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
func (*BoolProperty) ZeroValue ¶
func (b *BoolProperty) ZeroValue() any
type FloatProperty ¶
type FloatProperty struct { MinValue *float64 MaxValue *float64 knowledgebase.PropertyDetails }
func (*FloatProperty) AppendProperty ¶
func (f *FloatProperty) AppendProperty(resource *construct.Resource, value any) error
func (*FloatProperty) Clone ¶
func (f *FloatProperty) Clone() knowledgebase.Property
func (*FloatProperty) Details ¶
func (f *FloatProperty) Details() *knowledgebase.PropertyDetails
func (*FloatProperty) GetDefaultValue ¶
func (f *FloatProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*FloatProperty) Parse ¶
func (f *FloatProperty) Parse(value any, ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*FloatProperty) RemoveProperty ¶
func (f *FloatProperty) RemoveProperty(resource *construct.Resource, value any) error
func (*FloatProperty) SetProperty ¶
func (f *FloatProperty) SetProperty(resource *construct.Resource, value any) error
func (*FloatProperty) SubProperties ¶
func (f *FloatProperty) SubProperties() knowledgebase.Properties
func (*FloatProperty) Type ¶
func (f *FloatProperty) Type() string
func (*FloatProperty) Validate ¶
func (f *FloatProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
func (*FloatProperty) ZeroValue ¶
func (f *FloatProperty) ZeroValue() any
type IntProperty ¶
type IntProperty struct { MinValue *int MaxValue *int knowledgebase.PropertyDetails }
func (*IntProperty) AppendProperty ¶
func (i *IntProperty) AppendProperty(resource *construct.Resource, value any) error
func (*IntProperty) Clone ¶
func (i *IntProperty) Clone() knowledgebase.Property
func (*IntProperty) Details ¶
func (i *IntProperty) Details() *knowledgebase.PropertyDetails
func (*IntProperty) GetDefaultValue ¶
func (i *IntProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*IntProperty) Parse ¶
func (i *IntProperty) Parse(value any, ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*IntProperty) RemoveProperty ¶
func (i *IntProperty) RemoveProperty(resource *construct.Resource, value any) error
func (*IntProperty) SetProperty ¶
func (i *IntProperty) SetProperty(resource *construct.Resource, value any) error
func (*IntProperty) SubProperties ¶
func (i *IntProperty) SubProperties() knowledgebase.Properties
func (*IntProperty) Type ¶
func (i *IntProperty) Type() string
func (*IntProperty) Validate ¶
func (i *IntProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
func (*IntProperty) ZeroValue ¶
func (i *IntProperty) ZeroValue() any
type ListProperty ¶
type ListProperty struct { MinLength *int MaxLength *int ItemProperty knowledgebase.Property Properties knowledgebase.Properties knowledgebase.PropertyDetails }
func (*ListProperty) AppendProperty ¶
func (l *ListProperty) AppendProperty(resource *construct.Resource, value any) error
func (*ListProperty) Clone ¶
func (l *ListProperty) Clone() knowledgebase.Property
func (*ListProperty) Details ¶
func (l *ListProperty) Details() *knowledgebase.PropertyDetails
func (*ListProperty) GetDefaultValue ¶
func (list *ListProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*ListProperty) Item ¶
func (l *ListProperty) Item() knowledgebase.Property
func (*ListProperty) Parse ¶
func (list *ListProperty) Parse(value any, ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*ListProperty) RemoveProperty ¶
func (l *ListProperty) RemoveProperty(resource *construct.Resource, value any) error
func (*ListProperty) SetProperty ¶
func (l *ListProperty) SetProperty(resource *construct.Resource, value any) error
func (*ListProperty) SubProperties ¶
func (l *ListProperty) SubProperties() knowledgebase.Properties
func (*ListProperty) Type ¶
func (l *ListProperty) Type() string
func (*ListProperty) Validate ¶
func (l *ListProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
func (*ListProperty) ZeroValue ¶
func (l *ListProperty) ZeroValue() any
type MapProperty ¶
type MapProperty struct { MinLength *int MaxLength *int KeyProperty knowledgebase.Property ValueProperty knowledgebase.Property Properties knowledgebase.Properties knowledgebase.PropertyDetails }
func (*MapProperty) AppendProperty ¶
func (m *MapProperty) AppendProperty(resource *construct.Resource, value any) error
func (*MapProperty) Clone ¶
func (m *MapProperty) Clone() knowledgebase.Property
func (*MapProperty) Details ¶
func (m *MapProperty) Details() *knowledgebase.PropertyDetails
func (*MapProperty) GetDefaultValue ¶
func (m *MapProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*MapProperty) Key ¶
func (m *MapProperty) Key() knowledgebase.Property
func (*MapProperty) Parse ¶
func (m *MapProperty) Parse(value any, ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*MapProperty) RemoveProperty ¶
func (m *MapProperty) RemoveProperty(resource *construct.Resource, value any) error
func (*MapProperty) SetProperty ¶
func (m *MapProperty) SetProperty(resource *construct.Resource, value any) error
func (*MapProperty) SubProperties ¶
func (m *MapProperty) SubProperties() knowledgebase.Properties
func (*MapProperty) Type ¶
func (m *MapProperty) Type() string
func (*MapProperty) Validate ¶
func (m *MapProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
func (*MapProperty) Value ¶
func (m *MapProperty) Value() knowledgebase.Property
func (*MapProperty) ZeroValue ¶
func (m *MapProperty) ZeroValue() any
type PropertyValidityCheck ¶
type PropertyValidityCheck struct {
// contains filtered or unexported fields
}
func (*PropertyValidityCheck) Validate ¶
func (p *PropertyValidityCheck) Validate(value any, properties construct.Properties) error
type ResourceProperty ¶
type ResourceProperty struct { AllowedTypes construct.ResourceList knowledgebase.PropertyDetails }
func (*ResourceProperty) AppendProperty ¶
func (r *ResourceProperty) AppendProperty(resource *construct.Resource, value any) error
func (*ResourceProperty) Clone ¶
func (r *ResourceProperty) Clone() knowledgebase.Property
func (*ResourceProperty) Contains ¶
func (r *ResourceProperty) Contains(value any, contains any) bool
func (*ResourceProperty) Details ¶
func (r *ResourceProperty) Details() *knowledgebase.PropertyDetails
func (*ResourceProperty) GetDefaultValue ¶
func (r *ResourceProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*ResourceProperty) Parse ¶
func (r *ResourceProperty) Parse(value any, ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*ResourceProperty) RemoveProperty ¶
func (r *ResourceProperty) RemoveProperty(resource *construct.Resource, value any) error
func (*ResourceProperty) SetProperty ¶
func (r *ResourceProperty) SetProperty(resource *construct.Resource, value any) error
func (*ResourceProperty) SubProperties ¶
func (r *ResourceProperty) SubProperties() knowledgebase.Properties
func (*ResourceProperty) Type ¶
func (r *ResourceProperty) Type() string
func (*ResourceProperty) Validate ¶
func (r *ResourceProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
func (*ResourceProperty) ZeroValue ¶
func (r *ResourceProperty) ZeroValue() any
type SetProperty ¶
type SetProperty struct { MinLength *int MaxLength *int ItemProperty knowledgebase.Property Properties knowledgebase.Properties knowledgebase.PropertyDetails }
func (*SetProperty) AppendProperty ¶
func (s *SetProperty) AppendProperty(resource *construct.Resource, value any) error
func (*SetProperty) Clone ¶
func (s *SetProperty) Clone() knowledgebase.Property
func (*SetProperty) Details ¶
func (s *SetProperty) Details() *knowledgebase.PropertyDetails
func (*SetProperty) GetDefaultValue ¶
func (s *SetProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*SetProperty) Item ¶
func (s *SetProperty) Item() knowledgebase.Property
func (*SetProperty) Parse ¶
func (s *SetProperty) Parse(value any, ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*SetProperty) RemoveProperty ¶
func (s *SetProperty) RemoveProperty(resource *construct.Resource, value any) error
func (*SetProperty) SetProperty ¶
func (s *SetProperty) SetProperty(resource *construct.Resource, value any) error
func (*SetProperty) SubProperties ¶
func (s *SetProperty) SubProperties() knowledgebase.Properties
func (*SetProperty) Type ¶
func (s *SetProperty) Type() string
func (*SetProperty) Validate ¶
func (s *SetProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
func (*SetProperty) ZeroValue ¶
func (s *SetProperty) ZeroValue() any
type SharedPropertyFields ¶
type SharedPropertyFields struct {}
type StringProperty ¶
type StringProperty struct { SanitizeTmpl *knowledgebase.SanitizeTmpl AllowedValues []string knowledgebase.PropertyDetails }
func (*StringProperty) AppendProperty ¶
func (str *StringProperty) AppendProperty(resource *construct.Resource, value any) error
func (*StringProperty) Clone ¶
func (s *StringProperty) Clone() knowledgebase.Property
func (*StringProperty) Details ¶
func (s *StringProperty) Details() *knowledgebase.PropertyDetails
func (*StringProperty) GetDefaultValue ¶
func (s *StringProperty) GetDefaultValue(ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*StringProperty) Parse ¶
func (str *StringProperty) Parse(value any, ctx knowledgebase.DynamicContext, data knowledgebase.DynamicValueData) (any, error)
func (*StringProperty) RemoveProperty ¶
func (str *StringProperty) RemoveProperty(resource *construct.Resource, value any) error
func (*StringProperty) SetProperty ¶
func (str *StringProperty) SetProperty(resource *construct.Resource, value any) error
func (*StringProperty) SubProperties ¶
func (s *StringProperty) SubProperties() knowledgebase.Properties
func (*StringProperty) Type ¶
func (s *StringProperty) Type() string
func (*StringProperty) Validate ¶
func (s *StringProperty) Validate(resource *construct.Resource, value any, ctx knowledgebase.DynamicContext) error
func (*StringProperty) ZeroValue ¶
func (s *StringProperty) ZeroValue() any
type ValidityCheckData ¶
type ValidityCheckData struct { Properties construct.Properties `json:"properties" yaml:"properties"` Value any `json:"value" yaml:"value"` }
Click to show internal directories.
Click to hide internal directories.