Documentation
¶
Index ¶
- Constants
- Variables
- func DiffBasedOnVersion(_, old, new string, _ *schema.ResourceData) bool
- func DiffCidr(_, old, new string, _ *schema.ResourceData) bool
- func DiffToLower(_, old, new string, _ *schema.ResourceData) bool
- func ImageSetData(d *schema.ResourceData, image *ionoscloud.Image) error
- func IpBlockSetData(d *schema.ResourceData, ipBlock *ionoscloud.IpBlock) error
- func IsRequestFailed(err error) bool
- func IsValidUUID(uuid string) bool
- func NicSetData(d *schema.ResourceData, nic *ionoscloud.Nic) error
- func Provider() *schema.Provider
- func SetFirewallProperties(firewall ionoscloud.FirewallRule) map[string]interface{}
- func SetNetworkProperties(nic ionoscloud.Nic) map[string]interface{}
- func SetVolumeProperties(volume ionoscloud.Volume) map[string]interface{}
- func VerifyUnavailableIPs(val interface{}, key string) (warns []string, errs []error)
- type Config
- type KubeConfig
- type RequestFailedError
- type SdkBundle
Constants ¶
View Source
const ( ImageResource = "ionoscloud_image" ImageTestResource = "test_image" )
Image Constants
View Source
const ( LocationResource = "ionoscloud_location" LocationTestResource = "test_location" )
Location Constants
View Source
const ( ResourceResource = "ionoscloud_resource" ResourceTestResource = "test_resource" )
Resource Constants
View Source
const ( TemplateResource = "ionoscloud_template" TemplateTestResource = "test_template" )
Template Constants
View Source
const ( BackupUnitResource = "ionoscloud_backup_unit" BackupUnitTestResource = "testBackupUnit" BackupUnitDataSourceById = "testBackupUnitId" BackupUnitDataSourceByName = "testBackupUnitName" )
BackupUnit Constants
View Source
const ( DatacenterResource = "ionoscloud_datacenter" DatacenterTestResource = "test_datacenter" DatacenterDataSourceById = "test_datacenter_id" DatacenterDataSourceByName = "test_datacenter_name" DatacenterDataSourceMatching = "test_datacenter_matching" )
Datacenter Constants
View Source
const ( FirewallResource = "ionoscloud_firewall" FirewallTestResource = "test_firewall" FirewallDataSourceById = "test_firewall_id" FirewallDataSourceByName = "test_firewall_name" )
Firewall Constants
View Source
const ( LanResource = "ionoscloud_lan" LanTestResource = "test_lan" LanDataSourceById = "test_lan_id" LanDataSourceByName = "test_lan_name" )
Lan Constants
View Source
const ( GroupResource = "ionoscloud_group" GroupTestResource = "test_group" GroupDataSourceById = "test_group_id" GroupDataSourceByName = "test_group_name" )
Group Constants
View Source
const ( K8sClusterResource = "ionoscloud_k8s_cluster" K8sClusterTestResource = "test_k8s_cluster" K8sClusterDataSourceById = "test_k8s_cluster_id" K8sClusterDataSourceByName = "test_k8s_cluster_name" K8sNodePoolResource = "ionoscloud_k8s_node_pool" K8sNodePoolTestResource = "test_k8s_node_pool" K8sNodePoolDataSourceById = "test_k8s_node_pool_id" K8sNodePoolDataSourceByName = "test_k8s_node_pool_name" ResourceNameK8sNodePool = K8sNodePoolResource + "." + K8sNodePoolTestResource DataSourceK8sNodePoolId = DataSource + "." + K8sNodePoolResource + "." + K8sNodePoolDataSourceById DataSourceK8sNodePoolName = DataSource + "." + K8sNodePoolResource + "." + K8sNodePoolDataSourceByName )
K8s Constants
View Source
const ( NatGatewayResource = "ionoscloud_natgateway" NatGatewayTestResource = "test_nat_gateway" NatGatewayDataSourceById = "test_nat_gateway_id" NatGatewayDataSourceByName = "test_nat_gateway_name" NatGatewayRuleResource = "ionoscloud_natgateway_rule" NatGatewayRuleTestResource = "test_nat_gateway" NatGatewayRuleDataSourceById = "test_nat_gateway_id" NatGatewayRuleDataSourceByName = "test_nat_gateway_name" )
NatGateway Constants
View Source
const ( NetworkLoadBalancerResource = "ionoscloud_networkloadbalancer" NetworkLoadBalancerTestResource = "test_networkloadbalancer" NetworkLoadBalancerDataSourceById = "test_networkloadbalancer_id" NetworkLoadBalancerDataSourceByName = "test_networkloadbalancer_name" NetworkLoadBalancerForwardingRuleResource = "ionoscloud_networkloadbalancer_forwardingrule" NetworkLoadBalancerForwardingRuleTestResource = "test_networkloadbalancer_forwardingrule" NetworkLoadBalancerForwardingRuleDataSourceById = "test_networkloadbalancer_forwardingrule_id" NetworkLoadBalancerForwardingRuleDataSourceByName = "test_networkloadbalancer_forwardingrule_name" )
NetworkLoadBalancer Constants
View Source
const ( PCCResource = "ionoscloud_private_crossconnect" PCCTestResource = "test_private_crossconnect" PCCDataSourceById = "test_private_crossconnect_id" PCCDataSourceByName = "test_private_crossconnect_name" )
Private Crossconnect Constants
View Source
const ( ServerResource = "ionoscloud_server" ServerTestResource = "test_server" ServerDataSourceById = "test_server_id" ServerDataSourceByName = "test_server_name" )
Server Constants
View Source
const ( S3KeyResource = "ionoscloud_s3_key" S3KeyTestResource = "test_s3_key" S3KeyDataSourceById = "test_s3_key_id" )
S3Key Constants
View Source
const ( SnapshotResource = "ionoscloud_snapshot" SnapshotTestResource = "test_snapshot" SnapshotDataSourceById = "test_snapshot_id" SnapshotDataSourceByName = "test_snapshot_name" )
Snapshot Constants
View Source
const ( UserResource = "ionoscloud_user" UserTestResource = "test_user" UserDataSourceById = "test_user_id" UserDataSourceByName = "test_user_name" )
User Constants
View Source
const ( IpBlockResource = "ionoscloud_ipblock" IpBlockTestResource = "test_ip_block" IpBlockDataSourceById = "test_ip_block_id" IpBlockDataSourceByName = "test_ip_block_id" IpBlockDataSourceMatching = "test_ip_block_id_location" )
Ip Block constants
View Source
const ( VolumeResource = "ionoscloud_volume" VolumeTestResource = "test_volume" VolumeDataSourceById = "test_volume_id" VolumeDataSourceByName = "test_volume_name" )
View Source
const ( DBaaSClusterResource = "ionoscloud_pg_cluster" DBaaSClusterTestResource = "test_dbaas_cluster" DBaaSClusterTestDataSourceById = "test_dbaas_cluster_id" DBaaSClusterTestDataSourceByName = "test_dbaas_cluster_name" DBaaSBackupsResource = "ionoscloud_pg_backups" DBaaSBackupsTest = "test_dbaas_backups" DBaaSVersionsResource = "ionoscloud_pg_versions" DBaaSVersionsTest = "test_dbaas_versions" )
DBaaS Constants
View Source
const ( DataSource = "data" UpdatedResources = "test_updated" )
General Constants
View Source
const ImmutableError = "attribute is immutable, therefore not allowed in update requests"
View Source
const (
NicResource = "ionoscloud_nic"
)
View Source
const (
ResourceIpFailover = "ionoscloud_ipfailover"
)
View Source
const (
)
View Source
const SleepInterval = 5 * time.Second
Variables ¶
View Source
var Version = "DEV"
Functions ¶
func DiffBasedOnVersion ¶
func DiffBasedOnVersion(_, old, new string, _ *schema.ResourceData) bool
DiffBasedOnVersion used for k8 node pool and cluster
func DiffCidr ¶ added in v6.1.3
func DiffCidr(_, old, new string, _ *schema.ResourceData) bool
DiffCidr terraform suppress differences between ip and cidr
func DiffToLower ¶
func DiffToLower(_, old, new string, _ *schema.ResourceData) bool
DiffToLower terraform suppress differences between lower and upper
func ImageSetData ¶ added in v6.1.6
func ImageSetData(d *schema.ResourceData, image *ionoscloud.Image) error
func IpBlockSetData ¶
func IpBlockSetData(d *schema.ResourceData, ipBlock *ionoscloud.IpBlock) error
func IsRequestFailed ¶
func IsValidUUID ¶
func NicSetData ¶
func NicSetData(d *schema.ResourceData, nic *ionoscloud.Nic) error
func SetFirewallProperties ¶
func SetFirewallProperties(firewall ionoscloud.FirewallRule) map[string]interface{}
func SetNetworkProperties ¶
func SetNetworkProperties(nic ionoscloud.Nic) map[string]interface{}
func SetVolumeProperties ¶
func SetVolumeProperties(volume ionoscloud.Volume) map[string]interface{}
func VerifyUnavailableIPs ¶ added in v6.1.0
VerifyUnavailableIPs used for DBaaS cluster to check the provided IPs
Types ¶
type KubeConfig ¶
type KubeConfig struct { ApiVersion string `yaml:"apiVersion"` Clusters []struct { Name string Cluster struct { CaData string `yaml:"certificate-authority-data"` Server string } } Contexts []struct { Name string Context struct { Cluster string User string } } CurrentContext string `yaml:"current-context"` Kind string Users []struct { Name string User struct { Token string } } }
type RequestFailedError ¶
type RequestFailedError struct {
// contains filtered or unexported fields
}
func (RequestFailedError) Error ¶
func (e RequestFailedError) Error() string
type SdkBundle ¶ added in v6.1.0
type SdkBundle struct { CloudApiClient *ionoscloud.APIClient DbaasClient *dbaasService.Client }
Source Files
¶
- config.go
- constants.go
- data_source_backup_unit.go
- data_source_datacenter.go
- data_source_dbaas_pgsql_backups.go
- data_source_dbaas_pgsql_cluster.go
- data_source_dbaas_pgsql_versions.go
- data_source_firewall.go
- data_source_group.go
- data_source_image.go
- data_source_ipblock.go
- data_source_ipfailover.go
- data_source_k8s_cluster.go
- data_source_k8s_node_pool.go
- data_source_lan.go
- data_source_location.go
- data_source_natgateway.go
- data_source_natgateway_rule.go
- data_source_networkloadbalancer.go
- data_source_networkloadbalancer_forwardingrule.go
- data_source_nic.go
- data_source_private_crossconnect.go
- data_source_resource.go
- data_source_s3_key.go
- data_source_server.go
- data_source_share.go
- data_source_snapshot.go
- data_source_template.go
- data_source_user.go
- data_source_volume.go
- provider.go
- resource_backup_unit.go
- resource_datacenter.go
- resource_dbaas_pgsql_cluster.go
- resource_firewall.go
- resource_group.go
- resource_ipblock.go
- resource_ipfailover.go
- resource_k8s_cluster.go
- resource_k8s_node_pool.go
- resource_lan.go
- resource_loadbalancer.go
- resource_natgateway.go
- resource_natgateway_rule.go
- resource_networkloadbalancer.go
- resource_networkloadbalancer_forwardingrule.go
- resource_nic.go
- resource_private_crossconnect.go
- resource_s3_key.go
- resource_server.go
- resource_share.go
- resource_snapshot.go
- resource_user.go
- resource_volume.go
- testUtil.go
- test_constants.go
- utils.go
Click to show internal directories.
Click to hide internal directories.