provider_generate

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneratorBoolAttribute

type GeneratorBoolAttribute struct {
	schema.BoolAttribute

	AssociatedExternalType *generatorschema.AssocExtType
	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType *specschema.CustomType
	Validators specschema.BoolValidators
}

func (GeneratorBoolAttribute) AttrType added in v0.2.0

AttrType returns a string representation of a basetypes.BoolTypable type.

func (GeneratorBoolAttribute) AttrValue added in v0.2.0

AttrValue returns a string representation of a basetypes.BoolValuable type.

func (GeneratorBoolAttribute) CustomTypeAndValue added in v0.2.0

func (g GeneratorBoolAttribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorBoolAttribute) Equal

func (GeneratorBoolAttribute) From added in v0.2.0

func (GeneratorBoolAttribute) GeneratorSchemaType

func (g GeneratorBoolAttribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorBoolAttribute) Imports

func (GeneratorBoolAttribute) ModelField

func (GeneratorBoolAttribute) Schema

func (GeneratorBoolAttribute) To added in v0.2.0

func (GeneratorBoolAttribute) ToFromFunctions added in v0.2.0

func (g GeneratorBoolAttribute) ToFromFunctions(name string) ([]byte, error)

type GeneratorFloat64Attribute

type GeneratorFloat64Attribute struct {
	schema.Float64Attribute

	AssociatedExternalType *generatorschema.AssocExtType
	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType *specschema.CustomType
	Validators specschema.Float64Validators
}

func (GeneratorFloat64Attribute) AttrType added in v0.2.0

AttrType returns a string representation of a basetypes.Float64Typable type.

func (GeneratorFloat64Attribute) AttrValue added in v0.2.0

AttrValue returns a string representation of a basetypes.Float64Valuable type.

func (GeneratorFloat64Attribute) CustomTypeAndValue added in v0.2.0

func (g GeneratorFloat64Attribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorFloat64Attribute) Equal

func (GeneratorFloat64Attribute) From added in v0.2.0

func (GeneratorFloat64Attribute) GeneratorSchemaType

func (g GeneratorFloat64Attribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorFloat64Attribute) Imports

func (GeneratorFloat64Attribute) ModelField

func (GeneratorFloat64Attribute) Schema

func (GeneratorFloat64Attribute) To added in v0.2.0

func (GeneratorFloat64Attribute) ToFromFunctions added in v0.2.0

func (g GeneratorFloat64Attribute) ToFromFunctions(name string) ([]byte, error)

type GeneratorInt64Attribute

type GeneratorInt64Attribute struct {
	schema.Int64Attribute

	AssociatedExternalType *generatorschema.AssocExtType
	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType *specschema.CustomType
	Validators specschema.Int64Validators
}

func (GeneratorInt64Attribute) AttrType added in v0.2.0

AttrType returns a string representation of a basetypes.Int64Typable type.

func (GeneratorInt64Attribute) AttrValue added in v0.2.0

AttrValue returns a string representation of a basetypes.Int64Valuable type.

func (GeneratorInt64Attribute) CustomTypeAndValue added in v0.2.0

func (g GeneratorInt64Attribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorInt64Attribute) Equal

func (GeneratorInt64Attribute) From added in v0.2.0

func (GeneratorInt64Attribute) GeneratorSchemaType

func (g GeneratorInt64Attribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorInt64Attribute) Imports

func (GeneratorInt64Attribute) ModelField

func (GeneratorInt64Attribute) Schema

func (GeneratorInt64Attribute) To added in v0.2.0

func (GeneratorInt64Attribute) ToFromFunctions added in v0.2.0

func (g GeneratorInt64Attribute) ToFromFunctions(name string) ([]byte, error)

type GeneratorListAttribute

type GeneratorListAttribute struct {
	schema.ListAttribute

	AssociatedExternalType *generatorschema.AssocExtType
	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType  *specschema.CustomType
	ElementType specschema.ElementType
	Validators  specschema.ListValidators
}

func (GeneratorListAttribute) AttrType added in v0.3.0

AttrType returns a string representation of a basetypes.ListTypable type.

func (GeneratorListAttribute) AttrValue added in v0.3.0

AttrValue returns a string representation of a basetypes.ListValuable type.

func (GeneratorListAttribute) CollectionType added in v0.3.0

