tdh

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvHost     = "TDH_HOST"
	EnvUsername = "TDH_USERNAME"
	EnvPassword = "TDH_PASSWORD"
	EnvOrgId    = "TDH_ORG_ID"
)

Variables

This section is empty.

Functions

func New

func New() provider.Provider

New is a helper function to simplify provider server and testing implementation.

func NewBackupDataSource added in v0.0.5

func NewBackupDataSource() datasource.DataSource

NewBackupDataSource is a helper function to simplify the provider implementation.

func NewCertificateResource

func NewCertificateResource() resource.Resource

func NewCertificatesDatasource

func NewCertificatesDatasource() datasource.DataSource

NewCertificatesDatasource is a helper function to simplify the provider implementation.

func NewCloudAccountResource

func NewCloudAccountResource() resource.Resource

func NewCloudAccountsDatasource

func NewCloudAccountsDatasource() datasource.DataSource

NewCloudAccountsDatasource is a helper function to simplify the provider implementation.

func NewClusterBackupResource added in v0.0.6

func NewClusterBackupResource() resource.Resource

func NewClusterMetadataDataSource

func NewClusterMetadataDataSource() datasource.DataSource

func NewClusterNetworkPoliciesAssociationResource

func NewClusterNetworkPoliciesAssociationResource() resource.Resource

func NewClusterResource

func NewClusterResource() resource.Resource

func NewClusterTargetVersionsDataSource added in v0.0.7

func NewClusterTargetVersionsDataSource() datasource.DataSource

func NewClusterVersionsDataSource added in v0.0.6

func NewClusterVersionsDataSource() datasource.DataSource

func NewClustersDatasource

func NewClustersDatasource() datasource.DataSource

NewClustersDatasource is a helper function to simplify the provider implementation.

func NewDataPlaneDatasource added in v0.0.5

func NewDataPlaneDatasource() datasource.DataSource

NewDataPlaneDatasource is a helper function to simplify the provider implementation.

func NewDataPlaneHelmReleaseDatasource added in v0.0.5

func NewDataPlaneHelmReleaseDatasource() datasource.DataSource

NewDataPlaneHelmReleaseDatasource is a helper function to simplify the provider implementation.

func NewDataPlaneResource added in v0.0.4

func NewDataPlaneResource() resource.Resource

func NewDnsDatasource added in v0.0.5

func NewDnsDatasource() datasource.DataSource

NewDnsDatasource is a helper function to simplify the provider implementation.

func NewEligibleDataPlanesDatasource added in v0.0.5

func NewEligibleDataPlanesDatasource() datasource.DataSource

NewEligibleDataPlanesDatasource is a helper function to simplify the provider implementation.

func NewFleetHealthDatasource added in v0.0.5

func NewFleetHealthDatasource() datasource.DataSource

NewFleetHealthDatasource is a helper function to simplify the provider implementation.

func NewInstanceTypesDataSource

func NewInstanceTypesDataSource() datasource.DataSource

NewInstanceTypesDataSource is a helper function to simplify the provider implementation.

func NewK8sClustersDatasource added in v0.0.5

func NewK8sClustersDatasource() datasource.DataSource

NewK8sClustersDatasource is a helper function to simplify the provider implementation.

func NewLocalUserResource added in v0.0.4

func NewLocalUserResource() resource.Resource

func NewLocalUsersDataSource added in v0.0.4

func NewLocalUsersDataSource() datasource.DataSource

func NewMdsPoliciesDatasource

func NewMdsPoliciesDatasource() datasource.DataSource

NewMdsPoliciesDatasource is a helper function to simplify the provider implementation.

func NewNetworkPoliciesDataSource

func NewNetworkPoliciesDataSource() datasource.DataSource

NewNetworkPoliciesDataSource is a helper function to simplify the provider implementation.

func NewNetworkPolicyResource

func NewNetworkPolicyResource() resource.Resource

func NewNetworkPortsDataSource

func NewNetworkPortsDataSource() datasource.DataSource

