cfts

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

Change File name in the script and provide the path and Comipile the script in goland

{{filename := "cf-aws-fmt.yml"}}

	source, err := ioutil.ReadFile(filename)
	if err != nil {
		panic(err)
	}
	yaml, err := simpleyaml.NewYaml(source)
	if err != nil {
		panic(err)
	}

	//fmt.Printf("VPC Creation enabled")

	StackName, _ := yaml.Get("Master").Get("StackName").String()
	TemplateURL, _ := yaml.Get("Master").Get("TemplateURL").String()
	KubernetesVersion, _ := yaml.Get("Master").Get("KubernetesVersion").String()
	NodesSelected, _ := yaml.Get("Master").Get("Nodes").Array()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cftvpc

type Cftvpc struct {
	StackName   string
	TemplateURL string
}

type Config

type Config struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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