func (g GeneratorListAttribute) CollectionType() (map[string]string, error)

CollectionType returns string representations of the element type (e.g., types.BoolType), and type value function (e.g., types.ListValue) if there is no associated external type.

func (GeneratorListAttribute) CustomTypeAndValue added in v0.3.0

func (g GeneratorListAttribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorListAttribute) ElemType

func (GeneratorListAttribute) Equal

Equal does not delegate to g.ListAttribute.Equal(h.ListAttribute) as the call returns false when the ElementType is nil.

func (GeneratorListAttribute) From added in v0.3.0

func (GeneratorListAttribute) GeneratorSchemaType

func (g GeneratorListAttribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorListAttribute) Imports

func (GeneratorListAttribute) ModelField

func (GeneratorListAttribute) Schema

func (GeneratorListAttribute) To added in v0.3.0

func (GeneratorListAttribute) ToFromFunctions added in v0.3.0

func (g GeneratorListAttribute) ToFromFunctions(name string) ([]byte, error)

type GeneratorListNestedAttribute

type GeneratorListNestedAttribute struct {
	schema.ListNestedAttribute

	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType   *specschema.CustomType
	NestedObject GeneratorNestedAttributeObject
	Validators   specschema.ListValidators
}

func (GeneratorListNestedAttribute) AssocExtType

func (GeneratorListNestedAttribute) CustomTypeAndValue

func (g GeneratorListNestedAttribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorListNestedAttribute) Equal

func (GeneratorListNestedAttribute) From added in v0.3.0

func (GeneratorListNestedAttribute) GeneratorSchemaType

func (g GeneratorListNestedAttribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorListNestedAttribute) GetAttributes

func (GeneratorListNestedAttribute) Imports

func (GeneratorListNestedAttribute) ModelField

func (GeneratorListNestedAttribute) Schema

func (GeneratorListNestedAttribute) To added in v0.3.0

func (GeneratorListNestedAttribute) ToFromFunctions

func (g GeneratorListNestedAttribute) ToFromFunctions(name string) ([]byte, error)

type GeneratorListNestedBlock

type GeneratorListNestedBlock struct {
	schema.ListNestedBlock

	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType   *specschema.CustomType
	NestedObject GeneratorNestedBlockObject
	Validators   specschema.ListValidators
}

func (GeneratorListNestedBlock) AssocExtType

func (GeneratorListNestedBlock) CustomTypeAndValue

func (g GeneratorListNestedBlock) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorListNestedBlock) Equal

func (GeneratorListNestedBlock) From added in v0.3.0

func (GeneratorListNestedBlock) GeneratorSchemaType

func (g GeneratorListNestedBlock) GeneratorSchemaType() generatorschema.Type

func (GeneratorListNestedBlock) GetAttributes

func (GeneratorListNestedBlock) GetBlocks

func (GeneratorListNestedBlock) Imports

func (GeneratorListNestedBlock) ModelField

func (GeneratorListNestedBlock) Schema

func (GeneratorListNestedBlock) To added in v0.3.0

func (GeneratorListNestedBlock) ToFromFunctions

func (g GeneratorListNestedBlock) ToFromFunctions(name string) ([]byte, error)

type GeneratorMapAttribute

type GeneratorMapAttribute struct {
	schema.MapAttribute

	AssociatedExternalType *generatorschema.AssocExtType
	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType  *specschema.CustomType
	ElementType specschema.ElementType
	Validators  specschema.MapValidators
}

func (GeneratorMapAttribute) AttrType added in v0.3.0

AttrType returns a string representation of a basetypes.MapTypable type.

func (GeneratorMapAttribute) AttrValue added in v0.3.0

AttrValue returns a string representation of a basetypes.MapValuable type.

func (GeneratorMapAttribute) CollectionType added in v0.3.0

func (g GeneratorMapAttribute) CollectionType() (map[string]string, error)

CollectionType returns string representations of the element type (e.g., types.BoolType), and type value function (e.g., types.MapValue) if there is no associated external type.

func (GeneratorMapAttribute) CustomTypeAndValue added in v0.3.0

func (g GeneratorMapAttribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorMapAttribute) ElemType

func (GeneratorMapAttribute) Equal

