hypervisor

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHypervisor

Create creates the resource and sets the initial Terraform state.

func NewAwsHypervisorResource

func NewAwsHypervisorResource() resource.Resource

NewHypervisorResource is a helper function to simplify the provider implementation.

func NewAzureHypervisorResource

func NewAzureHypervisorResource() resource.Resource

NewHypervisorResource is a helper function to simplify the provider implementation.

func NewGcpHypervisorResource

func NewGcpHypervisorResource() resource.Resource

NewHypervisorResource is a helper function to simplify the provider implementation.

func UpdateHypervisor

Update updates the resource and sets the updated Terraform state on success.

Types

type AwsHypervisorResourceModel

type AwsHypervisorResourceModel struct {
	/**** Connection Details ****/
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
	Zone types.String `tfsdk:"zone"`
	/** AWS EC2 Connection **/
	Region    types.String `tfsdk:"region"`
	ApiKey    types.String `tfsdk:"api_key"`
	SecretKey types.String `tfsdk:"secret_key"`
}

HypervisorResourceModel maps the resource schema data.

func (AwsHypervisorResourceModel) RefreshPropertyValues

type AzureHypervisorResourceModel

type AzureHypervisorResourceModel struct {
	/**** Connection Details ****/
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
	Zone types.String `tfsdk:"zone"`
	/** Azure Connection **/
	ApplicationId                   types.String `tfsdk:"application_id"`
	ApplicationSecret               types.String `tfsdk:"application_secret"`
	ApplicationSecretExpirationDate types.String `tfsdk:"application_secret_expiration_date"`
	SubscriptionId                  types.String `tfsdk:"subscription_id"`
	ActiveDirectoryId               types.String `tfsdk:"active_directory_id"`
}

HypervisorResourceModel maps the resource schema data.

func (AzureHypervisorResourceModel) RefreshPropertyValues

type GcpHypervisorResourceModel

type GcpHypervisorResourceModel struct {
	/**** Connection Details ****/
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
	Zone types.String `tfsdk:"zone"`
	/** GCP Connection **/
	ServiceAccountId          types.String `tfsdk:"service_account_id"`
	ServiceAccountCredentials types.String `tfsdk:"service_account_credentials"`
}

HypervisorResourceModel maps the resource schema data.

func (GcpHypervisorResourceModel) RefreshPropertyValues

Jump to

Keyboard shortcuts

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