cluster

package
v0.134.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigAttrTypes = map[string]attr.Type{
	"version":   types.StringType,
	"resources": types.ObjectType{AttrTypes: ResourcesAttrTypes},
}
View Source
var ResourcesAttrTypes = map[string]attr.Type{
	"resource_preset_id": types.StringType,
	"disk_size":          types.Int64Type,
	"disk_type_id":       types.StringType,
}

Functions

func NewPostgreSQLClusterResourceBeta

func NewPostgreSQLClusterResourceBeta() resource.Resource

func RetryListPGHosts

func RetryListPGHosts(ctx context.Context, sdk *ycsdk.SDK, diag *diag.Diagnostics, cid string) ([]*postgresql.Host, error)

retry with 1, 2, 4, 8, 16, 32, 64, 128 seconds if no succeess while at least one host is unknown and there is no master

Types

type Cluster

type Cluster struct {
	Id          types.String `tfsdk:"id"`
	FolderId    types.String `tfsdk:"folder_id"`
	NetworkId   types.String `tfsdk:"network_id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Environment types.String `tfsdk:"environment"`
	Labels      types.Map    `tfsdk:"labels"`
	Config      types.Object `tfsdk:"config"`
	HostSpecs   types.Map    `tfsdk:"hosts"`
}

type Config

type Config struct {
	Version   types.String `tfsdk:"version"`
	Resources types.Object `tfsdk:"resources"`
}

type Host

type Host struct {
	Zone              types.String `tfsdk:"zone"`
	SubnetId          types.String `tfsdk:"subnet_id"`
	AssignPublicIp    types.Bool   `tfsdk:"assign_public_ip"`
	FQDN              types.String `tfsdk:"fqdn"`
	ReplicationSource types.String `tfsdk:"replication_source"`
}

type Resources

type Resources struct {
	ResourcePresetID types.String `tfsdk:"resource_preset_id"`
	DiskSize         types.Int64  `tfsdk:"disk_size"`
	DiskTypeID       types.String `tfsdk:"disk_type_id"`
}

Jump to

Keyboard shortcuts

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