Documentation ¶
Index ¶
- type ComputedOptionalRequired
- type CustomCollectionTypes
- type CustomTypeCollection
- type CustomTypeNestedCollection
- type CustomTypeNestedObject
- type CustomTypeObject
- type CustomTypePrimitive
- type DefaultBool
- type DefaultCustom
- type DefaultFloat64
- type DefaultInt64
- type DefaultString
- type DeprecationMessage
- type Description
- type ElementType
- type NestedAttributeObject
- type NestedBlockObject
- type ObjectAttributeTypes
- type OptionalRequired
- type PlanModifierType
- type PlanModifiers
- type Sensitive
- type ValidatorType
- type Validators
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputedOptionalRequired ¶
type ComputedOptionalRequired struct {
// contains filtered or unexported fields
}
func NewComputedOptionalRequired ¶
func NewComputedOptionalRequired(c specschema.ComputedOptionalRequired) ComputedOptionalRequired
func (ComputedOptionalRequired) Equal ¶
func (c ComputedOptionalRequired) Equal(other ComputedOptionalRequired) bool
func (ComputedOptionalRequired) IsComputed ¶
func (c ComputedOptionalRequired) IsComputed() bool
func (ComputedOptionalRequired) IsOptional ¶
func (c ComputedOptionalRequired) IsOptional() bool
func (ComputedOptionalRequired) IsRequired ¶
func (c ComputedOptionalRequired) IsRequired() bool
func (ComputedOptionalRequired) Schema ¶
func (c ComputedOptionalRequired) Schema() []byte
type CustomCollectionTypes ¶
type CustomCollectionTypes string
const ( CustomCollectionTypeList CustomCollectionTypes = "List" CustomCollectionTypeMap CustomCollectionTypes = "Map" CustomCollectionTypeSet CustomCollectionTypes = "Set" )
func (CustomCollectionTypes) Equal ¶
func (c CustomCollectionTypes) Equal(other CustomCollectionTypes) bool
type CustomTypeCollection ¶
type CustomTypeCollection struct {
// contains filtered or unexported fields
}
func NewCustomTypeCollection ¶
func NewCustomTypeCollection(c *specschema.CustomType, a *specschema.AssociatedExternalType, cct CustomCollectionTypes, elemType, name string) CustomTypeCollection
NewCustomTypeCollection constructs an CustomTypeCollection which is used to determine whether a CustomType should be assigned to a collection attribute in the schema.
If a CustomType has been declared in the spec, then the CustomType.Type will be used as the CustomType in the schema.
If the spec CustomType is nil, and the spec AssociatedExternalType is not nil, the generator will create custom Type and Value types using the attribute name, and the generated custom Type type will be used as the CustomType in the schema.
func (CustomTypeCollection) Equal ¶
func (c CustomTypeCollection) Equal(other CustomTypeCollection) bool
func (CustomTypeCollection) Imports ¶
func (c CustomTypeCollection) Imports() *schema.Imports
func (CustomTypeCollection) Schema ¶
func (c CustomTypeCollection) Schema() []byte
func (CustomTypeCollection) ValueType ¶
func (c CustomTypeCollection) ValueType() string
type CustomTypeNestedCollection ¶
type CustomTypeNestedCollection struct {
// contains filtered or unexported fields
}
func NewCustomTypeNestedCollection ¶
func NewCustomTypeNestedCollection(c *specschema.CustomType) CustomTypeNestedCollection
NewCustomTypeNestedCollection constructs an CustomTypeNestedCollection which is used to determine whether a CustomType should be assigned to a nested attribute in the schema.
If a CustomType has been declared in the spec, then the CustomType.Type will be used as the CustomType in the schema.
If the spec CustomType is nil, the generator will create custom Type and Value types using the attribute name, and the generated custom Type type will be used as the CustomType in the schema.
func (CustomTypeNestedCollection) Equal ¶
func (c CustomTypeNestedCollection) Equal(other CustomTypeNestedCollection) bool
func (CustomTypeNestedCollection) Imports ¶
func (c CustomTypeNestedCollection) Imports() *schema.Imports
func (CustomTypeNestedCollection) Schema ¶
func (c CustomTypeNestedCollection) Schema() []byte
func (CustomTypeNestedCollection) ValueType ¶
func (c CustomTypeNestedCollection) ValueType() string
type CustomTypeNestedObject ¶
type CustomTypeNestedObject struct {
// contains filtered or unexported fields
}
func NewCustomTypeNestedObject ¶
func NewCustomTypeNestedObject(c *specschema.CustomType, name string) CustomTypeNestedObject
NewCustomTypeNestedObject constructs an CustomTypeNestedObject which is used to determine whether a CustomType should be assigned to a nested attribute object in the schema.
If a CustomType has been declared in the spec, then the CustomType.Type will be used as the CustomType in the schema.
If the spec CustomType is nil, the generator will create custom Type and Value types using the attribute name, and the generated custom Type type will be used as the CustomType in the schema.
func (CustomTypeNestedObject) Equal ¶
func (c CustomTypeNestedObject) Equal(other CustomTypeNestedObject) bool
func (CustomTypeNestedObject) Imports ¶
func (c CustomTypeNestedObject) Imports() *schema.Imports
func (CustomTypeNestedObject) Schema ¶
func (c CustomTypeNestedObject) Schema() []byte
func (CustomTypeNestedObject) ValueType ¶
func (c CustomTypeNestedObject) ValueType() string
type CustomTypeObject ¶
type CustomTypeObject struct {
// contains filtered or unexported fields
}
func NewCustomTypeObject ¶
func NewCustomTypeObject(c *specschema.CustomType, a *specschema.AssociatedExternalType, name string) CustomTypeObject
NewCustomTypeObject constructs an CustomTypeObject which is used to determine whether a CustomType should be assigned to an object attribute in the schema.
If a CustomType has been declared in the spec, then the CustomType.Type will be used as the CustomType in the schema.
If the spec CustomType is nil, and the spec AssociatedExternalType is not nil, the generator will create custom Type and Value types using the attribute name, and the generated custom Type type will be used as the CustomType in the schema.
func (CustomTypeObject) Equal ¶
func (c CustomTypeObject) Equal(other CustomTypeObject) bool
func (CustomTypeObject) Imports ¶
func (c CustomTypeObject) Imports() *schema.Imports
func (CustomTypeObject) Schema ¶
func (c CustomTypeObject) Schema() []byte
func (CustomTypeObject) ValueType ¶
func (c CustomTypeObject) ValueType() string
type CustomTypePrimitive ¶
type CustomTypePrimitive struct {
// contains filtered or unexported fields
}
func NewCustomTypePrimitive ¶
func NewCustomTypePrimitive(c *specschema.CustomType, a *specschema.AssociatedExternalType, name string) CustomTypePrimitive
NewCustomTypePrimitive constructs an CustomTypePrimitive which is used to determine whether a CustomType should be assigned to a primitive attribute in the schema.
If a CustomType has been declared in the spec, then the CustomType.Type will be used as the CustomType in the Schema.
If the spec CustomType is nil, and the spec AssociatedExternalType is not nil, the generator will create custom Type and Value types using the attribute name, and the generated custom Type type will be used as the CustomType in the schema.
func (CustomTypePrimitive) Equal ¶
func (c CustomTypePrimitive) Equal(other CustomTypePrimitive) bool
func (CustomTypePrimitive) Imports ¶
func (c CustomTypePrimitive) Imports() *schema.Imports
func (CustomTypePrimitive) Schema ¶
func (c CustomTypePrimitive) Schema() []byte
func (CustomTypePrimitive) ValueType ¶
func (c CustomTypePrimitive) ValueType() string
type DefaultBool ¶
type DefaultBool struct {
// contains filtered or unexported fields
}
func NewDefaultBool ¶
func NewDefaultBool(b *specschema.BoolDefault) DefaultBool
func (DefaultBool) Equal ¶
func (d DefaultBool) Equal(other DefaultBool) bool
func (DefaultBool) Imports ¶
func (d DefaultBool) Imports() *generatorschema.Imports
func (DefaultBool) Schema ¶
func (d DefaultBool) Schema() []byte
type DefaultCustom ¶
type DefaultCustom struct {
// contains filtered or unexported fields
}
func NewDefaultCustom ¶
func NewDefaultCustom(c *specschema.CustomDefault) DefaultCustom
func (DefaultCustom) Equal ¶
func (d DefaultCustom) Equal(other DefaultCustom) bool
func (DefaultCustom) Imports ¶
func (d DefaultCustom) Imports() *generatorschema.Imports
func (DefaultCustom) Schema ¶
func (d DefaultCustom) Schema() []byte
type DefaultFloat64 ¶
type DefaultFloat64 struct {
// contains filtered or unexported fields
}
func NewDefaultFloat64 ¶
func NewDefaultFloat64(b *specschema.Float64Default) DefaultFloat64
func (DefaultFloat64) Equal ¶
func (d DefaultFloat64) Equal(other DefaultFloat64) bool
func (DefaultFloat64) Imports ¶
func (d DefaultFloat64) Imports() *generatorschema.Imports
func (DefaultFloat64) Schema ¶
func (d DefaultFloat64) Schema() []byte
type DefaultInt64 ¶
type DefaultInt64 struct {
// contains filtered or unexported fields
}
func NewDefaultInt64 ¶
func NewDefaultInt64(b *specschema.Int64Default) DefaultInt64
func (DefaultInt64) Equal ¶
func (d DefaultInt64) Equal(other DefaultInt64) bool
func (DefaultInt64) Imports ¶
func (d DefaultInt64) Imports() *generatorschema.Imports
func (DefaultInt64) Schema ¶
func (d DefaultInt64) Schema() []byte
type DefaultString ¶
type DefaultString struct {
// contains filtered or unexported fields
}
func NewDefaultString ¶
func NewDefaultString(b *specschema.StringDefault) DefaultString
func (DefaultString) Equal ¶
func (d DefaultString) Equal(other DefaultString) bool
func (DefaultString) Imports ¶
func (d DefaultString) Imports() *generatorschema.Imports
func (DefaultString) Schema ¶
func (d DefaultString) Schema() []byte
type DeprecationMessage ¶
type DeprecationMessage struct {
// contains filtered or unexported fields
}
func NewDeprecationMessage ¶
func NewDeprecationMessage(d *string) DeprecationMessage
func (DeprecationMessage) DeprecationMessage ¶
func (d DeprecationMessage) DeprecationMessage() string
func (DeprecationMessage) Equal ¶
func (d DeprecationMessage) Equal(other DeprecationMessage) bool
func (DeprecationMessage) Schema ¶
func (d DeprecationMessage) Schema() []byte
type Description ¶
type Description struct {
// contains filtered or unexported fields
}
func NewDescription ¶
func NewDescription(d *string) Description
func (Description) Description ¶
func (d Description) Description() string
func (Description) Equal ¶
func (d Description) Equal(other Description) bool
func (Description) Schema ¶
func (d Description) Schema() []byte
type ElementType ¶
type ElementType struct {
// contains filtered or unexported fields
}
func NewElementType ¶
func NewElementType(e specschema.ElementType) ElementType
func (ElementType) ElementType ¶
func (e ElementType) ElementType() []byte
func (ElementType) Equal ¶
func (e ElementType) Equal(other ElementType) bool
func (ElementType) Imports ¶
func (e ElementType) Imports() *schema.Imports
func (ElementType) Schema ¶
func (e ElementType) Schema() []byte
type NestedAttributeObject ¶
type NestedAttributeObject struct {
// contains filtered or unexported fields
}
func NewNestedAttributeObject ¶
func NewNestedAttributeObject(a schema.GeneratorAttributes, c *specschema.CustomType, v Validators, name string) NestedAttributeObject
NewNestedAttributeObject constructs a NestedAttributeObject which is used to generate a nested attribute object in the schema.
func (NestedAttributeObject) Equal ¶
func (n NestedAttributeObject) Equal(other NestedAttributeObject) bool
func (NestedAttributeObject) Imports ¶
func (n NestedAttributeObject) Imports() *schema.Imports
func (NestedAttributeObject) Schema ¶
func (n NestedAttributeObject) Schema() ([]byte, error)
type NestedBlockObject ¶
type NestedBlockObject struct {
// contains filtered or unexported fields
}
func NewNestedBlockObject ¶
func NewNestedBlockObject(a schema.GeneratorAttributes, b schema.GeneratorBlocks, c *specschema.CustomType, v Validators, name string) NestedBlockObject
NewNestedBlockObject constructs a NestedBlockObject which is used to generate a nested attribute block in the schema.
func (NestedBlockObject) Equal ¶
func (n NestedBlockObject) Equal(other NestedBlockObject) bool
func (NestedBlockObject) Imports ¶
func (n NestedBlockObject) Imports() *schema.Imports
func (NestedBlockObject) Schema ¶
func (n NestedBlockObject) Schema() ([]byte, error)
type ObjectAttributeTypes ¶
type ObjectAttributeTypes struct {
// contains filtered or unexported fields
}
func NewObjectAttributeTypes ¶
func NewObjectAttributeTypes(o specschema.ObjectAttributeTypes) ObjectAttributeTypes
func (ObjectAttributeTypes) AttributeTypes ¶
func (o ObjectAttributeTypes) AttributeTypes() []byte
func (ObjectAttributeTypes) Equal ¶
func (o ObjectAttributeTypes) Equal(other ObjectAttributeTypes) bool
func (ObjectAttributeTypes) Imports ¶
func (o ObjectAttributeTypes) Imports() *schema.Imports
func (ObjectAttributeTypes) Schema ¶
func (o ObjectAttributeTypes) Schema() []byte
type OptionalRequired ¶
type OptionalRequired struct {
// contains filtered or unexported fields
}
func NewOptionalRequired ¶
func NewOptionalRequired(c specschema.OptionalRequired) OptionalRequired
func (OptionalRequired) Equal ¶
func (o OptionalRequired) Equal(other OptionalRequired) bool
func (OptionalRequired) IsOptional ¶
func (o OptionalRequired) IsOptional() bool
func (OptionalRequired) IsRequired ¶
func (o OptionalRequired) IsRequired() bool
func (OptionalRequired) Schema ¶
func (o OptionalRequired) Schema() []byte
type PlanModifierType ¶
type PlanModifierType string
const ( PlanModifierTypeBool PlanModifierType = "Bool" PlanModifierTypeFloat64 PlanModifierType = "Float64" PlanModifierTypeInt64 PlanModifierType = "Int64" PlanModifierTypeList PlanModifierType = "List" PlanModifierTypeMap PlanModifierType = "Map" PlanModifierTypeNumber PlanModifierType = "Number" PlanModifierTypeObject PlanModifierType = "Object" PlanModifierTypeSet PlanModifierType = "Set" PlanModifierTypeString PlanModifierType = "String" )
type PlanModifiers ¶
type PlanModifiers struct {
// contains filtered or unexported fields
}
func NewPlanModifiers ¶
func NewPlanModifiers(t PlanModifierType, c specschema.CustomPlanModifiers) PlanModifiers
func (PlanModifiers) Equal ¶
func (v PlanModifiers) Equal(other PlanModifiers) bool
func (PlanModifiers) Imports ¶
func (v PlanModifiers) Imports() *schema.Imports
func (PlanModifiers) Schema ¶
func (v PlanModifiers) Schema() []byte
type Sensitive ¶
type Sensitive struct {
// contains filtered or unexported fields
}
func NewSensitive ¶
func (Sensitive) IsSensitive ¶
type ValidatorType ¶
type ValidatorType string
const ( ValidatorTypeBool ValidatorType = "Bool" ValidatorTypeFloat64 ValidatorType = "Float64" ValidatorTypeInt64 ValidatorType = "Int64" ValidatorTypeList ValidatorType = "List" ValidatorTypeMap ValidatorType = "Map" ValidatorTypeNumber ValidatorType = "Number" ValidatorTypeObject ValidatorType = "Object" ValidatorTypeSet ValidatorType = "Set" ValidatorTypeString ValidatorType = "String" )
type Validators ¶
type Validators struct {
// contains filtered or unexported fields
}
func NewValidators ¶
func NewValidators(t ValidatorType, c specschema.CustomValidators) Validators
func (Validators) Equal ¶
func (v Validators) Equal(other Validators) bool
func (Validators) Imports ¶
func (v Validators) Imports() *schema.Imports
func (Validators) Schema ¶
func (v Validators) Schema() []byte
Source Files ¶
- computed_optional_required.go
- custom_type_collection.go
- custom_type_nested_collection.go
- custom_type_nested_object.go
- custom_type_object.go
- custom_type_primitive.go
- default_bool.go
- default_custom.go
- default_float64.go
- default_int64.go
- default_string.go
- deprecation_message.go
- description.go
- element_type.go
- nested_attribute_object.go
- nested_block_object.go
- object_attribute_types.go
- optional_required.go
- plan_modifiers.go
- sensitive.go
- validators.go