Documentation ¶
Index ¶
- Constants
- func GenDefaultCreateServiceRequest(platform string, region string, azs []string, cluster string, service string, ...) *manage.CreateServiceRequest
- func IsBasicConfigFile(filename string) bool
- func SetMemberStaticIP(oldContent string, memberHost string, staticip string) string
- func UpdateBasicConfigsWithIPs(content string, memberips map[string]string) string
- func ValidateRequest(r *manage.CatalogCreateConsulRequest) error
Constants ¶
View Source
const ( // ContainerImage is the main running container. ContainerImage = common.ContainerNamePrefix + "consul:" + defaultVersion )
Variables ¶
This section is empty.
Functions ¶
func GenDefaultCreateServiceRequest ¶
func GenDefaultCreateServiceRequest(platform string, region string, azs []string, cluster string, service string, res *common.Resources, opts *manage.CatalogConsulOptions) *manage.CreateServiceRequest
GenDefaultCreateServiceRequest returns the default service creation request.
func IsBasicConfigFile ¶
IsBasicConfigFile checks if the file is the basic_config.json
func SetMemberStaticIP ¶ added in v0.9.6
SetMemberStaticIP sets the static ip in member.conf
func UpdateBasicConfigsWithIPs ¶ added in v0.9.6
UpdateBasicConfigsWithIPs replace the retry_join with members' ips. memberips, key: member dns name, value: ip.
func ValidateRequest ¶
func ValidateRequest(r *manage.CatalogCreateConsulRequest) error
ValidateRequest checks if the request is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.