func NewObjectStorageDatasource

func NewObjectStorageDatasource() datasource.DataSource

NewObjectStorageDatasource is a helper function to simplify the provider implementation.

func NewObjectStorageResource

func NewObjectStorageResource() resource.Resource

func NewOrganizationsDatasource added in v1.1.3

func NewOrganizationsDatasource() datasource.DataSource

NewOrganizationsDatasource is a helper function to simplify the provider implementation.

func NewPolicyResource

func NewPolicyResource() resource.Resource

func NewPolicyTypesDataSource

func NewPolicyTypesDataSource() datasource.DataSource

func NewProviderTypesDataSource

func NewProviderTypesDataSource() datasource.DataSource

func NewRegionsDataSource

func NewRegionsDataSource() datasource.DataSource

func NewRestoresDataSource added in v0.0.6

func NewRestoresDataSource() datasource.DataSource

NewRestoresDataSource is a helper function to simplify the provider implementation.

func NewRolesDataSource

func NewRolesDataSource() datasource.DataSource

NewRolesDataSource is a helper function to simplify the provider implementation.

func NewServiceAccountResource

func NewServiceAccountResource() resource.Resource

func NewServiceAccountsDataSource

func NewServiceAccountsDataSource() datasource.DataSource

func NewServiceExtensionsDataSource added in v0.0.7

func NewServiceExtensionsDataSource() datasource.DataSource

func NewServiceRolesDatasource

func NewServiceRolesDatasource() datasource.DataSource

NewServiceRolesDatasource is a helper function to simplify the provider implementation.

func NewSmtpDatasource added in v0.0.5

func NewSmtpDatasource() datasource.DataSource

NewSmtpDatasource is a helper function to simplify the provider implementation.

func NewSmtpResource added in v0.0.5

func NewSmtpResource() resource.Resource

func NewStorageClassDataSource added in v0.0.5

func NewStorageClassDataSource() datasource.DataSource

func NewTasksDataSource added in v0.0.4

func NewTasksDataSource() datasource.DataSource

func NewUserResource

func NewUserResource() resource.Resource

func NewUsersDataSource

func NewUsersDataSource() datasource.DataSource

NewUsersDataSource is a helper function to simplify the provider implementation.

Types

type AccountModel added in v0.0.5