Equal does not delegate to g.MapAttribute.Equal(h.MapAttribute) as the call returns false when the ElementType is nil.

func (GeneratorMapAttribute) From added in v0.3.0

func (GeneratorMapAttribute) GeneratorSchemaType

func (g GeneratorMapAttribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorMapAttribute) Imports

func (GeneratorMapAttribute) ModelField

func (GeneratorMapAttribute) Schema

func (GeneratorMapAttribute) To added in v0.3.0

func (GeneratorMapAttribute) ToFromFunctions added in v0.3.0

func (g GeneratorMapAttribute) ToFromFunctions(name string) ([]byte, error)

type GeneratorMapNestedAttribute

type GeneratorMapNestedAttribute struct {
	schema.MapNestedAttribute

	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType   *specschema.CustomType
	NestedObject GeneratorNestedAttributeObject
	Validators   specschema.MapValidators
}

func (GeneratorMapNestedAttribute) AssocExtType

func (GeneratorMapNestedAttribute) CustomTypeAndValue

func (g GeneratorMapNestedAttribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorMapNestedAttribute) Equal

func (GeneratorMapNestedAttribute) From added in v0.3.0

func (GeneratorMapNestedAttribute) GeneratorSchemaType

func (g GeneratorMapNestedAttribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorMapNestedAttribute) GetAttributes

func (GeneratorMapNestedAttribute) Imports

func (GeneratorMapNestedAttribute) ModelField

func (GeneratorMapNestedAttribute) Schema

func (GeneratorMapNestedAttribute) To added in v0.3.0

func (GeneratorMapNestedAttribute) ToFromFunctions

func (g GeneratorMapNestedAttribute) ToFromFunctions(name string) ([]byte, error)

type GeneratorNestedAttributeObject

type GeneratorNestedAttributeObject struct {
	Attributes schema.GeneratorAttributes

	AssociatedExternalType *schema.AssocExtType
	CustomType             *specschema.CustomType
	Validators             specschema.ObjectValidators
}

func (GeneratorNestedAttributeObject) Equal

type GeneratorNestedBlockObject

type GeneratorNestedBlockObject struct {
	Attributes schema.GeneratorAttributes
	Blocks     schema.GeneratorBlocks

	AssociatedExternalType *schema.AssocExtType
	CustomType             *specschema.CustomType
	Validators             specschema.ObjectValidators
}

func (GeneratorNestedBlockObject) Equal

type GeneratorNumberAttribute

type GeneratorNumberAttribute struct {
	schema.NumberAttribute

	AssociatedExternalType *generatorschema.AssocExtType
	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType *specschema.CustomType
	Validators specschema.NumberValidators
}

func (GeneratorNumberAttribute) AttrType added in v0.2.0

AttrType returns a string representation of a basetypes.NumberTypable type.

func (GeneratorNumberAttribute) AttrValue added in v0.2.0

AttrValue returns a string representation of a basetypes.NumberValuable type.

func (GeneratorNumberAttribute) CustomTypeAndValue added in v0.2.0

func (g GeneratorNumberAttribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorNumberAttribute) Equal

func (GeneratorNumberAttribute) From added in v0.2.0

func (GeneratorNumberAttribute) GeneratorSchemaType

func (g GeneratorNumberAttribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorNumberAttribute) Imports

func (GeneratorNumberAttribute) ModelField

func (GeneratorNumberAttribute) Schema

func (GeneratorNumberAttribute) To added in v0.2.0

func (GeneratorNumberAttribute) ToFromFunctions added in v0.2.0

func (g GeneratorNumberAttribute) ToFromFunctions(name string) ([]byte, error)

type GeneratorObjectAttribute

type GeneratorObjectAttribute struct {
	schema.ObjectAttribute

	AssociatedExternalType *generatorschema.AssocExtType
	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	AttributeTypes specschema.ObjectAttributeTypes
	CustomType     *specschema.CustomType
	Validators     specschema.ObjectValidators
}

func (GeneratorObjectAttribute) AttrType added in v0.3.0

AttrType returns a string representation of a basetypes.ObjectTypable type.

func (GeneratorObjectAttribute) AttrTypes

func (GeneratorObjectAttribute) AttrValue added in v0.3.0

AttrValue returns a string representation of a basetypes.ListValuable type.

