Documentation ¶
Index ¶
- Constants
- func GenDefaultCreateServiceRequest(platform string, region string, azs []string, cluster string, service string, ...) (*manage.CreateServiceRequest, error)
- func GenReplicaConfigs(platform string, region string, cluster string, service string, azs []string, ...) []*manage.ReplicaConfig
- func IsBasicConfigFile(filename string) bool
- func ReplaceMemberName(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, error)
GenDefaultCreateServiceRequest returns the default service creation request.
func GenReplicaConfigs ¶
func GenReplicaConfigs(platform string, region string, cluster string, service string, azs []string, opts *manage.CatalogConsulOptions) []*manage.ReplicaConfig
GenReplicaConfigs generates the replica configs.
func IsBasicConfigFile ¶
IsBasicConfigFile checks if the file is the basic_config.json
func ReplaceMemberName ¶
ReplaceMemberName replaces the member's dns name with ip. 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.