Documentation
¶
Index ¶
- Constants
- Variables
- func CreateGitTicket(owner, reponame, token, clustername, subscriptionid, location string, ...) (string, error)
- func GetGit(git_token string) (gitlclient *github.Client, err error)
- func PollGitHubIssueStatus(issueURL, gitToken string) error
- type Provisioner
- type TerraformProvisioner
- func (p *TerraformProvisioner) Apply(directory string, args ...string) (string, error)
- func (p *TerraformProvisioner) Destroy(directory string, args ...string) (string, error)
- func (p *TerraformProvisioner) Init(directory string, args ...string) (string, error)
- func (p *TerraformProvisioner) Output(directory string) (string, error)
- type TofuProvisioner
- func (p *TofuProvisioner) Apply(directory string, args ...string) (string, error)
- func (p *TofuProvisioner) Destroy(directory string, args ...string) (string, error)
- func (p *TofuProvisioner) Init(directory string, args ...string) (string, error)
- func (p *TofuProvisioner) Output(directory string) (string, error)
Constants ¶
View Source
const AKSWorkflow = "Azure Kubernetes Service"
View Source
const AKS_APP_SUBNET_ID = "aks_app_subnet_id"
View Source
const AKS_DIR = "/aks"
View Source
const AKS_ENV = "env=%s"
View Source
const AKS_ID = "aks_id"
View Source
const AKS_SUBNET_ID = "aks_subnet_id"
View Source
const AKS_SUBNET_NAME = "aks_subnet_name"
View Source
const APPLY_ACTIVITY = "Calling the apply activity with .."
View Source
const BASETFDIRECTORY = "./terraform"
View Source
const DESTROY_ACTIVITY = "Calling the destroy activity with .."
View Source
const DNS_DIR = "/dns"
View Source
const DNS_ID = "dns_id"
View Source
const DeployAppWorkflow = "Azure Application Deployment Workflow"
View Source
const EC2_DIR = "/ec2"
View Source
const EKS_DIR = "/eks"
View Source
const GIT_CREATE_TICKET = "Calling the GIT Create Ticket Activity"
View Source
const GIT_POLL_TICKET = "Calling the GIT Poll for Status Activity"
View Source
const GitWorkflow = "Git Workflow"
View Source
const IGW_DIR = "/igw"
View Source
const INIT_ACTIVITY = "Calling the init activity with .."
View Source
const IgwTimeOut = 5 * time.Minute
View Source
const MI_CLIENT_ID = "mi_client_id"
View Source
const MI_DIR = "/identity"
View Source
const MI_ID = "mi_id"
View Source
const MI_PRINCIPAL_ID = "mi_principal_id"
View Source
const MI_TENANT_ID = "mi_tenant_id"
View Source
const ManagedIdentityWorkflow = "Azure Managed Identity"
View Source
const NAT_DIR = "/nat"
View Source
const NGINX_DIR = "/nginx"
View Source
const NP_DIR = "/nodepool"
View Source
const NodePoolWorkflow = "Azure Node Pool"
View Source
const OUTPUT_ACTIVITY = "Calling the output activity with .."
View Source
const PIP_DIR = "/publicip"
View Source
const PIP_ID = "public_ip_id"
View Source
const PIP_IP = "public_ip"
View Source
const PRIVATE_SUBNET_ID = "private_subnet_id"
View Source
const PUBLIC_SUBNET_ID = "public_subnet_id"
View Source
const RGWorkflow = "Azure Resource Group"
View Source
const RG_DIR = "/rg"
View Source
const RG_ID = "rg_id"
View Source
const RG_NAME = "rg_name"
View Source
const RT_DIR = "/route_table"
View Source
const RtError = "Failed to create the route table"
Will help for translation purposes or later..
View Source
const SG_DIR = "/sg"
View Source
const SUBNETARN = "subnet_arn"
View Source
const SUBNETID = "subnet_id"
View Source
const SUBNET_1 = "subnet_id_1"
View Source
const SUBNET_2 = "subnet_id_2"
View Source
const SUBNET_DIR = "/subnet"
View Source
const SubnetTimeOut = 2 * time.Minute
View Source
const SubnetWorkflowAZ = "Azure Virtual Subnet"
View Source
const TEMPORAL_QUEUE_NAME = "provision-task-queue"
View Source
const TERRAFORMCOMMAND = "terraform"
View Source
const TF_APPLY_FAILED = "Failed to execute the terraform apply command"
View Source
const TF_INIT_FAILED = "Failed to execute the terraform init command"
View Source
const TF_OUTPUT_FAILED = "Failed to execute the terraform output command"
View Source
const TOFUCOMMAND = "tofu"
View Source
const VNET_DIR = "/vnet"
View Source
const VNET_GUID_ID = "vnet_guid_id"
View Source
const VNET_ID = "vnet_id"
View Source
const VNET_INFO = "vnet_name=%s"
View Source
const VNET_NAME = "vnet_name"
View Source
const VNetWorkflow = "Azure Virtual Network"
View Source
const VPCTIMEOUT = 1 * time.Minute
View Source
const WORKFLOW_TASK_QUEUE = "AZ_STACK_QUEUE"
Variables ¶
View Source
var TF_INIT = fmt.Sprintf("terraform", "init", "-input=false")
Functions ¶
func CreateGitTicket ¶
func PollGitHubIssueStatus ¶
Types ¶
type Provisioner ¶
type Provisioner interface {
Init(directory string, args ...string) (string, error)
Apply(directory string, args ...string) (string, error)
Output(directory string) (string, error)
Destroy(directory string, args ...string) (string, error)
}
Provisioner is an interface for running infrastructure commands.
func GetProvisioner ¶
func GetProvisioner(provisioner Provisioner) (Provisioner, string, string)
type TerraformProvisioner ¶
type TerraformProvisioner struct{}
TerraformProvisioner implements Provisioner for terraform.
func (*TerraformProvisioner) Apply ¶
func (p *TerraformProvisioner) Apply(directory string, args ...string) (string, error)
func (*TerraformProvisioner) Destroy ¶
func (p *TerraformProvisioner) Destroy(directory string, args ...string) (string, error)
type TofuProvisioner ¶
type TofuProvisioner struct{}
func (*TofuProvisioner) Apply ¶
func (p *TofuProvisioner) Apply(directory string, args ...string) (string, error)
func (*TofuProvisioner) Destroy ¶
func (p *TofuProvisioner) Destroy(directory string, args ...string) (string, error)
Click to show internal directories.
Click to hide internal directories.