aiven

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 21 Imported by: 1

Documentation

Overview

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2017 jelmersnoeck Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2017 jelmersnoeck Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2017 jelmersnoeck Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2017 jelmersnoeck Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2017 jelmersnoeck Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2017 jelmersnoeck Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2017 jelmersnoeck Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2019 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2017 jelmersnoeck Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAPIUserConfigToTerraformCompatibleFormat

func ConvertAPIUserConfigToTerraformCompatibleFormat(
	configType string,
	entryType string,
	userConfig map[string]interface{},
) []map[string]interface{}

ConvertAPIUserConfigToTerraformCompatibleFormat converts API response to a format that is accepted by Terraform; intermediary lists are added as necessary, default values are provided for missing keys and type conversions are performed if necessary.

func ConvertTerraformUserConfigToAPICompatibleFormat

func ConvertTerraformUserConfigToAPICompatibleFormat(
	configType string,
	entryType string,
	newResource bool,
	d *schema.ResourceData,
) map[string]interface{}

ConvertTerraformUserConfigToAPICompatibleFormat converts Terraform user configuration to API compatible format; Schema-based Terraform configuration requires using TypeList, which adds one extra layer of lists that need to be dropped. Also need to drop dummy "unset" replacement values

func GenerateTerraformUserConfigSchema

func GenerateTerraformUserConfigSchema(data map[string]interface{}) map[string]*schema.Schema

GenerateTerraformUserConfigSchema creates Terraform schema definition for user config based on user config JSON schema definition.

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

Types

type KafkaTopicAvailabilityWaiter added in v1.2.1

type KafkaTopicAvailabilityWaiter struct {
	Client      *aiven.Client
	Project     string
	ServiceName string
	TopicName   string
}

KafkaTopicAvailabilityWaiter is used to refresh the Aiven Kafka Topic endpoints when provisioning.

func (*KafkaTopicAvailabilityWaiter) Conf added in v1.2.1

Conf sets up the configuration to refresh.

func (*KafkaTopicAvailabilityWaiter) RefreshFunc added in v1.2.1

RefreshFunc will call the Aiven client and refresh it's state.

type KafkaTopicCreateWaiter

type KafkaTopicCreateWaiter struct {
	Client        *aiven.Client
	Project       string
	ServiceName   string
	CreateRequest aiven.CreateKafkaTopicRequest
}

KafkaTopicCreateWaiter is used to create topics. Since topics are often created right after Kafka service is created there may be temporary issues that prevent creating the topics like all brokers not being online. This allows retrying the operation until failing it.

func (*KafkaTopicCreateWaiter) Conf

Conf sets up the configuration to refresh.

func (*KafkaTopicCreateWaiter) RefreshFunc

RefreshFunc will call the Aiven client and refresh it's state.

type ProjectVPCActiveWaiter

type ProjectVPCActiveWaiter struct {
	Client  *aiven.Client
	Project string
	VPCID   string
}

ProjectVPCActiveWaiter is used to wait for VPC to enter active state. This check needs to be performed before creating a service that has a project VPC to ensure there has been sufficient time for other actions that update the state to have been completed

func (*ProjectVPCActiveWaiter) Conf

Conf sets up the configuration to refresh.

func (*ProjectVPCActiveWaiter) RefreshFunc

RefreshFunc will call the Aiven client and refresh it's state.

type ProjectVPCDeleteWaiter added in v1.2.2

type ProjectVPCDeleteWaiter struct {
	Client  *aiven.Client
	Project string
	VPCID   string
}

ProjectVPCDeleteWaiter is used to wait for VPC been deleted.

func (*ProjectVPCDeleteWaiter) Conf added in v1.2.2

Conf sets up the configuration to refresh.

func (*ProjectVPCDeleteWaiter) RefreshFunc added in v1.2.2

RefreshFunc will call the Aiven client and refresh it's state.

type ServiceChangeWaiter

type ServiceChangeWaiter struct {
	Client      *aiven.Client
	Operation   string
	Project     string
	ServiceName string
}

ServiceChangeWaiter is used to refresh the Aiven Service endpoints when provisioning.

func (*ServiceChangeWaiter) Conf

Conf sets up the configuration to refresh.

func (*ServiceChangeWaiter) RefreshFunc

RefreshFunc will call the Aiven client and refresh its state.

type VPCPeeringBuildWaiter

type VPCPeeringBuildWaiter struct {
	Client           *aiven.Client
	Project          string
	VPCID            string
	PeerCloudAccount string
	PeerVPC          string
	PeerRegion       *string
}

VPCPeeringBuildWaiter is used to wait for Aiven to build a new VPC peering connection so that ID becomes available (when applicable)

func (*VPCPeeringBuildWaiter) Conf

Conf sets up the configuration to refresh.

func (*VPCPeeringBuildWaiter) RefreshFunc

RefreshFunc will call the Aiven client and refresh it's state.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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