datasource_database

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatabaseDataSourceSchema

func DatabaseDataSourceSchema(ctx context.Context) schema.Schema

Types

type DatabaseModel

type DatabaseModel struct {
	Database DatabaseValue `tfsdk:"database"`
	Id       types.String  `tfsdk:"id"`
}

type DatabaseType

type DatabaseType struct {
	basetypes.ObjectType
}

func (DatabaseType) Equal

func (t DatabaseType) Equal(o attr.Type) bool

func (DatabaseType) String

func (t DatabaseType) String() string

func (DatabaseType) ValueFromObject

func (DatabaseType) ValueFromTerraform

func (t DatabaseType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (DatabaseType) ValueType

func (t DatabaseType) ValueType(ctx context.Context) attr.Value

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 NewDatabaseValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DatabaseValue

func NewDatabaseValueNull

func NewDatabaseValueNull() DatabaseValue

func NewDatabaseValueUnknown

func NewDatabaseValueUnknown() DatabaseValue

func (DatabaseValue) AttributeTypes

func (v DatabaseValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (DatabaseValue) Equal

func (v DatabaseValue) Equal(o attr.Value) bool

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 (DatabaseValue) ToTerraformValue

func (v DatabaseValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (DatabaseValue) Type

func (v DatabaseValue) Type(ctx context.Context) attr.Type

Jump to

Keyboard shortcuts

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