Documentation ¶
Index ¶
- func DatabaseResourceSchema(ctx context.Context) schema.Schema
- type DatabaseModel
- type DatabaseType
- func (t DatabaseType) Equal(o attr.Type) bool
- func (t DatabaseType) String() string
- func (t DatabaseType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t DatabaseType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t DatabaseType) ValueType(ctx context.Context) attr.Value
- type DatabaseValue
- func NewDatabaseValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DatabaseValue, diag.Diagnostics)
- func NewDatabaseValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DatabaseValue
- func NewDatabaseValueNull() DatabaseValue
- func NewDatabaseValueUnknown() DatabaseValue
- func (v DatabaseValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v DatabaseValue) Equal(o attr.Value) bool
- func (v DatabaseValue) IsNull() bool
- func (v DatabaseValue) IsUnknown() bool
- func (v DatabaseValue) String() string
- func (v DatabaseValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v DatabaseValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v DatabaseValue) Type(ctx context.Context) attr.Type
- type SeedType
- func (t SeedType) Equal(o attr.Type) bool
- func (t SeedType) String() string
- func (t SeedType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t SeedType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t SeedType) ValueType(ctx context.Context) attr.Value
- type SeedValue
- func (v SeedValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v SeedValue) Equal(o attr.Value) bool
- func (v SeedValue) IsNull() bool
- func (v SeedValue) IsUnknown() bool
- func (v SeedValue) String() string
- func (v SeedValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v SeedValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v SeedValue) Type(ctx context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DatabaseModel ¶
type DatabaseModel struct { Database DatabaseValue `tfsdk:"database"` Group types.String `tfsdk:"group"` Id types.String `tfsdk:"id"` IsSchema types.Bool `tfsdk:"is_schema"` Name types.String `tfsdk:"name"` Schema types.String `tfsdk:"schema"` Seed SeedValue `tfsdk:"seed"` AllowAttach types.Bool `tfsdk:"allow_attach"` BlockReads types.Bool `tfsdk:"block_reads"` BlockWrites types.Bool `tfsdk:"block_writes"` SizeLimit types.String `tfsdk:"size_limit"` }
type DatabaseType ¶
type DatabaseType struct {
basetypes.ObjectType
}
func (DatabaseType) String ¶
func (t DatabaseType) String() string
func (DatabaseType) ValueFromObject ¶
func (t DatabaseType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (DatabaseType) ValueFromTerraform ¶
type DatabaseValue ¶
type DatabaseValue struct { AllowAttach basetypes.BoolValue `tfsdk:"allow_attach"` Archived basetypes.BoolValue `tfsdk:"archived"` BlockReads basetypes.BoolValue `tfsdk:"block_reads"` BlockWrites basetypes.BoolValue `tfsdk:"block_writes"` DbId basetypes.StringValue `tfsdk:"db_id"` Group basetypes.StringValue `tfsdk:"group"` Hostname basetypes.StringValue `tfsdk:"hostname"` IsSchema basetypes.BoolValue `tfsdk:"is_schema"` Name basetypes.StringValue `tfsdk:"name"` PrimaryRegion basetypes.StringValue `tfsdk:"primary_region"` Regions basetypes.ListValue `tfsdk:"regions"` Schema basetypes.StringValue `tfsdk:"schema"` DatabaseType basetypes.StringValue `tfsdk:"type"` Version basetypes.StringValue `tfsdk:"version"` // contains filtered or unexported fields }
func NewDatabaseValue ¶
func NewDatabaseValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DatabaseValue, diag.Diagnostics)
func NewDatabaseValueMust ¶
func NewDatabaseValueNull ¶
func NewDatabaseValueNull() DatabaseValue
func NewDatabaseValueUnknown ¶
func NewDatabaseValueUnknown() DatabaseValue
func (DatabaseValue) AttributeTypes ¶
func (DatabaseValue) IsNull ¶
func (v DatabaseValue) IsNull() bool
func (DatabaseValue) IsUnknown ¶
func (v DatabaseValue) IsUnknown() bool
func (DatabaseValue) String ¶
func (v DatabaseValue) String() string
func (DatabaseValue) ToObjectValue ¶
func (v DatabaseValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (DatabaseValue) ToTerraformValue ¶
type SeedType ¶
type SeedType struct {
basetypes.ObjectType
}
func (SeedType) ValueFromObject ¶
func (t SeedType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (SeedType) ValueFromTerraform ¶
type SeedValue ¶
type SeedValue struct { Name basetypes.StringValue `tfsdk:"name"` Timestamp basetypes.StringValue `tfsdk:"timestamp"` SeedType basetypes.StringValue `tfsdk:"type"` Url basetypes.StringValue `tfsdk:"url"` // contains filtered or unexported fields }
func NewSeedValue ¶
func NewSeedValueMust ¶
func NewSeedValueNull ¶
func NewSeedValueNull() SeedValue
func NewSeedValueUnknown ¶
func NewSeedValueUnknown() SeedValue
func (SeedValue) AttributeTypes ¶
func (SeedValue) ToObjectValue ¶
func (v SeedValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (SeedValue) ToTerraformValue ¶
Click to show internal directories.
Click to hide internal directories.