func (GeneratorObjectAttribute) CustomTypeAndValue added in v0.3.0

func (g GeneratorObjectAttribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorObjectAttribute) Equal

func (GeneratorObjectAttribute) From added in v0.3.0

func (GeneratorObjectAttribute) GeneratorSchemaType

func (g GeneratorObjectAttribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorObjectAttribute) Imports

func (GeneratorObjectAttribute) ModelField

func (GeneratorObjectAttribute) Schema

func (GeneratorObjectAttribute) To added in v0.3.0

func (GeneratorObjectAttribute) ToFromFunctions added in v0.3.0

func (g GeneratorObjectAttribute) ToFromFunctions(name string) ([]byte, error)

type GeneratorSetAttribute

type GeneratorSetAttribute struct {
	schema.SetAttribute

	AssociatedExternalType *generatorschema.AssocExtType
	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType  *specschema.CustomType
	ElementType specschema.ElementType
	Validators  specschema.SetValidators
}

func (GeneratorSetAttribute) AttrType added in v0.3.0

AttrType returns a string representation of a basetypes.SetTypable type.

func (GeneratorSetAttribute) AttrValue added in v0.3.0

AttrValue returns a string representation of a basetypes.SetValuable type.

func (GeneratorSetAttribute) CollectionType added in v0.3.0

func (g GeneratorSetAttribute) CollectionType() (map[string]string, error)

CollectionType returns string representations of the element type (e.g., types.BoolType), and type value function (e.g., types.SetValue) if there is no associated external type.

func (GeneratorSetAttribute) CustomTypeAndValue added in v0.3.0

func (g GeneratorSetAttribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorSetAttribute) ElemType

func (GeneratorSetAttribute) Equal

Equal does not delegate to g.SetAttribute.Equal(h.SetAttribute) as the call returns false when the ElementType is nil.

func (GeneratorSetAttribute) From added in v0.3.0

func (GeneratorSetAttribute) GeneratorSchemaType

func (g GeneratorSetAttribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorSetAttribute) Imports

func (GeneratorSetAttribute) ModelField

func (GeneratorSetAttribute) Schema

func (GeneratorSetAttribute) To added in v0.3.0

func (GeneratorSetAttribute) ToFromFunctions added in v0.3.0

func (g GeneratorSetAttribute) ToFromFunctions(name string) ([]byte, error)

type GeneratorSetNestedAttribute

type GeneratorSetNestedAttribute struct {
	schema.SetNestedAttribute

	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType   *specschema.CustomType
	NestedObject GeneratorNestedAttributeObject
	Validators   specschema.SetValidators
}

func (GeneratorSetNestedAttribute) AssocExtType

func (GeneratorSetNestedAttribute) CustomTypeAndValue

func (g GeneratorSetNestedAttribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorSetNestedAttribute) Equal

func (GeneratorSetNestedAttribute) From added in v0.3.0

func (GeneratorSetNestedAttribute) GeneratorSchemaType

func (g GeneratorSetNestedAttribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorSetNestedAttribute) GetAttributes

func (GeneratorSetNestedAttribute) Imports

func (GeneratorSetNestedAttribute) ModelField

func (GeneratorSetNestedAttribute) Schema

func (GeneratorSetNestedAttribute) To added in v0.3.0

func (GeneratorSetNestedAttribute) ToFromFunctions

func (g GeneratorSetNestedAttribute) ToFromFunctions(name string) ([]byte, error)

type GeneratorSetNestedBlock

type GeneratorSetNestedBlock struct {
	schema.SetNestedBlock

	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType   *specschema.CustomType
	NestedObject GeneratorNestedBlockObject
	Validators   specschema.SetValidators
}

func (GeneratorSetNestedBlock) AssocExtType

func (GeneratorSetNestedBlock) CustomTypeAndValue

func (g GeneratorSetNestedBlock) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorSetNestedBlock) Equal

func (GeneratorSetNestedBlock) From added in v0.3.0

func (GeneratorSetNestedBlock) GeneratorSchemaType

func (g GeneratorSetNestedBlock) GeneratorSchemaType() generatorschema.Type

func (GeneratorSetNestedBlock) GetAttributes

func (GeneratorSetNestedBlock) GetBlocks

func (GeneratorSetNestedBlock) Imports

func (GeneratorSetNestedBlock) ModelField

