provider

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MPL-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v1.0.0

func Contains[T comparable](slice []T, value T) bool

Contains checks if slice contains a value

func New

func New(version string) func() provider.Provider

func NewAutonomousResource added in v1.2.0

func NewAutonomousResource() resource.Resource

func NewAvailabilityZonesDataSource added in v1.2.0

func NewAvailabilityZonesDataSource() datasource.DataSource

func NewCredentialsDataSource added in v1.0.0

func NewCredentialsDataSource() datasource.DataSource

func NewProjectsDataSource added in v1.0.0

func NewProjectsDataSource() datasource.DataSource

func NewServiceAllowListResource added in v1.0.0

func NewServiceAllowListResource() resource.Resource

func NewServiceDataSource added in v1.0.0

func NewServiceDataSource() datasource.DataSource

func NewServiceResource added in v1.0.0

func NewServiceResource() resource.Resource

func NewVersionsDataSource added in v1.0.0

func NewVersionsDataSource() datasource.DataSource

Types

type AllowListModel added in v1.0.0

type AllowListModel struct {
	IPAddress types.String `tfsdk:"ip"`
	Comment   types.String `tfsdk:"comment"`
}

type AutoScaleDiskAction added in v1.2.0

type AutoScaleDiskAction struct {
	ID                types.String `tfsdk:"id"`
	MaxStorageSizeGBs types.Int64  `tfsdk:"max_storage_size_gbs"`
}

type AutoScaleNodesHorizontalAction added in v1.2.0

type AutoScaleNodesHorizontalAction struct {
	ID       types.String `tfsdk:"id"`
	MinNodes types.Int64  `tfsdk:"min_nodes"`
	MaxNodes types.Int64  `tfsdk:"max_nodes"`
}

type AutoScaleNodesVerticalAction added in v1.2.0

type AutoScaleNodesVerticalAction struct {
	ID          types.String `tfsdk:"id"`
	MaxNodeSize types.String `tfsdk:"max_node_size"`
	MinNodeSize types.String `tfsdk:"min_node_size"`
}

type AutonomousResource added in v1.2.0

type AutonomousResource struct {
	// contains filtered or unexported fields
}

AutonomousResource defines the resource implementation.

func (*AutonomousResource) Configure added in v1.2.0

func (*AutonomousResource) Create added in v1.2.0

func (*AutonomousResource) Delete added in v1.2.0

func (*AutonomousResource) ImportState added in v1.2.0

func (*AutonomousResource) Metadata added in v1.2.0

func (*AutonomousResource) ModifyPlan added in v1.2.0

func (*AutonomousResource) Read added in v1.2.0

func (*AutonomousResource) Schema added in v1.2.0

func (*AutonomousResource) Update added in v1.2.0

type AutonomousResourceModel added in v1.2.0

type AutonomousResourceModel struct {
	ID                             types.String `tfsdk:"id"`
	ServiceID                      types.String `tfsdk:"service_id"`
	ServiceName                    types.String `tfsdk:"service_name"`
	AutoScaleDiskAction            types.Object `tfsdk:"auto_scale_disk"`
	AutoScaleNodesHorizontalAction types.Object `tfsdk:"auto_scale_nodes_horizontal"`
	AutoScaleNodesVerticalAction   types.Object `tfsdk:"auto_scale_nodes_vertical"`
}

AutonomousResourceModel describes the data source data model.

type AvailabilityZonesDataSource added in v1.2.0

type AvailabilityZonesDataSource struct {
	// contains filtered or unexported fields
}

AvailabilityZonesDataSource defines the data source implementation.

func (*AvailabilityZonesDataSource) Configure added in v1.2.0

func (*AvailabilityZonesDataSource) Metadata added in v1.2.0

func (*AvailabilityZonesDataSource) Read added in v1.2.0

func (*AvailabilityZonesDataSource) Schema added in v1.2.0

