convert

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 (ComputedOptionalRequired) Equal

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

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 (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 (CustomTypeNestedCollection) 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 (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

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

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 (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 (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

NewNestedAttributeObject constructs a NestedAttributeObject which is used to generate a nested attribute object in the schema.

func (NestedAttributeObject) Equal

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

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 (ObjectAttributeTypes) AttributeTypes

func (o ObjectAttributeTypes) AttributeTypes() []byte

func (ObjectAttributeTypes) Equal

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 (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 (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 NewSensitive(s *bool) Sensitive

func (Sensitive) Equal

func (s Sensitive) Equal(other Sensitive) bool

func (Sensitive) IsSensitive

func (s Sensitive) IsSensitive() bool

func (Sensitive) Schema

func (s Sensitive) Schema() []byte

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 (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL