Documentation
¶
Index ¶
- func RenderAppBlueprintArmGitConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderAppBlueprintArmJSONConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderAppBlueprintCloudFormationGitConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderAppBlueprintCloudFormationJSONConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderAppBlueprintCloudFormationYamlConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderAppBlueprintHelmConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderAppBlueprintKubernetesGitConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderAppBlueprintKubernetesSpecConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderAppBlueprintKubernetesYamlConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderAppBlueprintTerraformGitConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderAppBlueprintTerraformHclConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderAppBlueprintTerraformJSONConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderAppBlueprintTerraformSpecConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderClusterLayoutConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderInstanceTypeConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderInstanceTypeLayoutConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderNodeTypeConfig(t *testing.T, overrides map[string]string) (string, error)
- func ResourceAppBlueprintARM() *schema.Resource
- func ResourceAppBlueprintCloudFormation() *schema.Resource
- func ResourceAppBlueprintHelm() *schema.Resource
- func ResourceAppBlueprintKubernetes() *schema.Resource
- func ResourceAppBlueprintTerraform() *schema.Resource
- func ResourceClusterLayout() *schema.Resource
- func ResourceInstanceType() *schema.Resource
- func ResourceInstanceTypeLayout() *schema.Resource
- func ResourceNodeType() *schema.Resource
- type AppBlueprintARM
- type AppBlueprintCloudFormation
- type AppBlueprintHelm
- type AppBlueprintKubernetes
- type AppBlueprintTerraform
- type ClusterLayoutPayload
- type InstanceTypeLayoutPayload
- type InstanceTypePayload
- type NodeTypePayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderAppBlueprintArmGitConfig ¶
RenderAppBlueprintArmGitConfig generates a Terraform configuration for the tenant resource. It accepts optional overrides for field values. Default values are used if not overridden.
func RenderAppBlueprintArmJSONConfig ¶
RenderAppBlueprintArmJSONConfig generates a Terraform configuration for the tenant resource. It accepts optional overrides for field values. Default values are used if not overridden.
func RenderAppBlueprintHelmConfig ¶
RenderAppBlueprintHelmConfig generates a Terraform configuration for the tenant resource. It accepts optional overrides for field values. Default values are used if not overridden.
func RenderAppBlueprintKubernetesGitConfig ¶
func RenderAppBlueprintKubernetesGitConfig(t *testing.T, overrides map[string]string) (string, error)
RenderAppBlueprintKubernetesGitConfig generates a Terraform configuration for the tenant resource. It accepts optional overrides for field values. Default values are used if not overridden.
func RenderAppBlueprintKubernetesSpecConfig ¶
func RenderAppBlueprintKubernetesSpecConfig(t *testing.T, overrides map[string]string) (string, error)
RenderAppBlueprintKubernetesSpecConfig generates a Terraform configuration for the tenant resource. It accepts optional overrides for field values. Default values are used if not overridden.
func RenderAppBlueprintKubernetesYamlConfig ¶
func RenderAppBlueprintKubernetesYamlConfig(t *testing.T, overrides map[string]string) (string, error)
RenderAppBlueprintKubernetesYamlConfig generates a Terraform configuration for the tenant resource. It accepts optional overrides for field values. Default values are used if not overridden.
func RenderClusterLayoutConfig ¶
RenderClusterLayoutConfig generates a Terraform configuration for the cluster layout resource. It accepts optional overrides for field values. Default values are used if not overridden.
func RenderNodeTypeConfig ¶
RenderNodeTypeConfig generates a Terraform configuration for the tenant resource. It accepts optional overrides for field values. Default values are used if not overridden.
func ResourceAppBlueprintARM ¶
func ResourceClusterLayout ¶
func ResourceInstanceType ¶
func ResourceNodeType ¶
Types ¶
type AppBlueprintARM ¶
type AppBlueprintARM struct {
Blueprint struct {
ID int `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description"`
Category string `json:"category"`
Config struct {
Name string `json:"name"`
Description string `json:"description"`
Arm struct {
Configtype string `json:"configType"`
OsType string `json:"osType"`
CloudInitEnabled bool `json:"cloudInitEnabled"`
InstallAgent bool `json:"installAgent"`
JSON string `json:"json"`
Git struct {
Path string `json:"path"`
RepoId int `json:"repoId"`
IntegrationId int `json:"integrationId"`
Branch string `json:"branch"`
} `json:"git"`
} `json:"arm"`
Type string `json:"type"`
Category string `json:"category"`
Image string `json:"image"`
} `json:"config"`
Visibility string `json:"visibility"`
Resourcepermission struct {
All bool `json:"all"`
Sites []any `json:"sites"`
AllPlans bool `json:"allPlans"`
Plans []any `json:"plans"`
} `json:"resourcePermission"`
Owner struct {
ID int `json:"id"`
Username string `json:"username"`
} `json:"owner"`
Tenant struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"tenant"`
} `json:"blueprint"`
}
type AppBlueprintCloudFormation ¶
type AppBlueprintCloudFormation struct {
Blueprint struct {
ID int `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description"`
Category string `json:"category"`
Config struct {
Name string `json:"name"`
Description string `json:"description"`
CloudFormation struct {
Configtype string `json:"configType"`
CloudInitEnabled bool `json:"cloudInitEnabled"`
InstallAgent bool `json:"installAgent"`
JSON string `json:"json"`
YAML string `json:"yaml"`
IAM bool `json:"IAM"`
IAMNamed bool `json:"CAPABILITY_NAMED_IAM"`
AutoExpand bool `json:"CAPABILITY_AUTO_EXPAND"`
Git struct {
Path string `json:"path"`
RepoId int `json:"repoId"`
IntegrationId int `json:"integrationId"`
Branch string `json:"branch"`
} `json:"git"`
} `json:"cloudformation"`
Type string `json:"type"`
Category string `json:"category"`
Image string `json:"image"`
} `json:"config"`
Visibility string `json:"visibility"`
Resourcepermission struct {
All bool `json:"all"`
Sites []any `json:"sites"`
AllPlans bool `json:"allPlans"`
Plans []any `json:"plans"`
} `json:"resourcePermission"`
Owner struct {
ID int `json:"id"`
Username string `json:"username"`
} `json:"owner"`
Tenant struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"tenant"`
} `json:"blueprint"`
}
type AppBlueprintHelm ¶
type AppBlueprintHelm struct {
Blueprint struct {
ID int `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description"`
Category string `json:"category"`
Config struct {
Name string `json:"name"`
Description string `json:"description"`
Helm struct {
Configtype string `json:"configType"`
Git struct {
Path string `json:"path"`
RepoId int `json:"repoId"`
IntegrationId int `json:"integrationId"`
Branch string `json:"branch"`
} `json:"git"`
} `json:"helm"`
Type string `json:"type"`
Category string `json:"category"`
Image string `json:"image"`
} `json:"config"`
Visibility string `json:"visibility"`
Resourcepermission struct {
All bool `json:"all"`
Sites []any `json:"sites"`
AllPlans bool `json:"allPlans"`
Plans []any `json:"plans"`
} `json:"resourcePermission"`
Owner struct {
ID int `json:"id"`
Username string `json:"username"`
} `json:"owner"`
Tenant struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"tenant"`
} `json:"blueprint"`
}
type AppBlueprintKubernetes ¶
type AppBlueprintKubernetes struct {
Blueprint struct {
ID int `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description"`
Category string `json:"category"`
Config struct {
Name string `json:"name"`
Description string `json:"description"`
Kubernetes struct {
Configtype string `json:"configType"`
Git struct {
Path string `json:"path"`
RepoId int `json:"repoId"`
IntegrationId int `json:"integrationId"`
Branch string `json:"branch"`
} `json:"git"`
} `json:"kubernetes"`
Config struct {
Specs []struct {
ID int `json:"id"`
Value string `json:"value"`
Name string `json:"name"`
} `json:"specs"`
} `json:"config"`
Type string `json:"type"`
Category string `json:"category"`
Image string `json:"image"`
} `json:"config"`
Visibility string `json:"visibility"`
Resourcepermission struct {
All bool `json:"all"`
Sites []any `json:"sites"`
AllPlans bool `json:"allPlans"`
Plans []any `json:"plans"`
} `json:"resourcePermission"`
Owner struct {
ID int `json:"id"`
Username string `json:"username"`
} `json:"owner"`
Tenant struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"tenant"`
} `json:"blueprint"`
}
type AppBlueprintTerraform ¶
type AppBlueprintTerraform struct {
Blueprint struct {
ID int `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description"`
Category string `json:"category"`
Config struct {
Name string `json:"name"`
Description string `json:"description"`
Terraform struct {
Tfversion string `json:"tfVersion"`
Tf string `json:"tf"`
Tfvarsecret string `json:"tfvarSecret"`
Commandoptions string `json:"commandOptions"`
Configtype string `json:"configType"`
JSON string `json:"json"`
Git struct {
Path string `json:"path"`
RepoId int `json:"repoId"`
IntegrationId int `json:"integrationId"`
Branch string `json:"branch"`
} `json:"git"`
} `json:"terraform"`
Config struct {
Specs []struct {
ID int `json:"id"`
Value string `json:"value"`
Name string `json:"name"`
} `json:"specs"`
} `json:"config"`
Type string `json:"type"`
Category string `json:"category"`
Image string `json:"image"`
} `json:"config"`
Visibility string `json:"visibility"`
Resourcepermission struct {
All bool `json:"all"`
Sites []any `json:"sites"`
AllPlans bool `json:"allPlans"`
Plans []any `json:"plans"`
} `json:"resourcePermission"`
Owner struct {
ID int `json:"id"`
Username string `json:"username"`
} `json:"owner"`
Tenant struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"tenant"`
} `json:"blueprint"`
}
type ClusterLayoutPayload ¶
type ClusterLayoutPayload struct {
ClusterLayout struct {
ID int64 `json:"id"`
Account struct {
ID int64 `json:"id"`
Name string `json:"name"`
} `json:"account"`
Name string `json:"name"`
Description string `json:"description"`
Code string `json:"code"`
ComputeVersion string `json:"computeVersion"`
HasAutoScale bool `json:"hasAutoScale"`
Creatable bool `json:"creatable"`
MemoryRequirement int64 `json:"memoryRequirement"`
InstallContainerRuntime bool `json:"installContainerRuntime"`
ProvisionType struct {
ID int64 `json:"id"`
Name string `json:"name"`
Code string `json:"code"`
} `json:"provisionType"`
GroupType struct {
ID int64 `json:"id"`
Name string `json:"name"`
Code string `json:"code"`
} `json:"groupType"`
TaskSets []struct {
ID int64 `json:"id"`
Name string `json:"name"`
} `json:"taskSets"`
SpecTemplates []struct {
ID int64 `json:"id"`
Name string `json:"name"`
} `json:"specTemplates"`
OptionTypes []struct {
ID int64 `json:"id"`
Name string `json:"name"`
} `json:"optionTypes"`
EnvironmentVariables []struct {
EvarName string `json:"evarName"`
Name string `json:"name"`
DefaultValue string `json:"defaultValue"`
DefaultValueHash string `json:"defaultValueHash"`
ValueType string `json:"valueType"`
Export bool `json:"export"`
Masked bool `json:"masked"`
} `json:"environmentVariables"`
ComputeServers []struct {
ID int64 `json:"id"`
PriorityOrder int64 `json:"priorityOrder"`
NodeCount int64 `json:"nodeCount"`
NodeType string `json:"nodeType"`
MinNodeCount int64 `json:"minNodeCount"`
MaxNodeCount any `json:"maxNodeCount"`
DynamicCount bool `json:"dynamicCount"`
InstallContainerRuntime bool `json:"installContainerRuntime"`
InstallStorageRuntime bool `json:"installStorageRuntime"`
Name string `json:"name"`
Code string `json:"code"`
Category any `json:"category"`
Config any `json:"config"`
ContainertType struct {
ID int64 `json:"id"`
Account any `json:"account"`
Name string `json:"name"`
ShortName string `json:"shortName"`
Code string `json:"code"`
ContainerVersion string `json:"containerVersion"`
ProvisionType struct {
ID int64 `json:"id"`
Name string `json:"name"`
Code string `json:"code"`
} `json:"provisionType"`
VirtualImage any `json:"virtualImage"`
Category any `json:"category"`
Config struct{} `json:"config"`
ContainerPorts []struct {
ID int64 `json:"id"`
Name string `json:"name"`
Port int64 `json:"port"`
LoadBalanceProtocol any `json:"loadBalanceProtocol"`
ExportName string `json:"exportName"`
} `json:"containerPorts"`
ContainerScripts []any `json:"containerScripts"`
ContainerTemplates []struct {
ID int64 `json:"id"`
Name string `json:"name"`
} `json:"containerTemplates"`
EnvironmentVariables []any `json:"environmentVariables"`
} `json:"containerType"`
ComputeServerType struct {
ID any `json:"id"`
Code any `json:"code"`
Name any `json:"name"`
Managed any `json:"managed"`
ExternalDelete any `json:"externalDelete"`
} `json:"computeServerType"`
ProvisionService any `json:"provisionService"`
PlanCategory any `json:"planCategory"`
NamePrefix any `json:"namePrefix"`
NameSuffix string `json:"nameSuffix"`
ForceNameIndex bool `json:"forceNameIndex"`
LoadBalance bool `json:"loadBalance"`
}
} `json:"layout"`
}
type InstanceTypeLayoutPayload ¶
type InstanceTypeLayoutPayload struct {
morpheus.InstanceLayout `json:"instanceTypeLayout"`
}
type InstanceTypePayload ¶
type InstanceTypePayload struct {
morpheus.InstanceType `json:"instanceType"`
}
type NodeTypePayload ¶
Source Files
¶
- app_blueprint_arm_resource_git_example.go
- app_blueprint_arm_resource_json_example.go
- app_blueprint_cloud_formation_resource_git_example.go
- app_blueprint_cloud_formation_resource_json_example.go
- app_blueprint_cloud_formation_resource_yaml_example.go
- app_blueprint_helm_resource_example.go
- app_blueprint_kubernetes_resource_git_example.go
- app_blueprint_kubernetes_resource_spec_example.go
- app_blueprint_kubernetes_resource_yaml_example.go
- app_blueprint_terraform_resource_git_example.go
- app_blueprint_terraform_resource_hcl_example.go
- app_blueprint_terraform_resource_json_example.go
- app_blueprint_terraform_resource_spec_example.go
- cluster_layout.go
- cluster_layout_example.go
- common.go
- consts.go
- instance_type.go
- instance_type_layout.go
- instance_type_layout_example.go
- morpheus_instance_type_example.go
- node_type.go
- node_type_resource_example.go
- resource_app_blueprint_cloud_formation.go
- resource_app_blueprint_helm.go
- resource_app_blueprint_kubernetes.go
- resource_app_blueprint_terraform.go
- resource_arm_app_blueprint.go