Documentation ¶
Index ¶
- Constants
- func Extend(jsonConfig string, srcDir string, cryptoType string) bool
- func Generate(jsonConfig string, outDir string, cryptoType string) bool
- func JsonToYaml(jsonString string) (bool, string)
- type Config
- type HostnameData
- type NodeSpec
- type NodeTemplate
- type OrgSpec
- type SpecData
- type UsersSpec
Constants ¶
View Source
const ( CRYPTO_SM = "SM2" CRYPTO_ECDSA = "ECDSA" )
Variables ¶
This section is empty.
Functions ¶
func JsonToYaml ¶
Types ¶
type HostnameData ¶
type NodeSpec ¶
type NodeSpec struct { Hostname string `yaml:"Hostname"` CommonName string `yaml:"CommonName"` Country string `yaml:"Country"` Province string `yaml:"Province"` Locality string `yaml:"Locality"` OrganizationalUnit string `yaml:"OrganizationalUnit"` StreetAddress string `yaml:"StreetAddress"` PostalCode string `yaml:"PostalCode"` SANS []string `yaml:"SANS"` }
type NodeTemplate ¶
Directories ¶
Path | Synopsis |
---|---|
gopkg.in
|
|
alecthomas/kingpin.v2
Package kingpin provides command line interfaces like this:
|
Package kingpin provides command line interfaces like this: |
alecthomas/template
Package template implements data-driven templates for generating textual output.
|
Package template implements data-driven templates for generating textual output. |
alecthomas/template/parse
Package parse builds parse trees for templates as defined by text/template and html/template.
|
Package parse builds parse trees for templates as defined by text/template and html/template. |
alecthomas/units
Package units provides helpful unit multipliers and functions for Go.
|
Package units provides helpful unit multipliers and functions for Go. |
yaml.v2
Package yaml implements YAML support for the Go language.
|
Package yaml implements YAML support for the Go language. |
Click to show internal directories.
Click to hide internal directories.