type AvailabilityZonesDataSourceModel added in v1.2.0

type AvailabilityZonesDataSourceModel struct {
	Region   types.String             `tfsdk:"region"`
	Provider types.String             `tfsdk:"filter_by_provider"`
	Zones    []AvailabilityZonesModel `tfsdk:"zones"`
}

AvailabilityZonesDataSourceModel describes the data source data model.

type AvailabilityZonesModel added in v1.2.0

type AvailabilityZonesModel struct {
	ID       types.String `tfsdk:"id"`
	Name     types.String `tfsdk:"name"`
	Region   types.String `tfsdk:"region"`
	Provider types.String `tfsdk:"provider"`
}

type CredentialsDataSource added in v1.0.0

type CredentialsDataSource struct {
	// contains filtered or unexported fields
}

CredentialsDataSource defines the data source implementation.

func (*CredentialsDataSource) Configure added in v1.0.0

func (*CredentialsDataSource) Metadata added in v1.0.0

func (*CredentialsDataSource) Read added in v1.0.0

func (*CredentialsDataSource) Schema added in v1.0.0

type CredentialsDataSourceDataSourceModel added in v1.0.0

type CredentialsDataSourceDataSourceModel struct {
	ID       types.String `tfsdk:"service_id"`
	Username types.String `tfsdk:"username"`
	Password types.String `tfsdk:"password"`
	Host     types.String `tfsdk:"host"`
}

type EndpointPortDataSourceModel added in v1.0.0

type EndpointPortDataSourceModel struct {
	Name    types.String `tfsdk:"name"`
	Port    types.Int64  `tfsdk:"port"`
	Purpose types.String `tfsdk:"purpose"`
}

type ProjectModel added in v1.0.0

type ProjectModel struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	IsDefault   types.Bool   `tfsdk:"is_default"`
}

type ProjectsDataSource added in v1.0.0

type ProjectsDataSource struct {
	// contains filtered or unexported fields
}

ProjectsDataSource defines the data source implementation.

func (*ProjectsDataSource) Configure added in v1.0.0

func (*ProjectsDataSource) Metadata added in v1.0.0

func (*ProjectsDataSource) Read added in v1.0.0

func (*ProjectsDataSource) Schema added in v1.0.0

type ProjectsDataSourceDataSourceModel added in v1.0.0

type ProjectsDataSourceDataSourceModel struct {
	Projects []ProjectModel `tfsdk:"projects"`
}

ProjectsDataSourceDataSourceModel describes the data source data model.

type ServiceAllowListResource added in v1.0.0

type ServiceAllowListResource struct {
	// contains filtered or unexported fields
}

ServiceAllowListResource defines the resource implementation.

func (*ServiceAllowListResource) Configure added in v1.0.0

func (*ServiceAllowListResource) Create added in v1.0.0

func (*ServiceAllowListResource) Delete added in v1.0.0

func (*ServiceAllowListResource) ImportState added in v1.0.0

func (*ServiceAllowListResource) Metadata added in v1.0.0

func (*ServiceAllowListResource) Read added in v1.0.0

func (*ServiceAllowListResource) Schema added in v1.0.0

func (*ServiceAllowListResource) Update added in v1.0.0

type ServiceAllowListResourceModel added in v1.0.0

type ServiceAllowListResourceModel struct {
	ID              types.String     `tfsdk:"service_id"`
	AllowList       []AllowListModel `tfsdk:"allow_list"`
	WaitForCreation types.Bool       `tfsdk:"wait_for_creation"`
	Timeouts        timeouts.Value   `tfsdk:"timeouts"`
}

ServiceAllowListResourceModel describes the data source data model.

type ServiceDataSource added in v1.0.0

type ServiceDataSource struct {
	// contains filtered or unexported fields
}

ServiceDataSource defines the data source implementation.

func (*ServiceDataSource) Configure added in v1.0.0

