Documentation ¶
Index ¶
- func GCP_access_handler(w http.ResponseWriter, r *http.Request)
- func GCP_imported_web_handler(w http.ResponseWriter, r *http.Request)
- func GCP_web_handler(w http.ResponseWriter, r *http.Request)
- func Generate_gcp_ssh_keys(gcp_map map[string]string)
- func Generate_terraform_resources(gcp_map map[string]string)
- func Generate_terraform_sec_group_resources(ajax_map map[string]string)
- func Get_gcp_imported_map_ajax(w http.ResponseWriter, r *http.Request)
- func Get_gcp_map_ajax(w http.ResponseWriter, r *http.Request)
- func Get_subnet_cidr(subnet_address string) string
- func Get_vpc_cidr(subnet_address string) string
- func Launch_instance(w http.ResponseWriter, r *http.Request)
- func Populate_gcp_firewall_default_section(vm_name string)
- func Populate_modified_gcp_firewall_section(hypervisor_port_map map[string]map[string]string, vm_name string)
- func Populate_separate_gcp_firewall_section(hypervisor_port_map map[string]map[string]string)
- func Store_gcp_ssh_keys_from_imported_VM(gcp_map map[string]string, vm_name string)
- func Terminate_instance(w http.ResponseWriter, r *http.Request)
- type Page
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GCP_access_handler ¶
func GCP_access_handler(w http.ResponseWriter, r *http.Request)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func GCP_imported_web_handler ¶
func GCP_imported_web_handler(w http.ResponseWriter, r *http.Request)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func GCP_web_handler ¶
func GCP_web_handler(w http.ResponseWriter, r *http.Request)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Generate_gcp_ssh_keys ¶
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Store_gcp_credentials(gcp_map map[string]map[string]string, vm_name string) {
credentials_string := "" key_id := gcp_map[vm_name]["key_id"] secret_key := gcp_map[vm_name]["secret_key"] current_dir, _ := os.Getwd() credentials_path := current_dir + "/../gcp_bootstrap/" credentials_string += "[default]\ngcp_access_key_id = " + key_id + "\ngcp_secret_access_key = " + secret_key + "\n" output_file_handle := []byte(credentials_string) err := ioutil.WriteFile(credentials_path + "gcp_credentials", output_file_handle, 0644) check(err) kv_store.Set_kv_entry(gcp_map[vm_name], "credentials_path", credentials_path + "gcp_credentials") }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Generate_terraform_resources ¶
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Generate_terraform_sec_group_resources ¶
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Get_gcp_imported_map_ajax ¶
func Get_gcp_imported_map_ajax(w http.ResponseWriter, r *http.Request)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Get_gcp_map_ajax ¶
func Get_gcp_map_ajax(w http.ResponseWriter, r *http.Request)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Get_subnet_cidr ¶
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Get_vpc_cidr ¶
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Launch_instance ¶
func Launch_instance(w http.ResponseWriter, r *http.Request)
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Populate_gcp_firewall_default_section ¶
func Populate_gcp_firewall_default_section(vm_name string)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Populate_modified_gcp_firewall_section ¶
func Populate_modified_gcp_firewall_section(hypervisor_port_map map[string]map[string]string, vm_name string)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Populate_separate_gcp_firewall_section ¶
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Store_gcp_ssh_keys_from_imported_VM ¶
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
func Terminate_instance ¶
func Terminate_instance(w http.ResponseWriter, r *http.Request)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Types ¶
type Page ¶
type Page struct { Title string Body []byte LogPath string LogPosition int Show_SSH string Selected_VM string Cloud_Platform string Instance_construction_type string GCP_Project string GCP_Json_key string }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////