ibmcloud

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const IBMCloudEndpointJSONFileName = "ibmcloud_endpoints_override.json"

IBMCloudEndpointJSONFileName is the file containing the IBM Cloud Terraform provider's endpoint override JSON.

Variables

This section is empty.

Functions

func CreateEndpointJSON

func CreateEndpointJSON(endpoints []configv1.IBMCloudServiceEndpoint, region string) ([]byte, error)

CreateEndpointJSON creates JSON data containing IBM Cloud service endpoint override mappings.

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
	EndpointsJSONFile          string
	ImageURL                   string
	MasterConfigs              []*ibmcloudprovider.IBMCloudMachineProviderSpec
	MasterDedicatedHosts       []DedicatedHost
	NetworkResourceGroupName   string
	PreexistingVPC             bool
	PublishStrategy            types.PublishingStrategy
	ResourceGroupName          string
	TerraformPrivateVisibility bool
	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