Documentation ¶
Index ¶
- Constants
- func GenDefaultCreateServiceRequest(platform string, region string, azs []string, cluster string, service string, ...) *manage.CreateServiceRequest
- func GenDefaultInitTaskRequest(req *manage.ServiceCommonRequest, logConfig *cloudlog.LogConfig, azs []string, ...) *containersvc.RunTaskOptions
- func GenInitTaskEnvKVPairs(region string, cluster string, manageurl string, service string, azs []string, ...) []*common.EnvKeyValuePair
- func GetAdminFromServiceConfigs(content string) (admin string, adminPass string)
- func ValidateRequest(r *manage.CatalogCreateCouchDBRequest) error
Constants ¶
View Source
const ( // ContainerImage is the main running container. ContainerImage = common.ContainerNamePrefix + "couchdb:" + defaultVersion // InitContainerImage initializes the couchdb cluster. InitContainerImage = common.ContainerNamePrefix + "couchdb-init:" + 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.CatalogCouchDBOptions) *manage.CreateServiceRequest
GenDefaultCreateServiceRequest returns the default service creation request.
func GenDefaultInitTaskRequest ¶
func GenDefaultInitTaskRequest(req *manage.ServiceCommonRequest, logConfig *cloudlog.LogConfig, azs []string, serviceUUID string, replicas int64, manageurl string, admin string, adminPass string) *containersvc.RunTaskOptions
GenDefaultInitTaskRequest returns the default service init task request.
func GenInitTaskEnvKVPairs ¶
func GenInitTaskEnvKVPairs(region string, cluster string, manageurl string, service string, azs []string, replicas int64, admin string, adminPass string) []*common.EnvKeyValuePair
GenInitTaskEnvKVPairs generates the environment key-values for the init task.
func GetAdminFromServiceConfigs ¶ added in v0.9.6
func ValidateRequest ¶
func ValidateRequest(r *manage.CatalogCreateCouchDBRequest) error
ValidateRequest checks if the request is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.