func (GeneratorSetNestedBlock) Schema

func (GeneratorSetNestedBlock) To added in v0.3.0

func (GeneratorSetNestedBlock) ToFromFunctions

func (g GeneratorSetNestedBlock) ToFromFunctions(name string) ([]byte, error)

type GeneratorSingleNestedAttribute

type GeneratorSingleNestedAttribute struct {
	schema.SingleNestedAttribute

	AssociatedExternalType *generatorschema.AssocExtType
	Attributes             generatorschema.GeneratorAttributes
	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType *specschema.CustomType
	Validators specschema.ObjectValidators
}

func (GeneratorSingleNestedAttribute) AssocExtType

func (GeneratorSingleNestedAttribute) CustomTypeAndValue

func (g GeneratorSingleNestedAttribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorSingleNestedAttribute) Equal

func (GeneratorSingleNestedAttribute) From added in v0.3.0

func (GeneratorSingleNestedAttribute) GeneratorSchemaType

func (g GeneratorSingleNestedAttribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorSingleNestedAttribute) GetAttributes

func (GeneratorSingleNestedAttribute) Imports

func (GeneratorSingleNestedAttribute) ModelField

func (GeneratorSingleNestedAttribute) Schema

func (GeneratorSingleNestedAttribute) To added in v0.3.0

func (GeneratorSingleNestedAttribute) ToFromFunctions

func (g GeneratorSingleNestedAttribute) ToFromFunctions(name string) ([]byte, error)

type GeneratorSingleNestedBlock

type GeneratorSingleNestedBlock struct {
	schema.SingleNestedBlock

	AssociatedExternalType *generatorschema.AssocExtType
	Attributes             generatorschema.GeneratorAttributes
	Blocks                 generatorschema.GeneratorBlocks
	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType *specschema.CustomType
	Validators specschema.ObjectValidators
}

func (GeneratorSingleNestedBlock) AssocExtType

func (GeneratorSingleNestedBlock) CustomTypeAndValue

func (g GeneratorSingleNestedBlock) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorSingleNestedBlock) Equal

func (GeneratorSingleNestedBlock) From added in v0.3.0

func (GeneratorSingleNestedBlock) GeneratorSchemaType

func (g GeneratorSingleNestedBlock) GeneratorSchemaType() generatorschema.Type

func (GeneratorSingleNestedBlock) GetAttributes

func (GeneratorSingleNestedBlock) GetBlocks

func (GeneratorSingleNestedBlock) Imports

func (GeneratorSingleNestedBlock) ModelField

func (GeneratorSingleNestedBlock) Schema

func (GeneratorSingleNestedBlock) To added in v0.3.0

func (GeneratorSingleNestedBlock) ToFromFunctions

func (g GeneratorSingleNestedBlock) ToFromFunctions(name string) ([]byte, error)

type GeneratorStringAttribute

type GeneratorStringAttribute struct {
	schema.StringAttribute

	AssociatedExternalType *generatorschema.AssocExtType
	// The "specschema" types are used instead of the types within the attribute
	// because support for extracting custom import information is required.
	CustomType *specschema.CustomType
	Validators specschema.StringValidators
}

func (GeneratorStringAttribute) AttrType added in v0.2.0

AttrType returns a string representation of a basetypes.StringTypable type.

func (GeneratorStringAttribute) AttrValue added in v0.2.0

AttrValue returns a string representation of a basetypes.StringValuable type.

func (GeneratorStringAttribute) CustomTypeAndValue added in v0.2.0

func (g GeneratorStringAttribute) CustomTypeAndValue(name string) ([]byte, error)

func (GeneratorStringAttribute) Equal

func (GeneratorStringAttribute) From added in v0.2.0

func (GeneratorStringAttribute) GeneratorSchemaType

func (g GeneratorStringAttribute) GeneratorSchemaType() generatorschema.Type

func (GeneratorStringAttribute) Imports

func (GeneratorStringAttribute) ModelField

func (GeneratorStringAttribute) Schema

func (GeneratorStringAttribute) To added in v0.2.0

func (GeneratorStringAttribute) ToFromFunctions added in v0.2.0

func (g GeneratorStringAttribute) ToFromFunctions(name string) ([]byte, error)

Jump to

Keyboard shortcuts

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