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 GenReplicaConfigs(platform string, cluster string, service string, azs []string, ...) []*manage.ReplicaConfig
- func ValidateRequest(r *manage.CatalogCreateCouchDBRequest) error
Constants ¶
View Source
const ( // ContainerImage is the main running container. ContainerImage = common.ContainerNamePrefix + "couchdb:" + common.Version // InitContainerImage initializes the couchdb cluster. InitContainerImage = common.ContainerNamePrefix + "couchdb-init:" + common.Version )
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 GenReplicaConfigs ¶
func GenReplicaConfigs(platform string, cluster string, service string, azs []string, opts *manage.CatalogCouchDBOptions) []*manage.ReplicaConfig
GenReplicaConfigs generates the replica configs.
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.