Documentation ¶
Index ¶
- Constants
- Variables
- type AutomateHaConfig
- type AutomateStandaloneConfig
- type AwsHaProvisionConfig
- func (c *AwsHaProvisionConfig) CreateOSSnapShotCredentials() (err error)
- func (c *AwsHaProvisionConfig) DefaultAutomateConfigValues()
- func (c *AwsHaProvisionConfig) DefaultAwsValues()
- func (c *AwsHaProvisionConfig) HasCidrBlockAddr() (isCiderBlock bool, err error)
- func (c *AwsHaProvisionConfig) PromptAmi() (err error)
- func (c *AwsHaProvisionConfig) PromptAutomate() (err error)
- func (c *AwsHaProvisionConfig) PromptAutomateAdminPassword() (err error)
- func (c *AwsHaProvisionConfig) PromptAutomateFqdn() (err error)
- func (c *AwsHaProvisionConfig) PromptAutomateFqdnRootCa() (err error)
- func (c *AwsHaProvisionConfig) PromptAutomateInstanceType() (err error)
- func (c *AwsHaProvisionConfig) PromptAutomateLoadBalancerCertArn() (err error)
- func (c *AwsHaProvisionConfig) PromptAutomateNodes() (err error)
- func (c *AwsHaProvisionConfig) PromptAutomateVolIops() (err error)
- func (c *AwsHaProvisionConfig) PromptAutomateVolSize() (err error)
- func (c *AwsHaProvisionConfig) PromptAutomateVolType() (err error)
- func (c *AwsHaProvisionConfig) PromptAwsArchitecture() (err error)
- func (c *AwsHaProvisionConfig) PromptAwsConfig() (err error)
- func (c *AwsHaProvisionConfig) PromptAwsManaged() (err error)
- func (c *AwsHaProvisionConfig) PromptAwsManagedOpenSearch() (err error)
- func (c *AwsHaProvisionConfig) PromptAwsManagedPostgresql() (err error)
- func (c *AwsHaProvisionConfig) PromptBackup() (err error)
- func (c *AwsHaProvisionConfig) PromptCert(ip, nodeType, certName string) (certVal string, err error)
- func (c *AwsHaProvisionConfig) PromptChefInfrServerLoadBalancerCertArn() (err error)
- func (c *AwsHaProvisionConfig) PromptChefInfraServer() (err error)
- func (c *AwsHaProvisionConfig) PromptChefInfraServerFqdn() (err error)
- func (c *AwsHaProvisionConfig) PromptChefInfraServerFqdnRootCa() (err error)
- func (c *AwsHaProvisionConfig) PromptChefInfraServerInstanceType() (err error)
- func (c *AwsHaProvisionConfig) PromptChefInfraServerNodes() (err error)
- func (c *AwsHaProvisionConfig) PromptChefInfraServerVolIops() (err error)
- func (c *AwsHaProvisionConfig) PromptChefInfraServerVolSize() (err error)
- func (c *AwsHaProvisionConfig) PromptChefInfraServerVolType() (err error)
- func (c *AwsHaProvisionConfig) PromptChefManaged() (err error)
- func (c *AwsHaProvisionConfig) PromptCidr() (err error)
- func (c *AwsHaProvisionConfig) PromptCidrBlockAddr() (err error)
- func (c *AwsHaProvisionConfig) PromptCustomCerts() (err error)
- func (c *AwsHaProvisionConfig) PromptDatabases() (err error)
- func (c *AwsHaProvisionConfig) PromptDeleteOnTermination() (err error)
- func (c *AwsHaProvisionConfig) PromptHaveCustomCerts(nodeType string) (customCerts bool, err error)
- func (c *AwsHaProvisionConfig) PromptIsAwsManaged() (isAwsManagedDb bool, err error)
- func (c *AwsHaProvisionConfig) PromptLoadBalancerAccessLogs() (err error)
- func (c *AwsHaProvisionConfig) PromptOpenSearchInstanceType() (err error)
- func (c *AwsHaProvisionConfig) PromptOpenSearchNodes() (err error)
- func (c *AwsHaProvisionConfig) PromptOpenSearchVolIops() (err error)
- func (c *AwsHaProvisionConfig) PromptOpenSearchVolSize() (err error)
- func (c *AwsHaProvisionConfig) PromptOpenSearchVolType() (err error)
- func (c *AwsHaProvisionConfig) PromptOsCert() (err error)
- func (c *AwsHaProvisionConfig) PromptOsChefManaged() (err error)
- func (c *AwsHaProvisionConfig) PromptOsDomainName() (err error)
- func (c *AwsHaProvisionConfig) PromptOsDomainUrl() (err error)
- func (c *AwsHaProvisionConfig) PromptOsSnapshotRoleArn() (err error)
- func (c *AwsHaProvisionConfig) PromptOsSnapshotUserAccessKeyId() (err error)
- func (c *AwsHaProvisionConfig) PromptOsSnapshotUserAccessKeySecret() (err error)
- func (c *AwsHaProvisionConfig) PromptOsUserName() (err error)
- func (c *AwsHaProvisionConfig) PromptOsUserPassword() (err error)
- func (c *AwsHaProvisionConfig) PromptPgCert() (err error)
- func (c *AwsHaProvisionConfig) PromptPgChefManaged() (err error)
- func (c *AwsHaProvisionConfig) PromptPgDbUserName() (err error)
- func (c *AwsHaProvisionConfig) PromptPgDbUserPassword() (err error)
- func (c *AwsHaProvisionConfig) PromptPgSuperUserName() (err error)
- func (c *AwsHaProvisionConfig) PromptPgSuperUserPassword() (err error)
- func (c *AwsHaProvisionConfig) PromptPgUrl() (err error)
- func (c *AwsHaProvisionConfig) PromptPostgresqlInstanceType() (err error)
- func (c *AwsHaProvisionConfig) PromptPostgresqlNodes() (err error)
- func (c *AwsHaProvisionConfig) PromptPostgresqlVolIops() (err error)
- func (c *AwsHaProvisionConfig) PromptPostgresqlVolSize() (err error)
- func (c *AwsHaProvisionConfig) PromptPostgresqlVolType() (err error)
- func (c *AwsHaProvisionConfig) PromptPrivateSubnet() (err error)
- func (c *AwsHaProvisionConfig) PromptProfile() (err error)
- func (c *AwsHaProvisionConfig) PromptPublicSubnet() (err error)
- func (c *AwsHaProvisionConfig) PromptRegion() (err error)
- func (c *AwsHaProvisionConfig) PromptSsh() (err error)
- func (c *AwsHaProvisionConfig) PromptSshGroup(sshUser string) (err error)
- func (c *AwsHaProvisionConfig) PromptSshKey() (err error)
- func (c *AwsHaProvisionConfig) PromptSshKeyPairName() (err error)
- func (c *AwsHaProvisionConfig) PromptSshPort() (err error)
- func (c *AwsHaProvisionConfig) PromptSshUser() (sshUser string, err error)
- func (c *AwsHaProvisionConfig) PromptVpcId() (err error)
- func (c *AwsHaProvisionConfig) Prompts() (err error)
- func (c *AwsHaProvisionConfig) SetDefaultValuesForDBNodes()
- func (c *AwsHaProvisionConfig) Toml() (tomlBytes []byte, err error)
- type AwsRegions
- type AwsRegionsImp
- type ConfigType
- type DeployType
- type GenConfig
- type GenConfigImp
- func (g *GenConfigImp) AwsHaProvisionFlow() (err error)
- func (g *GenConfigImp) GenConfigWithPrompts() (err error)
- func (g *GenConfigImp) HaAutomateFlow() (err error)
- func (g *GenConfigImp) HaDeployFlow() (err error)
- func (g *GenConfigImp) HaFlow() (err error)
- func (g *GenConfigImp) HaInfraFlow() (err error)
- func (g *GenConfigImp) HaOsFlow() (err error)
- func (g *GenConfigImp) HaPgFlow() (err error)
- func (g *GenConfigImp) OnPremFlow() (err error)
- func (g *GenConfigImp) StandaloneFlow() (err error)
- func (g *GenConfigImp) Toml() (tomlBytes []byte, err error)
- func (g *GenConfigImp) TopologyFlow() (err error)
- type HaDeployConfigGen
- func (c *HaDeployConfigGen) DefaultAutomateConfigValues()
- func (c *HaDeployConfigGen) DefaultExistingInfraValues()
- func (c *HaDeployConfigGen) GetExternalOsType() (dbType string)
- func (c *HaDeployConfigGen) GetExternalPgType() (dbType string)
- func (c *HaDeployConfigGen) PromptAutomate() (err error)
- func (c *HaDeployConfigGen) PromptAutomateAdminPassword() (err error)
- func (c *HaDeployConfigGen) PromptAutomateCerts(hasCustomCerts, hasCustomCertsPerNode bool) (err error)
- func (c *HaDeployConfigGen) PromptAutomateFqdn() (err error)
- func (c *HaDeployConfigGen) PromptAutomateFqdnRootCa() (err error)
- func (c *HaDeployConfigGen) PromptAutomateIpCerts(i int, hasCustomCerts, hasCustomCertsPerNode bool) (err error)
- func (c *HaDeployConfigGen) PromptAutomateNodes() (err error)
- func (c *HaDeployConfigGen) PromptBackup() (err error)
- func (c *HaDeployConfigGen) PromptCert(ip, nodeType, certName string) (certVal string, err error)
- func (c *HaDeployConfigGen) PromptChefInfraServerFqdn() (err error)
- func (c *HaDeployConfigGen) PromptChefInfraServerFqdnRootCa() (err error)
- func (c *HaDeployConfigGen) PromptChefInfraServerNodeIpCerts(i int, hasCustomCerts, hasCustomCertsPerNode bool) (err error)
- func (c *HaDeployConfigGen) PromptChefInfraServerNodes() (err error)
- func (c *HaDeployConfigGen) PromptChefInfraServerPriPubCerts(hasCustomCerts, hasCustomCertsPerNode bool) (err error)
- func (c *HaDeployConfigGen) PromptChefServer() (err error)
- func (c *HaDeployConfigGen) PromptCustomCerts() (err error)
- func (c *HaDeployConfigGen) PromptExternalDb() (hasExternalDb bool, err error)
- func (c *HaDeployConfigGen) PromptExternalDbType() (err error)
- func (c *HaDeployConfigGen) PromptExternalOpenSearch() (err error)
- func (c *HaDeployConfigGen) PromptExternalOpenSearchAwsSnapshotArn() (err error)
- func (c *HaDeployConfigGen) PromptExternalOpenSearchAwsSnapshotUserAccessKey() (err error)
- func (c *HaDeployConfigGen) PromptExternalOpenSearchAwsSnapshotUserAccessSecret() (err error)
- func (c *HaDeployConfigGen) PromptExternalOpenSearchDomainName() (err error)
- func (c *HaDeployConfigGen) PromptExternalOpenSearchDomainUrl() (err error)
- func (c *HaDeployConfigGen) PromptExternalOpenSearchPassword() (err error)
- func (c *HaDeployConfigGen) PromptExternalOpenSearchRootCert() (err error)
- func (c *HaDeployConfigGen) PromptExternalOpenSearchUser() (err error)
- func (c *HaDeployConfigGen) PromptExternalPostgresql() (err error)
- func (c *HaDeployConfigGen) PromptExternalPostgresqlDbUser() (err error)
- func (c *HaDeployConfigGen) PromptExternalPostgresqlDbUserPassword() (err error)
- func (c *HaDeployConfigGen) PromptExternalPostgresqlInstanceUrl() (err error)
- func (c *HaDeployConfigGen) PromptExternalPostgresqlRootCert() (err error)
- func (c *HaDeployConfigGen) PromptExternalPostgresqlSuperUser() (err error)
- func (c *HaDeployConfigGen) PromptExternalPostgresqlSuperUserPassword() (err error)
- func (c *HaDeployConfigGen) PromptHaveCustomCerts(nodeType string) (customCerts, customCertsPerNode bool, err error)
- func (c *HaDeployConfigGen) PromptNodeIp(msg string) (ip string, err error)
- func (c *HaDeployConfigGen) PromptObjectStorageSettings(backupOption string) (err error)
- func (c *HaDeployConfigGen) PromptOpenSearch() (err error)
- func (c *HaDeployConfigGen) PromptOpenSearchNodeIpCerts(i int, hasCustomCerts, hasCustomCertsPerNode bool) (err error)
- func (c *HaDeployConfigGen) PromptOpenSearchNodes() (err error)
- func (haconfiggen *HaDeployConfigGen) PromptOpenSearchPubPriCerts(hasCustomCerts, hasCustomCertsPerNode bool) (err error)
- func (c *HaDeployConfigGen) PromptPostgresql() (err error)
- func (c *HaDeployConfigGen) PromptPostgresqlIpCerts(i int, hasCustomCerts, hasCustomCertsPerNode bool) (err error)
- func (c *HaDeployConfigGen) PromptPostgresqlNodes() (err error)
- func (c *HaDeployConfigGen) PromptPostgresqlPubPriCerts(hasCustomCerts, hasCustomCertsPerNode bool) (err error)
- func (c *HaDeployConfigGen) PromptSsh() (err error)
- func (c *HaDeployConfigGen) PromptSshGroup(sshUser string) (err error)
- func (c *HaDeployConfigGen) PromptSshKey() (err error)
- func (c *HaDeployConfigGen) PromptSshPort() (err error)
- func (c *HaDeployConfigGen) PromptSshUser() (sshUser string, err error)
- func (c *HaDeployConfigGen) Prompts() (err error)
- func (c *HaDeployConfigGen) SetDefaultValuesForDBNodes()
- func (c *HaDeployConfigGen) Toml() (tomlBytes []byte, err error)
- type IConfig
- type InfraHaConfig
- type OsHaConfig
- type PgHaConfig
- type TopologyType
Constants ¶
View Source
const ( AWS_MACHINE_TYPE_REGEX = "" /* 567-byte string literal not displayed */ AWS_MACHINE_TYPE_REGEX_DEFAULT = "m5.large" AWS_VOL_TYPE_REGEX = "^(gp2|gp3|io2|io1|st1|sc1)$" IP_REGEX = "^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)\\.?\\b){4}$" URL_OPTIONAL_PORT_REGEX = "^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9](:{1}[0-9]{1,5})?$" FQDN_REGEX = "^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$" URL_REQUIRED_PORT_REGEX = "^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]:{1}[0-9]{1,5}$" LINUX_USER_REGEX = "^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$" //"^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30})$" DIR_PATH_REGEX = "^\\/$|(\\/[a-zA-Z_0-9-]+)+$" BUCKET_NAME_REGEX = "^[a-zA-Z0-9_-]+$" AWS_ACCESS_KEY_ID_REGEX = "^[A-Z0-9]{20}$" AWS_ACCESS_KEY_SECRET_REGEX = "^[A-Za-z0-9/+=]{40}$" ACCESS_KEY_ID_REGEX = "^[A-Za-z0-9/+=]+$" ACCESS_KEY_SECRET_REGEX = "^[A-Za-z0-9/+=]+$" ENDPOINT_URL = "^(https?://(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}(?::[0-9]{1,5})?|https?://(?:[0-9]{1,3}\\.){3}[0-9]{1,3}(?::[0-9]{1,5})?)$" ENDPOINT_URL_SAMPLE = "http://bucket-endpoint.com or https://bucket.endpoint.com or http://35.182.23.44:9200 or https://35.182.23.44" AUTOMATE_ADMIN_PASSWORD_REGEX = "^.{8,35}$" AWS_MACHINE_TYPE_REGEX_SAMPLE = "m5.large, m5.xlarge" IP_REGEX_SAMPLE = "172.31.0.0" URL_OPTIONAL_PORT_REGEX_SAMPLE = "myopensearch.com or 10.0.82.0:9200" FQDN_REGEX_SAMPLE = "mydomain.chef.io" URL_REQUIRED_PORT_REGEX_SAMPLE = "myrds.chef.io:5432" LINUX_USER_REGEX_SAMPLE = "ubuntu or ec2-user" BUCKET_NAME_REGEX_SAMPLE = "automate-backup" AWS_ACCESS_KEY_ID_REGEX_SAMPLE = "A2PBA*************SQ" AWS_ACCESS_KEY_SECRET_REGEX_SAMPLE = "aPBA*********************************EE" OPENSEARCH_NODETYPE = "OpenSearch" POSTGRESQL_NODETYPE = "Postgresql" AUTOMATE_NODETYPE = "Automate" CHEF_INFRA_SERVER_NODETYPE = "Chef Infra Server" PUB_CERT = "Public Cert" PRI_KEY = "Private Key" ADMIN_CERT = "Admin Cert" ADMIN_KEY = "Admin Key" ROOTCA = "Root CA" TOKEN_URLS = "http://169.254.169.254/latest/api/token" METADATA_URLS = "http://169.254.169.254/latest/meta-data/iam/info" ERR_MSG_AWS_INSTANCE_TYPE = "Please provide a valid AWS Instance Type, like: m5.large" ERR_MSG_EBS_VOL_TYPE = "Please provide valid AWS EBS Volume Type" ERR_MSG_AUTOMATE_PASS = "Please provide a password which is of min. length 8 char and max. length of 35" ERR_MSG_SSH_USER = "Please provide valid pattern Linux User Name, like: ubuntu, root" ERR_MSG_SSH_GROUP = "Please provide valid pattern Linux Group Name, like: ubuntu, root" ERR_MSG_CIDR = "Please provide valid CIDR value like: 172.31.64.0, ensure to give large set of IP possible set." ERR_MSG_PG_URL = "Please provide valid pattern of PostgreSQL URL with Port No." ERR_MSG_OS_URL = "Please provide valid OpenSearch URL, like: chef-opensearch.myosdomain.com" ERR_MSG_AUTOMATE_FQDN = "Please provide valid FQDN pattern for Automate Domain, like: my-automate-domain.com" ERR_MSG_INFRA_FQDN = "Please provide valid URL pattern for Chef Infra Server FQDN, like: my-infraserver-domain.com" )
View Source
const ( PROMPT_NODE_IP = "%v. Node IP address" AWS_S3 = "AWS S3" MINIO = "Minio" OBJECT_STORE = "Object Store" GOOGLE_BUCKET = "Google Cloud Storage Bucket" FILE_SYSTEM = "File System" NFS = "NFS" EFS = "EFS" ERR_MSG_BUCKET = "Please provide valid Bucket Name, like: automate-backup" ERR_MSG_AWS_ACCESS_KEY_ID = "Please provide valid AWS Access Key ID of 20 Capital Letters or Numbers" ERR_MSG_AWS_ACCESS_KEY_SECRET = "Please provide valid AWS Access Key Secret of 40 alpha numeric characters" ERR_MSG_ACCESS_KEY = "Please provide valid Access Key ID with Alpha numeric characters" ERR_MSG_IP = "Please provide valid IP Address, like: 192.168.1.1" ERR_MSG_BUCKET_ENDPOINT = "Please provide a valid Bucket Endpoint URL, like: https://my-object-store.example.com or https://35.2.44.4:9200" ERR_MSG_DIR_LOC = "Please provide a valid Directory Location on local linux filesystem, like: /mnt/automate_backups" )
Variables ¶
View Source
var AwsRegionsList = []awsRegionItem{
{"US East (Ohio) us-east-2", "us-east-2"},
{"US East (N. Virginia) us-east-1", "us-east-1"},
{"US West (N. California) us-west-1", "us-west-1"},
{"US West (Oregon) us-west-2", "us-west-2"},
{"Africa (Cape Town) af-south-1", "af-south-1"},
{"Asia Pacific (Hong Kong) ap-east-1", "ap-east-1"},
{"Asia Pacific (Hyderabad) ap-south-2", "ap-south-2"},
{"Asia Pacific (Jakarta) ap-southeast-3", "ap-southeast-3"},
{"Asia Pacific (Melbourne) ap-southeast-4", "ap-southeast-4"},
{"Asia Pacific (Mumbai) ap-south-1", "ap-south-1"},
{"Asia Pacific (Osaka) ap-northeast-3", "ap-northeast-3"},
{"Asia Pacific (Seoul) ap-northeast-2", "ap-northeast-2"},
{"Asia Pacific (Singapore) ap-southeast-1", "ap-southeast-1"},
{"Asia Pacific (Sydney) ap-southeast-2", "ap-southeast-2"},
{"Asia Pacific (Tokyo) ap-northeast-1", "ap-northeast-1"},
{"Canada (Central) ca-central-1", "ca-central-1"},
{"Europe (Frankfurt) eu-central-1", "eu-central-1"},
{"Europe (Ireland) eu-west-1", "eu-west-1"},
{"Europe (London) eu-west-2", "eu-west-2"},
{"Europe (Milan) eu-south-1", "eu-south-1"},
{"Europe (Paris) eu-west-3", "eu-west-3"},
{"Europe (Spain) eu-south-2", "eu-south-2"},
{"Europe (Stockholm) eu-north-1", "eu-north-1"},
{"Europe (Zurich) eu-central-2", "eu-central-2"},
{"Middle East (Bahrain) me-south-1", "me-south-1"},
{"Middle East (UAE) me-central-1", "me-central-1"},
{"South America (São Paulo) sa-east-1", "sa-east-1"},
{"AWS GovCloud (US-East) us-gov-east-1", "us-gov-east-1"},
{"AWS GovCloud (US-West) us-gov-west-1", "us-gov-west-1"},
}
Functions ¶
This section is empty.
Types ¶
type AutomateHaConfig ¶
type AutomateHaConfig struct {
Fqdn string `json:"fqdn,omitempty" toml:"fqdn,omitempty" mapstructure:"fqdn,omitempty"`
}
func AutomateHaConfigFactory ¶
func AutomateHaConfigFactory() *AutomateHaConfig
func (*AutomateHaConfig) Prompts ¶
func (c *AutomateHaConfig) Prompts() (err error)
func (*AutomateHaConfig) Toml ¶
func (c *AutomateHaConfig) Toml() (tomlBytes []byte, err error)
type AutomateStandaloneConfig ¶
type AutomateStandaloneConfig struct {
Fqdn string `json:"fqdn,omitempty" toml:"fqdn,omitempty" mapstructure:"fqdn,omitempty"`
}
func AutomateStandaloneConfigFactory ¶
func AutomateStandaloneConfigFactory() *AutomateStandaloneConfig
func (*AutomateStandaloneConfig) Prompts ¶
func (c *AutomateStandaloneConfig) Prompts() (err error)
func (*AutomateStandaloneConfig) Toml ¶
func (c *AutomateStandaloneConfig) Toml() (tomlBytes []byte, err error)
type AwsHaProvisionConfig ¶
type AwsHaProvisionConfig struct { Prompt pmt.Prompt `toml:"-"` Config *config.HaDeployConfig HasCustomCerts bool `toml:"-"` FileUtils fileutils.FileUtils `toml:"-"` CreateOSSnapShotCred bool // contains filtered or unexported fields }
func AwsHaProvisionConfigFactory ¶
func AwsHaProvisionConfigFactory(p pmt.Prompt) *AwsHaProvisionConfig
func (*AwsHaProvisionConfig) CreateOSSnapShotCredentials ¶
func (c *AwsHaProvisionConfig) CreateOSSnapShotCredentials() (err error)
func (*AwsHaProvisionConfig) DefaultAutomateConfigValues ¶
func (c *AwsHaProvisionConfig) DefaultAutomateConfigValues()
func (*AwsHaProvisionConfig) DefaultAwsValues ¶
func (c *AwsHaProvisionConfig) DefaultAwsValues()
func (*AwsHaProvisionConfig) HasCidrBlockAddr ¶
func (c *AwsHaProvisionConfig) HasCidrBlockAddr() (isCiderBlock bool, err error)
func (*AwsHaProvisionConfig) PromptAmi ¶
func (c *AwsHaProvisionConfig) PromptAmi() (err error)
func (*AwsHaProvisionConfig) PromptAutomate ¶
func (c *AwsHaProvisionConfig) PromptAutomate() (err error)
func (*AwsHaProvisionConfig) PromptAutomateAdminPassword ¶
func (c *AwsHaProvisionConfig) PromptAutomateAdminPassword() (err error)
func (*AwsHaProvisionConfig) PromptAutomateFqdn ¶
func (c *AwsHaProvisionConfig) PromptAutomateFqdn() (err error)
func (*AwsHaProvisionConfig) PromptAutomateFqdnRootCa ¶
func (c *AwsHaProvisionConfig) PromptAutomateFqdnRootCa() (err error)
func (*AwsHaProvisionConfig) PromptAutomateInstanceType ¶
func (c *AwsHaProvisionConfig) PromptAutomateInstanceType() (err error)
func (*AwsHaProvisionConfig) PromptAutomateLoadBalancerCertArn ¶
func (c *AwsHaProvisionConfig) PromptAutomateLoadBalancerCertArn() (err error)
func (*AwsHaProvisionConfig) PromptAutomateNodes ¶
func (c *AwsHaProvisionConfig) PromptAutomateNodes() (err error)
func (*AwsHaProvisionConfig) PromptAutomateVolIops ¶
func (c *AwsHaProvisionConfig) PromptAutomateVolIops() (err error)
func (*AwsHaProvisionConfig) PromptAutomateVolSize ¶
func (c *AwsHaProvisionConfig) PromptAutomateVolSize() (err error)
func (*AwsHaProvisionConfig) PromptAutomateVolType ¶
func (c *AwsHaProvisionConfig) PromptAutomateVolType() (err error)
func (*AwsHaProvisionConfig) PromptAwsArchitecture ¶
func (c *AwsHaProvisionConfig) PromptAwsArchitecture() (err error)
func (*AwsHaProvisionConfig) PromptAwsConfig ¶
func (c *AwsHaProvisionConfig) PromptAwsConfig() (err error)
func (*AwsHaProvisionConfig) PromptAwsManaged ¶
func (c *AwsHaProvisionConfig) PromptAwsManaged() (err error)
func (*AwsHaProvisionConfig) PromptAwsManagedOpenSearch ¶
func (c *AwsHaProvisionConfig) PromptAwsManagedOpenSearch() (err error)
func (*AwsHaProvisionConfig) PromptAwsManagedPostgresql ¶
func (c *AwsHaProvisionConfig) PromptAwsManagedPostgresql() (err error)
func (*AwsHaProvisionConfig) PromptBackup ¶
func (c *AwsHaProvisionConfig) PromptBackup() (err error)
func (*AwsHaProvisionConfig) PromptCert ¶
func (c *AwsHaProvisionConfig) PromptCert(ip, nodeType, certName string) (certVal string, err error)
func (*AwsHaProvisionConfig) PromptChefInfrServerLoadBalancerCertArn ¶
func (c *AwsHaProvisionConfig) PromptChefInfrServerLoadBalancerCertArn() (err error)
func (*AwsHaProvisionConfig) PromptChefInfraServer ¶
func (c *AwsHaProvisionConfig) PromptChefInfraServer() (err error)
func (*AwsHaProvisionConfig) PromptChefInfraServerFqdn ¶
func (c *AwsHaProvisionConfig) PromptChefInfraServerFqdn() (err error)
func (*AwsHaProvisionConfig) PromptChefInfraServerFqdnRootCa ¶
func (c *AwsHaProvisionConfig) PromptChefInfraServerFqdnRootCa() (err error)
func (*AwsHaProvisionConfig) PromptChefInfraServerInstanceType ¶
func (c *AwsHaProvisionConfig) PromptChefInfraServerInstanceType() (err error)
func (*AwsHaProvisionConfig) PromptChefInfraServerNodes ¶
func (c *AwsHaProvisionConfig) PromptChefInfraServerNodes() (err error)
func (*AwsHaProvisionConfig) PromptChefInfraServerVolIops ¶
func (c *AwsHaProvisionConfig) PromptChefInfraServerVolIops() (err error)
func (*AwsHaProvisionConfig) PromptChefInfraServerVolSize ¶
func (c *AwsHaProvisionConfig) PromptChefInfraServerVolSize() (err error)
func (*AwsHaProvisionConfig) PromptChefInfraServerVolType ¶
func (c *AwsHaProvisionConfig) PromptChefInfraServerVolType() (err error)
func (*AwsHaProvisionConfig) PromptChefManaged ¶
func (c *AwsHaProvisionConfig) PromptChefManaged() (err error)
func (*AwsHaProvisionConfig) PromptCidr ¶
func (c *AwsHaProvisionConfig) PromptCidr() (err error)
func (*AwsHaProvisionConfig) PromptCidrBlockAddr ¶
func (c *AwsHaProvisionConfig) PromptCidrBlockAddr() (err error)
func (*AwsHaProvisionConfig) PromptCustomCerts ¶
func (c *AwsHaProvisionConfig) PromptCustomCerts() (err error)
func (*AwsHaProvisionConfig) PromptDatabases ¶
func (c *AwsHaProvisionConfig) PromptDatabases() (err error)
func (*AwsHaProvisionConfig) PromptDeleteOnTermination ¶
func (c *AwsHaProvisionConfig) PromptDeleteOnTermination() (err error)
func (*AwsHaProvisionConfig) PromptHaveCustomCerts ¶
func (c *AwsHaProvisionConfig) PromptHaveCustomCerts(nodeType string) (customCerts bool, err error)
func (*AwsHaProvisionConfig) PromptIsAwsManaged ¶
func (c *AwsHaProvisionConfig) PromptIsAwsManaged() (isAwsManagedDb bool, err error)
func (*AwsHaProvisionConfig) PromptLoadBalancerAccessLogs ¶
func (c *AwsHaProvisionConfig) PromptLoadBalancerAccessLogs() (err error)
func (*AwsHaProvisionConfig) PromptOpenSearchInstanceType ¶
func (c *AwsHaProvisionConfig) PromptOpenSearchInstanceType() (err error)
func (*AwsHaProvisionConfig) PromptOpenSearchNodes ¶
func (c *AwsHaProvisionConfig) PromptOpenSearchNodes() (err error)
func (*AwsHaProvisionConfig) PromptOpenSearchVolIops ¶
func (c *AwsHaProvisionConfig) PromptOpenSearchVolIops() (err error)
func (*AwsHaProvisionConfig) PromptOpenSearchVolSize ¶
func (c *AwsHaProvisionConfig) PromptOpenSearchVolSize() (err error)
func (*AwsHaProvisionConfig) PromptOpenSearchVolType ¶
func (c *AwsHaProvisionConfig) PromptOpenSearchVolType() (err error)
func (*AwsHaProvisionConfig) PromptOsCert ¶
func (c *AwsHaProvisionConfig) PromptOsCert() (err error)
func (*AwsHaProvisionConfig) PromptOsChefManaged ¶
func (c *AwsHaProvisionConfig) PromptOsChefManaged() (err error)
func (*AwsHaProvisionConfig) PromptOsDomainName ¶
func (c *AwsHaProvisionConfig) PromptOsDomainName() (err error)
func (*AwsHaProvisionConfig) PromptOsDomainUrl ¶
func (c *AwsHaProvisionConfig) PromptOsDomainUrl() (err error)
func (*AwsHaProvisionConfig) PromptOsSnapshotRoleArn ¶
func (c *AwsHaProvisionConfig) PromptOsSnapshotRoleArn() (err error)
func (*AwsHaProvisionConfig) PromptOsSnapshotUserAccessKeyId ¶
func (c *AwsHaProvisionConfig) PromptOsSnapshotUserAccessKeyId() (err error)
func (*AwsHaProvisionConfig) PromptOsSnapshotUserAccessKeySecret ¶
func (c *AwsHaProvisionConfig) PromptOsSnapshotUserAccessKeySecret() (err error)
func (*AwsHaProvisionConfig) PromptOsUserName ¶
func (c *AwsHaProvisionConfig) PromptOsUserName() (err error)
func (*AwsHaProvisionConfig) PromptOsUserPassword ¶
func (c *AwsHaProvisionConfig) PromptOsUserPassword() (err error)
func (*AwsHaProvisionConfig) PromptPgCert ¶
func (c *AwsHaProvisionConfig) PromptPgCert() (err error)
func (*AwsHaProvisionConfig) PromptPgChefManaged ¶
func (c *AwsHaProvisionConfig) PromptPgChefManaged() (err error)
func (*AwsHaProvisionConfig) PromptPgDbUserName ¶
func (c *AwsHaProvisionConfig) PromptPgDbUserName() (err error)
func (*AwsHaProvisionConfig) PromptPgDbUserPassword ¶
func (c *AwsHaProvisionConfig) PromptPgDbUserPassword() (err error)
func (*AwsHaProvisionConfig) PromptPgSuperUserName ¶
func (c *AwsHaProvisionConfig) PromptPgSuperUserName() (err error)
func (*AwsHaProvisionConfig) PromptPgSuperUserPassword ¶
func (c *AwsHaProvisionConfig) PromptPgSuperUserPassword() (err error)
func (*AwsHaProvisionConfig) PromptPgUrl ¶
func (c *AwsHaProvisionConfig) PromptPgUrl() (err error)
func (*AwsHaProvisionConfig) PromptPostgresqlInstanceType ¶
func (c *AwsHaProvisionConfig) PromptPostgresqlInstanceType() (err error)
func (*AwsHaProvisionConfig) PromptPostgresqlNodes ¶
func (c *AwsHaProvisionConfig) PromptPostgresqlNodes() (err error)
func (*AwsHaProvisionConfig) PromptPostgresqlVolIops ¶
func (c *AwsHaProvisionConfig) PromptPostgresqlVolIops() (err error)
func (*AwsHaProvisionConfig) PromptPostgresqlVolSize ¶
func (c *AwsHaProvisionConfig) PromptPostgresqlVolSize() (err error)
func (*AwsHaProvisionConfig) PromptPostgresqlVolType ¶
func (c *AwsHaProvisionConfig) PromptPostgresqlVolType() (err error)
func (*AwsHaProvisionConfig) PromptPrivateSubnet ¶
func (c *AwsHaProvisionConfig) PromptPrivateSubnet() (err error)
func (*AwsHaProvisionConfig) PromptProfile ¶
func (c *AwsHaProvisionConfig) PromptProfile() (err error)
func (*AwsHaProvisionConfig) PromptPublicSubnet ¶
func (c *AwsHaProvisionConfig) PromptPublicSubnet() (err error)
func (*AwsHaProvisionConfig) PromptRegion ¶
func (c *AwsHaProvisionConfig) PromptRegion() (err error)
func (*AwsHaProvisionConfig) PromptSsh ¶
func (c *AwsHaProvisionConfig) PromptSsh() (err error)
func (*AwsHaProvisionConfig) PromptSshGroup ¶
func (c *AwsHaProvisionConfig) PromptSshGroup(sshUser string) (err error)
func (*AwsHaProvisionConfig) PromptSshKey ¶
func (c *AwsHaProvisionConfig) PromptSshKey() (err error)
func (*AwsHaProvisionConfig) PromptSshKeyPairName ¶
func (c *AwsHaProvisionConfig) PromptSshKeyPairName() (err error)
func (*AwsHaProvisionConfig) PromptSshPort ¶
func (c *AwsHaProvisionConfig) PromptSshPort() (err error)
func (*AwsHaProvisionConfig) PromptSshUser ¶
func (c *AwsHaProvisionConfig) PromptSshUser() (sshUser string, err error)
func (*AwsHaProvisionConfig) PromptVpcId ¶
func (c *AwsHaProvisionConfig) PromptVpcId() (err error)
func (*AwsHaProvisionConfig) Prompts ¶
func (c *AwsHaProvisionConfig) Prompts() (err error)
func (*AwsHaProvisionConfig) SetDefaultValuesForDBNodes ¶
func (c *AwsHaProvisionConfig) SetDefaultValuesForDBNodes()
func (*AwsHaProvisionConfig) Toml ¶
func (c *AwsHaProvisionConfig) Toml() (tomlBytes []byte, err error)
type AwsRegions ¶
type AwsRegionsImp ¶
func AwsRegionsImpFactory ¶
func AwsRegionsImpFactory(p pmt.Prompt) *AwsRegionsImp
type ConfigType ¶
type ConfigType string
const ( CONFIG_TYPE_DEPLOY ConfigType = "Deployment" CONFIG_TYPE_AUTOMATE ConfigType = "Automate" CONFIG_TYPE_INFRA ConfigType = "Chef Infra Server" CONFIG_TYPE_PG ConfigType = "PostgreSQL" CONFIG_TYPE_OS ConfigType = "OpenSearch" )
type DeployType ¶
type DeployType string
const ( DEPLOY_TYPE_ON_PREMISE DeployType = "On-Premise" DEPLOY_TYPE_AWS DeployType = "AWS" )
const ( LOCATION_TYPE_ON_GCP DeployType = "gcs" LOCATION_TYPE_ON_AWS DeployType = "s3" )
type GenConfigImp ¶
func GenConfigImpFactory ¶
func GenConfigImpFactory(p pmt.Prompt) *GenConfigImp
func (*GenConfigImp) AwsHaProvisionFlow ¶
func (g *GenConfigImp) AwsHaProvisionFlow() (err error)
func (*GenConfigImp) GenConfigWithPrompts ¶
func (g *GenConfigImp) GenConfigWithPrompts() (err error)
func (*GenConfigImp) HaAutomateFlow ¶
func (g *GenConfigImp) HaAutomateFlow() (err error)
func (*GenConfigImp) HaDeployFlow ¶
func (g *GenConfigImp) HaDeployFlow() (err error)
func (*GenConfigImp) HaFlow ¶
func (g *GenConfigImp) HaFlow() (err error)
func (*GenConfigImp) HaInfraFlow ¶
func (g *GenConfigImp) HaInfraFlow() (err error)
func (*GenConfigImp) HaOsFlow ¶
func (g *GenConfigImp) HaOsFlow() (err error)
func (*GenConfigImp) HaPgFlow ¶
func (g *GenConfigImp) HaPgFlow() (err error)
func (*GenConfigImp) OnPremFlow ¶
func (g *GenConfigImp) OnPremFlow() (err error)
func (*GenConfigImp) StandaloneFlow ¶
func (g *GenConfigImp) StandaloneFlow() (err error)
func (*GenConfigImp) Toml ¶
func (g *GenConfigImp) Toml() (tomlBytes []byte, err error)
func (*GenConfigImp) TopologyFlow ¶
func (g *GenConfigImp) TopologyFlow() (err error)
type HaDeployConfigGen ¶
type HaDeployConfigGen struct { Prompt pmt.Prompt `toml:"-"` Config *config.HaDeployConfig HasCustomCerts bool `toml:"-"` FileUtils fileutils.FileUtils `toml:"-"` }
func HaDeployConfigFactory ¶
func HaDeployConfigFactory(p pmt.Prompt) *HaDeployConfigGen
func (*HaDeployConfigGen) DefaultAutomateConfigValues ¶
func (c *HaDeployConfigGen) DefaultAutomateConfigValues()
func (*HaDeployConfigGen) DefaultExistingInfraValues ¶
func (c *HaDeployConfigGen) DefaultExistingInfraValues()
func (*HaDeployConfigGen) GetExternalOsType ¶
func (c *HaDeployConfigGen) GetExternalOsType() (dbType string)
func (*HaDeployConfigGen) GetExternalPgType ¶
func (c *HaDeployConfigGen) GetExternalPgType() (dbType string)
func (*HaDeployConfigGen) PromptAutomate ¶
func (c *HaDeployConfigGen) PromptAutomate() (err error)
func (*HaDeployConfigGen) PromptAutomateAdminPassword ¶
func (c *HaDeployConfigGen) PromptAutomateAdminPassword() (err error)
func (*HaDeployConfigGen) PromptAutomateCerts ¶
func (c *HaDeployConfigGen) PromptAutomateCerts(hasCustomCerts, hasCustomCertsPerNode bool) (err error)
func (*HaDeployConfigGen) PromptAutomateFqdn ¶
func (c *HaDeployConfigGen) PromptAutomateFqdn() (err error)
func (*HaDeployConfigGen) PromptAutomateFqdnRootCa ¶
func (c *HaDeployConfigGen) PromptAutomateFqdnRootCa() (err error)
func (*HaDeployConfigGen) PromptAutomateIpCerts ¶
func (c *HaDeployConfigGen) PromptAutomateIpCerts(i int, hasCustomCerts, hasCustomCertsPerNode bool) (err error)
func (*HaDeployConfigGen) PromptAutomateNodes ¶
func (c *HaDeployConfigGen) PromptAutomateNodes() (err error)
func (*HaDeployConfigGen) PromptBackup ¶
func (c *HaDeployConfigGen) PromptBackup() (err error)
func (*HaDeployConfigGen) PromptCert ¶
func (c *HaDeployConfigGen) PromptCert(ip, nodeType, certName string) (certVal string, err error)
func (*HaDeployConfigGen) PromptChefInfraServerFqdn ¶
func (c *HaDeployConfigGen) PromptChefInfraServerFqdn() (err error)
func (*HaDeployConfigGen) PromptChefInfraServerFqdnRootCa ¶
func (c *HaDeployConfigGen) PromptChefInfraServerFqdnRootCa() (err error)
func (*HaDeployConfigGen) PromptChefInfraServerNodeIpCerts ¶
func (c *HaDeployConfigGen) PromptChefInfraServerNodeIpCerts(i int, hasCustomCerts, hasCustomCertsPerNode bool) (err error)
func (*HaDeployConfigGen) PromptChefInfraServerNodes ¶
func (c *HaDeployConfigGen) PromptChefInfraServerNodes() (err error)
func (*HaDeployConfigGen) PromptChefInfraServerPriPubCerts ¶
func (c *HaDeployConfigGen) PromptChefInfraServerPriPubCerts(hasCustomCerts, hasCustomCertsPerNode bool) (err error)
func (*HaDeployConfigGen) PromptChefServer ¶
func (c *HaDeployConfigGen) PromptChefServer() (err error)
func (*HaDeployConfigGen) PromptCustomCerts ¶
func (c *HaDeployConfigGen) PromptCustomCerts() (err error)
func (*HaDeployConfigGen) PromptExternalDb ¶
func (c *HaDeployConfigGen) PromptExternalDb() (hasExternalDb bool, err error)
func (*HaDeployConfigGen) PromptExternalDbType ¶
func (c *HaDeployConfigGen) PromptExternalDbType() (err error)
func (*HaDeployConfigGen) PromptExternalOpenSearch ¶
func (c *HaDeployConfigGen) PromptExternalOpenSearch() (err error)
func (*HaDeployConfigGen) PromptExternalOpenSearchAwsSnapshotArn ¶
func (c *HaDeployConfigGen) PromptExternalOpenSearchAwsSnapshotArn() (err error)
func (*HaDeployConfigGen) PromptExternalOpenSearchAwsSnapshotUserAccessKey ¶
func (c *HaDeployConfigGen) PromptExternalOpenSearchAwsSnapshotUserAccessKey() (err error)
func (*HaDeployConfigGen) PromptExternalOpenSearchAwsSnapshotUserAccessSecret ¶
func (c *HaDeployConfigGen) PromptExternalOpenSearchAwsSnapshotUserAccessSecret() (err error)
func (*HaDeployConfigGen) PromptExternalOpenSearchDomainName ¶
func (c *HaDeployConfigGen) PromptExternalOpenSearchDomainName() (err error)
func (*HaDeployConfigGen) PromptExternalOpenSearchDomainUrl ¶
func (c *HaDeployConfigGen) PromptExternalOpenSearchDomainUrl() (err error)
func (*HaDeployConfigGen) PromptExternalOpenSearchPassword ¶
func (c *HaDeployConfigGen) PromptExternalOpenSearchPassword() (err error)
func (*HaDeployConfigGen) PromptExternalOpenSearchRootCert ¶
func (c *HaDeployConfigGen) PromptExternalOpenSearchRootCert() (err error)
func (*HaDeployConfigGen) PromptExternalOpenSearchUser ¶
func (c *HaDeployConfigGen) PromptExternalOpenSearchUser() (err error)
func (*HaDeployConfigGen) PromptExternalPostgresql ¶
func (c *HaDeployConfigGen) PromptExternalPostgresql() (err error)
func (*HaDeployConfigGen) PromptExternalPostgresqlDbUser ¶
func (c *HaDeployConfigGen) PromptExternalPostgresqlDbUser() (err error)
func (*HaDeployConfigGen) PromptExternalPostgresqlDbUserPassword ¶
func (c *HaDeployConfigGen) PromptExternalPostgresqlDbUserPassword() (err error)
func (*HaDeployConfigGen) PromptExternalPostgresqlInstanceUrl ¶
func (c *HaDeployConfigGen) PromptExternalPostgresqlInstanceUrl() (err error)
func (*HaDeployConfigGen) PromptExternalPostgresqlRootCert ¶
func (c *HaDeployConfigGen) PromptExternalPostgresqlRootCert() (err error)
func (*HaDeployConfigGen) PromptExternalPostgresqlSuperUser ¶
func (c *HaDeployConfigGen) PromptExternalPostgresqlSuperUser() (err error)
func (*HaDeployConfigGen) PromptExternalPostgresqlSuperUserPassword ¶
func (c *HaDeployConfigGen) PromptExternalPostgresqlSuperUserPassword() (err error)
func (*HaDeployConfigGen) PromptHaveCustomCerts ¶
func (c *HaDeployConfigGen) PromptHaveCustomCerts(nodeType string) (customCerts, customCertsPerNode bool, err error)
func (*HaDeployConfigGen) PromptNodeIp ¶
func (c *HaDeployConfigGen) PromptNodeIp(msg string) (ip string, err error)
func (*HaDeployConfigGen) PromptObjectStorageSettings ¶
func (c *HaDeployConfigGen) PromptObjectStorageSettings(backupOption string) (err error)
func (*HaDeployConfigGen) PromptOpenSearch ¶
func (c *HaDeployConfigGen) PromptOpenSearch() (err error)
func (*HaDeployConfigGen) PromptOpenSearchNodeIpCerts ¶
func (c *HaDeployConfigGen) PromptOpenSearchNodeIpCerts(i int, hasCustomCerts, hasCustomCertsPerNode bool) (err error)
func (*HaDeployConfigGen) PromptOpenSearchNodes ¶
func (c *HaDeployConfigGen) PromptOpenSearchNodes() (err error)
func (*HaDeployConfigGen) PromptOpenSearchPubPriCerts ¶
func (haconfiggen *HaDeployConfigGen) PromptOpenSearchPubPriCerts(hasCustomCerts, hasCustomCertsPerNode bool) (err error)
func (*HaDeployConfigGen) PromptPostgresql ¶
func (c *HaDeployConfigGen) PromptPostgresql() (err error)
func (*HaDeployConfigGen) PromptPostgresqlIpCerts ¶
func (c *HaDeployConfigGen) PromptPostgresqlIpCerts(i int, hasCustomCerts, hasCustomCertsPerNode bool) (err error)
func (*HaDeployConfigGen) PromptPostgresqlNodes ¶
func (c *HaDeployConfigGen) PromptPostgresqlNodes() (err error)
func (*HaDeployConfigGen) PromptPostgresqlPubPriCerts ¶
func (c *HaDeployConfigGen) PromptPostgresqlPubPriCerts(hasCustomCerts, hasCustomCertsPerNode bool) (err error)
func (*HaDeployConfigGen) PromptSsh ¶
func (c *HaDeployConfigGen) PromptSsh() (err error)
func (*HaDeployConfigGen) PromptSshGroup ¶
func (c *HaDeployConfigGen) PromptSshGroup(sshUser string) (err error)
func (*HaDeployConfigGen) PromptSshKey ¶
func (c *HaDeployConfigGen) PromptSshKey() (err error)
func (*HaDeployConfigGen) PromptSshPort ¶
func (c *HaDeployConfigGen) PromptSshPort() (err error)
func (*HaDeployConfigGen) PromptSshUser ¶
func (c *HaDeployConfigGen) PromptSshUser() (sshUser string, err error)
func (*HaDeployConfigGen) Prompts ¶
func (c *HaDeployConfigGen) Prompts() (err error)
func (*HaDeployConfigGen) SetDefaultValuesForDBNodes ¶
func (c *HaDeployConfigGen) SetDefaultValuesForDBNodes()
func (*HaDeployConfigGen) Toml ¶
func (c *HaDeployConfigGen) Toml() (tomlBytes []byte, err error)
type InfraHaConfig ¶
type InfraHaConfig struct {
Fqdn string `json:"fqdn,omitempty" toml:"fqdn,omitempty" mapstructure:"fqdn,omitempty"`
}
func InfraHaConfigFactory ¶
func InfraHaConfigFactory() *InfraHaConfig
func (*InfraHaConfig) Prompts ¶
func (c *InfraHaConfig) Prompts() (err error)
func (*InfraHaConfig) Toml ¶
func (c *InfraHaConfig) Toml() (tomlBytes []byte, err error)
type OsHaConfig ¶
type OsHaConfig struct {
Fqdn string `json:"fqdn,omitempty" toml:"fqdn,omitempty" mapstructure:"fqdn,omitempty"`
}
func OsHaConfigFactory ¶
func OsHaConfigFactory() *OsHaConfig
func (*OsHaConfig) Prompts ¶
func (c *OsHaConfig) Prompts() (err error)
func (*OsHaConfig) Toml ¶
func (c *OsHaConfig) Toml() (tomlBytes []byte, err error)
type PgHaConfig ¶
type PgHaConfig struct {
Fqdn string `json:"fqdn,omitempty" toml:"fqdn,omitempty" mapstructure:"fqdn,omitempty"`
}
func PgHaConfigFactory ¶
func PgHaConfigFactory() *PgHaConfig
func (*PgHaConfig) Prompts ¶
func (c *PgHaConfig) Prompts() (err error)
func (*PgHaConfig) Toml ¶
func (c *PgHaConfig) Toml() (tomlBytes []byte, err error)
type TopologyType ¶
type TopologyType string
const ( TOPOLOGY_TYPE_STANDALONE TopologyType = "Standalone Chef Automate" TOPOLOGY_TYPE_HA TopologyType = "Chef Automate HA" )
Click to show internal directories.
Click to hide internal directories.