ionoscloud

package
v6.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

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 (
	ShareResource = "ionoscloud_share"
)
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 IsRequestFailed(err error) bool

func IsValidUUID

func IsValidUUID(uuid string) bool

func NicSetData

func NicSetData(d *schema.ResourceData, nic *ionoscloud.Nic) error

func Provider

func Provider() *schema.Provider

Provider returns a schema.Provider for ionoscloud

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

func VerifyUnavailableIPs(val interface{}, key string) (warns []string, errs []error)

VerifyUnavailableIPs used for DBaaS cluster to check the provided IPs

Types

type Config

type Config struct {
	Username string
	Password string
	Endpoint string
	Retries  int
	Token    string
}

Config represents

func (*Config) Client

func (c *Config) Client(terraformVersion string) (*ionoscloud.APIClient, error)

Client returns a new client for accessing ionoscloud.

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
}

Jump to

Keyboard shortcuts

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