Documentation ¶
Index ¶
- Constants
- func GenDefaultCreateServiceRequest(platform string, region string, azs []string, cluster string, service string, ...) *manage.CreateServiceRequest
- func GenReplicaConfigs(platform string, cluster string, service string, azs []string, port int64, ...) []*manage.ReplicaConfig
- func ValidateRequest(req *manage.CatalogCreatePostgreSQLRequest) error
Constants ¶
View Source
const ( // ContainerImage is the main PostgreSQL running container. ContainerImage = common.ContainerNamePrefix + "postgres:" + common.Version // PostGISContainerImage is the container image for PostgreSQL with PostGIS. PostGISContainerImage = common.ContainerNamePrefix + "postgres-postgis:" + 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.CatalogPostgreSQLOptions) *manage.CreateServiceRequest
GenDefaultCreateServiceRequest returns the default PostgreSQL creation request.
func GenReplicaConfigs ¶
func GenReplicaConfigs(platform string, cluster string, service string, azs []string, port int64, opts *manage.CatalogPostgreSQLOptions) []*manage.ReplicaConfig
GenReplicaConfigs generates the replica configs. Note: if the number of availability zones is less than replicas, 2 or more replicas will run on the same zone.
func ValidateRequest ¶ added in v0.8.1
func ValidateRequest(req *manage.CatalogCreatePostgreSQLRequest) error
ValidateRequest checks if the request is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.