ibmcloud

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TFVars

func TFVars(sources TFVarsSources) ([]byte, error)

TFVars generates ibmcloud-specific Terraform variables launching the cluster.

Types

type Auth

type Auth struct {
	APIKey string `json:"ibmcloud_api_key,omitempty"`
}

Auth is the collection of credentials that will be used by terrform.

type DedicatedHost

type DedicatedHost struct {
	ID      string `json:"id,omitempty"`
	Profile string `json:"profile,omitempty"`
}

DedicatedHost is the format used by terraform.

type TFVarsSources

type TFVarsSources struct {
	Auth                     Auth
	CISInstanceCRN           string
	DNSInstanceID            string
	ImageURL                 string
	MasterConfigs            []*ibmcloudprovider.IBMCloudMachineProviderSpec
	MasterDedicatedHosts     []DedicatedHost
	NetworkResourceGroupName string
	PreexistingVPC           bool
	PublishStrategy          types.PublishingStrategy
	ResourceGroupName        string
	VPCPermitted             bool
	WorkerConfigs            []*ibmcloudprovider.IBMCloudMachineProviderSpec
	WorkerDedicatedHosts     []DedicatedHost
}

TFVarsSources contains the parameters to be converted into Terraform variables

Jump to

Keyboard shortcuts

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