func (*ServiceDataSource) Metadata added in v1.0.0

func (*ServiceDataSource) Read added in v1.0.0

func (*ServiceDataSource) Schema added in v1.0.0

type ServiceDataSourceModel added in v1.0.0

type ServiceDataSourceModel struct {
	ID                 types.String                     `tfsdk:"service_id"`
	Name               types.String                     `tfsdk:"name"`
	Region             types.String                     `tfsdk:"region"`
	Provider           types.String                     `tfsdk:"cloud_provider"`
	Tier               types.String                     `tfsdk:"tier"`
	Topology           types.String                     `tfsdk:"topology"`
	Version            types.String                     `tfsdk:"version"`
	Architecture       types.String                     `tfsdk:"architecture"`
	Size               types.String                     `tfsdk:"size"`
	Nodes              types.Int64                      `tfsdk:"nodes"`
	SslEnabled         types.Bool                       `tfsdk:"ssl_enabled"`
	NosqlEnabled       types.Bool                       `tfsdk:"nosql_enabled"`
	FQDN               types.String                     `tfsdk:"fqdn"`
	Status             types.String                     `tfsdk:"status"`
	CreatedOn          types.Int64                      `tfsdk:"created_on"`
	UpdatedOn          types.Int64                      `tfsdk:"updated_on"`
	CreatedBy          types.String                     `tfsdk:"created_by"`
	UpdatedBy          types.String                     `tfsdk:"updated_by"`
	Endpoints          []ServiceEndpointDataSourceModel `tfsdk:"endpoints"`
	StorageVolume      *StorageVolumeDataSourceModel    `tfsdk:"storage_volume"`
	OutboundIps        []types.String                   `tfsdk:"outbound_ips"`
	IsActive           types.Bool                       `tfsdk:"is_active"`
	ServiceType        types.String                     `tfsdk:"service_type"`
	ReplicationEnabled types.Bool                       `tfsdk:"replication_enabled"`
	PrimaryHost        types.String                     `tfsdk:"primary_host"`
}

type ServiceEndpointDataSourceModel added in v1.0.0

type ServiceEndpointDataSourceModel struct {
	Name            types.String                  `tfsdk:"name"`
	Ports           []EndpointPortDataSourceModel `tfsdk:"ports"`
	Mechanism       types.String                  `tfsdk:"mechanism"`
	AllowedAccounts []types.String                `tfsdk:"allowed_accounts"`
	EndpointService types.String                  `tfsdk:"endpoint_service"`
	Visibility      types.String                  `tfsdk:"visibility"`
}

type ServiceResource added in v1.0.0

type ServiceResource struct {
	// contains filtered or unexported fields
}

ServiceResource defines the resource implementation.

func (*ServiceResource) Configure added in v1.0.0

func (*ServiceResource) Create added in v1.0.0

func (*ServiceResource) Delete added in v1.0.0

func (*ServiceResource) ImportState added in v1.0.0

func (*ServiceResource) Metadata added in v1.0.0

func (*ServiceResource) ModifyPlan added in v1.0.0

func (*ServiceResource) Read added in v1.0.0

func (*ServiceResource) Schema added in v1.0.0

func (*ServiceResource) Update added in v1.0.0

func (*ServiceResource) UpgradeState added in v1.2.2