type AccountModel struct {
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

type BackupMetadata added in v0.0.5

type BackupMetadata struct {
	ClusterName    types.String              `tfsdk:"cluster_name"`
	ClusterSize    types.String              `tfsdk:"cluster_size"`
	BackupLocation types.String              `tfsdk:"backup_location"`
	Databases      []string                  `tfsdk:"databases"`
	Extensions     []BackupMetadataExtension `tfsdk:"extensions"`
}

BackupMetadata maps order item data.

type BackupMetadataExtension added in v0.0.6

type BackupMetadataExtension struct {
	Name    types.String `tfsdk:"name"`
	Version types.String `tfsdk:"version"`
}

type CertificateModel

type CertificateModel struct {
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

type CertificateResourceModel

type CertificateResourceModel struct {
	ID             types.String `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	DomainName     types.String `tfsdk:"domain_name"`
	ProviderType   types.String `tfsdk:"provider_type"`
	ExpirationTime types.String `tfsdk:"expiration_time"`
	CreatedBy      types.String `tfsdk:"created_by"`
	Certificate    types.String `tfsdk:"certificate"`
	CertificateCA  types.String `tfsdk:"certificate_ca"`
	CertificateKey types.String `tfsdk:"certificate_key"`
	Tags           types.Set    `tfsdk:"tags"`
}

type CloudAccountResourceModel

type CloudAccountResourceModel struct {
	ID             types.String `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	ProviderType   types.String `tfsdk:"provider_type"`
	Shared         types.Bool   `tfsdk:"shared"`
	Credential     types.String `tfsdk:"credentials"`
	Tags           types.Set    `tfsdk:"tags"`
	UserEmail      types.String `tfsdk:"user_email"`
	OrgId          types.String `tfsdk:"org_id"`
	CreatedBy      types.String `tfsdk:"created_by"`
	DataPlaneCount types.Int64  `tfsdk:"data_plane_count"`
}

type ClusterCountModel added in v0.0.5

type ClusterCountModel struct {
	Count       types.Int64  `tfsdk:"count"`
	ServiceType types.String `tfsdk:"service_type"`
}

type ClusterStatus added in v0.0.5

type ClusterStatus struct {
	Critical types.Int64 `tfsdk:"critical"`
	Warning  types.Int64 `tfsdk:"warning"`
	Healthy  types.Int64 `tfsdk:"healthy"`
}

type CustomerClusterModel added in v0.0.5

type CustomerClusterModel struct {
	ClusterId    types.String `tfsdk:"cluster_id"`
	ClusterName  types.String `tfsdk:"cluster_name"`
	InstanceSize types.String `tfsdk:"instance_size"`
	Status       types.String `tfsdk:"status"`
	ServiceType  types.String `tfsdk:"service_type"`
}

type DNSModel added in v0.0.5

type DNSModel struct {
	Id       types.String  `tfsdk:"id"`
	Servers  []ServerModel `tfsdk:"servers"`
	Name     types.String  `tfsdk:"name"`
	Provider types.String  `tfsdk:"provider"`
	Domain   types.String  `tfsdk:"domain"`
}

type DataPlaneModel added in v0.0.5

type DataPlaneModel struct {
	ID                      types.String     `tfsdk:"id"`
	Provider                types.String     `tfsdk:"provider"`
	Region                  types.String     `tfsdk:"region"`
	Name                    types.String     `tfsdk:"name"`
	DataPlaneName           types.String     `tfsdk:"data_plane_name"`
	Version                 types.String     `tfsdk:"version"`
	Tags                    types.Set        `tfsdk:"tags"`
	Status                  types.String     `tfsdk:"status"`
	Account                 AccountModel     `tfsdk:"account"`
	HelmVersionId           types.String     `tfsdk:"data_plane_release_id"`
	HelmVersion             types.String     `tfsdk:"data_plane_release_name"`
	Shared                  types.Bool       `tfsdk:"shared"`
	AutoUpgrade             types.Bool       `tfsdk:"auto_upgrade"`
	Created                 types.String     `tfsdk:"created"`
	Modified                types.String     `tfsdk:"modified"`
	Certificate             CertificateModel `tfsdk:"certificate"`
	DefaultPolicyName       types.String     `tfsdk:"default_policy_name"`
	StoragePolicies         types.Set        `tfsdk:"storage_policies"`
	BackupStoragePolicy     types.String     `tfsdk:"backup_storage_policy"`
	Services                types.Set        `tfsdk:"services"`
	DataPlaneOnControlPlane types.Bool       `tfsdk:"data_plane_on_control_plane"`
}

type DnsDataSourceModel added in v0.0.5

type DnsDataSourceModel struct {
	Id   types.String `tfsdk:"id"`
	List []DNSModel   `tfsdk:"list"`
}

DnsDataSourceModel maps the data source schema data.

type EligibleDataPlanesDatasourceModel added in v0.0.5

type EligibleDataPlanesDatasourceModel struct {
	Id       types.String     `tfsdk:"id"`
	Provider types.String     `tfsdk:"provider_name"`
	OrgId    types.String     `tfsdk:"org_id"`
	List     []dataPlaneModel `tfsdk:"list"`
}

EligibleDataPlanesDatasourceModel maps the data source schema data.

type FleetHealthDataSourceModel added in v0.0.5

type FleetHealthDataSourceModel struct {
	Id                  types.String             `tfsdk:"id"`
	TotalOrgCount       types.Int64              `tfsdk:"total_org_count"`
	TotalHealthyCount   types.Int64              `tfsdk:"total_healthy_org_count"`
	TotalUnHealthyCount types.Int64              `tfsdk:"total_unhealthy_org_count"`
	DedicatedDataPlanes types.Int64              `tfsdk:"dedicated_data_planes"`
	HealthyDataPlanes   types.Int64              `tfsdk:"healthy_data_planes"`
	SharedDataPlanes    types.Int64              `tfsdk:"shared_data_planes"`
	TotalDataPlanes     types.Int64              `tfsdk:"total_data_planes"`
	UnhealthyDataPlanes types.Int64              `tfsdk:"unhealthy_data_planes"`
	ClusterCount        []ClusterCountModel      `tfsdk:"cluster_counts"`
	ResourceByService   []ResourceByServiceModel `tfsdk:"resource_by_service"`
	FleetDetails        []FleetsModel            `tfsdk:"fleets"`
}

FleetHealthDataSourceModel maps the data source schema data.

type FleetsModel added in v0.0.5

type FleetsModel struct {
	OrgName                  types.String           `tfsdk:"org_name"`
	ClusterStatus            ClusterStatus          `tfsdk:"cluster_status"`
	ClusterCounts            types.Int64            `tfsdk:"cluster_counts"`
	CustomerClusterInfo      []CustomerClusterModel `tfsdk:"customer_cluster_info"`
	CustomerCumulativeStatus types.String           `tfsdk:"org_status"`
	SreOrg                   types.Bool             `tfsdk:"sre_org"`
}

type K8sCluster added in v0.0.5

type K8sCluster struct {
	Name      types.String `tfsdk:"name"`
	Available types.Bool   `tfsdk:"available"`
	CpPresent types.Bool   `tfsdk:"cp_present"`
	DpPresent types.Bool   `tfsdk:"dp_present"`
}

type K8sClustersDatasourceModel added in v0.0.5

type K8sClustersDatasourceModel struct {
	Id             types.String `tfsdk:"id"`
	CloudAccountId types.String `tfsdk:"account_id"`
	List           []K8sCluster `tfsdk:"list"`
}

K8sClustersDatasourceModel maps the data source schema data.

type MetadataModel

type MetadataModel struct {
	ManagerUri       types.String `tfsdk:"manager_uri"`
	ConnectionUri    types.String `tfsdk:"connection_uri"`
	MetricsEndpoints types.Set    `tfsdk:"metrics_endpoints"`
}

type NetworkSpecModel

type NetworkSpecModel struct {
	Cidr           types.String `tfsdk:"cidr"`
	NetworkPortIds types.Set    `tfsdk:"network_port_ids"`
}

type ObjectStorageResourceModel

type ObjectStorageResourceModel struct {
	ID              types.String `tfsdk:"id"`
	Name            types.String `tfsdk:"name"`
	BucketName      types.String `tfsdk:"bucket_name"`
	Endpoint        types.String `tfsdk:"endpoint"`
	Region          types.String `tfsdk:"region"`
	AccessKeyId     types.String `tfsdk:"access_key_id"`
	SecretAccessKey types.String `tfsdk:"secret_access_key"`
}

type PermissionSpecModel

type PermissionSpecModel struct {
	Role       types.String `tfsdk:"role"`
	Resource   types.String `tfsdk:"resource"`
	Permission types.String `tfsdk:"permission"`
}

type RegionsModel

type RegionsModel struct {
	ID           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	DataPlaneIds types.List   `tfsdk:"data_plane_ids"`
}

type ResourceByServiceModel added in v0.0.5

type ResourceByServiceModel struct {
	DataPlaneName types.String `tfsdk:"data_plane_name"`
	ServiceType   types.String `tfsdk:"resource_service_type"`
	Cpu           types.String `tfsdk:"cpu"`
	Memory        types.String `tfsdk:"memory"`
	Storage       types.String `tfsdk:"storage"`
}

type RestoreInfoModel added in v0.0.6

type RestoreInfoModel struct {
	ClusterName      types.String `tfsdk:"cluster_name"`
	StoragePolicy    types.String `tfsdk:"storage_policy"`
	NetworkPolicyIds []string     `tfsdk:"network_policy_ids"`
	Tags             []string     `tfsdk:"tags"`
}

type RolesModel

type RolesModel struct {
	ID   types.String `tfsdk:"role_id"`
	Name types.String `tfsdk:"name"`
}

type ServerModel added in v0.0.5

type ServerModel struct {
	Host       types.String `tfsdk:"host"`
	Port       types.Int64  `tfsdk:"port"`
	Protocol   types.String `tfsdk:"protocol"`
	ServerType types.String `tfsdk:"server_type"`
}

ServerModel maps role schema data.

type ServiceAccountCredential

type ServiceAccountCredential struct {
	ClientId     types.String `tfsdk:"client_id"`
	ClientSecret types.String `tfsdk:"client_secret"`
	OrgId        types.String `tfsdk:"org_id"`
	GrantType    types.String `tfsdk:"grant_type"`
}

type ServiceAccountOauthApp

type ServiceAccountOauthApp struct {
	OauthAppId  types.String `tfsdk:"app_id"`
	AppType     types.String `tfsdk:"app_type"`
	Created     types.String `tfsdk:"created"`
	CreatedBy   types.String `tfsdk:"created_by"`
	Description types.String `tfsdk:"description"`
	Modified    types.String `tfsdk:"modified"`
	ModifiedBy  types.String `tfsdk:"modified_by"`
	TTLSpec     TTLSpecModel `tfsdk:"ttl_spec"`
}

type ServiceRolesDataSourceModel

type ServiceRolesDataSourceModel struct {
	Id   types.String        `tfsdk:"id"`
	List []ServiceRolesModel `tfsdk:"list"`
	Type types.String        `tfsdk:"type"`
}

ServiceRolesDataSourceModel maps the data source schema data.

type ServiceRolesModel

type ServiceRolesModel struct {
	RoleId       types.String `tfsdk:"role_id"`
	Name         types.String `tfsdk:"name"`
	Description  types.String `tfsdk:"description"`
	Type         types.String `tfsdk:"type"`
	PermissionId types.String `tfsdk:"permission_id"`
}

ServiceRolesModel maps role schema data.

type SmtpDataSourceModel added in v0.0.5

type SmtpDataSourceModel struct {
	Id                    types.String `tfsdk:"id"`
	AuthenticationEnabled types.String `tfsdk:"auth"`
	TlsEnabled            types.String `tfsdk:"tls"`
	FromEmail             types.String `tfsdk:"from_email"`
	UserName              types.String `tfsdk:"user_name"`
	Host                  types.String `tfsdk:"host"`
	Port                  types.String `tfsdk:"port"`
}

SmtpDataSourceModel maps the data source schema data.

type SmtpResourceModal added in v0.0.5

type SmtpResourceModal struct {
	ID         types.String `tfsdk:"id"`
	Host       types.String `tfsdk:"host"`
	Port       types.String `tfsdk:"port"`
	From       types.String `tfsdk:"from"`
	UserName   types.String `tfsdk:"user_name"`
	Password   types.String `tfsdk:"password"`
	TlsEnabled types.String `tfsdk:"tls"`
	Auth       types.String `tfsdk:"auth"`
}

type StorageClassDataSourceModel added in v0.0.5

type StorageClassDataSourceModel struct {
	AccountId      types.String        `tfsdk:"cloud_account_id"`
	K8SClusterName types.String        `tfsdk:"k8s_cluster_name"`
	StorageClasses []StorageClassModel `tfsdk:"list"`
}

type StorageClassModel added in v0.0.5

type StorageClassModel struct {
	Name        types.String `tfsdk:"name"`
	Provisioner types.String `tfsdk:"provisioner"`
}

type TTLSpecModel

type TTLSpecModel struct {
	TimeUnit types.String `tfsdk:"time_unit"`
	TTL      types.Int64  `tfsdk:"ttl"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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