func (r *ServiceResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader

type ServiceResourceModel added in v1.0.0

type ServiceResourceModel struct {
	ID                 types.String   `tfsdk:"id"`
	Name               types.String   `tfsdk:"name"`
	ProjectID          types.String   `tfsdk:"project_id"`
	ServiceType        types.String   `tfsdk:"service_type"`
	Provider           types.String   `tfsdk:"cloud_provider"`
	Region             types.String   `tfsdk:"region"`
	Version            types.String   `tfsdk:"version"`
	Nodes              types.Int64    `tfsdk:"nodes"`
	Architecture       types.String   `tfsdk:"architecture"`
	Size               types.String   `tfsdk:"size"`
	Topology           types.String   `tfsdk:"topology"`
	Storage            types.Int64    `tfsdk:"storage"`
	VolumeIOPS         types.Int64    `tfsdk:"volume_iops"`
	SSLEnabled         types.Bool     `tfsdk:"ssl_enabled"`
	NoSQLEnabled       types.Bool     `tfsdk:"nosql_enabled"`
	VolumeType         types.String   `tfsdk:"volume_type"`
	WaitForCreation    types.Bool     `tfsdk:"wait_for_creation"`
	Timeouts           timeouts.Value `tfsdk:"timeouts"`
	Mechanism          types.String   `tfsdk:"endpoint_mechanism"`
	AllowedAccounts    types.List     `tfsdk:"endpoint_allowed_accounts"`
	EndpointService    types.String   `tfsdk:"endpoint_service"`
	WaitForDeletion    types.Bool     `tfsdk:"wait_for_deletion"`
	ReplicationEnabled types.Bool     `tfsdk:"replication_enabled"`
	PrimaryHost        types.String   `tfsdk:"primary_host"`
	IsActive           types.Bool     `tfsdk:"is_active"`
	WaitForUpdate      types.Bool     `tfsdk:"wait_for_update"`
	DeletionProtection types.Bool     `tfsdk:"deletion_protection"`
	AllowList          types.List     `tfsdk:"allow_list"`
	MaxscaleNodes      types.Int64    `tfsdk:"maxscale_nodes"`
	MaxscaleSize       types.String   `tfsdk:"maxscale_size"`
	FQDN               types.String   `tfsdk:"fqdn"`
	AvailabilityZone   types.String   `tfsdk:"availability_zone"`
}

ServiceResourceModel describes the resource data model.

type ServiceResourceNamedPortModel added in v1.0.0

type ServiceResourceNamedPortModel struct {
	Name types.String `tfsdk:"name"`
	Port types.Int64  `tfsdk:"port"`
}

ServiceResourceNamedPortModel is an endpoint port

type SkySQLProviderModel added in v1.0.0

type SkySQLProviderModel struct {
	BaseURL     types.String `tfsdk:"base_url"`
	AccessToken types.String `tfsdk:"access_token"`
}

SkySQLProviderModel describes the provider data model.

type StorageVolumeDataSourceModel added in v1.0.0

type StorageVolumeDataSourceModel struct {
	Size       types.Int64  `tfsdk:"size"`
	VolumeType types.String `tfsdk:"volume_type"`
	IOPS       types.Int64  `tfsdk:"iops"`
}

type VersionDataSourceDataSourceModel added in v1.0.0

type VersionDataSourceDataSourceModel struct {
	Topology types.String   `tfsdk:"topology"`
	Versions []VersionModel `tfsdk:"versions"`
}

type VersionModel added in v1.0.0

type VersionModel struct {
	Id              types.String `tfsdk:"id"`
	Name            types.String `tfsdk:"name"`
	Version         types.String `tfsdk:"version"`
	Topology        types.String `tfsdk:"topology"`
	Product         types.String `tfsdk:"product"`
	DisplayName     types.String `tfsdk:"display_name"`
	IsMajor         types.Bool   `tfsdk:"is_major"`
	ReleaseDate     types.String `tfsdk:"release_date"`
	ReleaseNotesUrl types.String `tfsdk:"release_notes_url"`
}

type VersionsDataSource added in v1.0.0

type VersionsDataSource struct {
	// contains filtered or unexported fields
}

VersionsDataSource defines the data source implementation.

func (*VersionsDataSource) Configure added in v1.0.0

func (*VersionsDataSource) Metadata added in v1.0.0

func (*VersionsDataSource) Read added in v1.0.0

func (*VersionsDataSource) Schema added in v1.0.0

Jump to

Keyboard shortcuts

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