Split constants into exported and non-exported
This commit is contained in:
		
							parent
							
								
									27114701ba
								
							
						
					
					
						commit
						cba48ea9dd
					
				|  | @ -1,11 +1,7 @@ | ||||||
| package v1 | package v1 | ||||||
| 
 | 
 | ||||||
| //Cluster name, cluster status and service name setting
 | // 	ClusterStatusUnknown etc : status of a Postgres cluster known to the operator
 | ||||||
| const ( | const ( | ||||||
| 	serviceNameMaxLength   = 63 |  | ||||||
| 	clusterNameMaxLength   = serviceNameMaxLength - len("-repl") |  | ||||||
| 	serviceNameRegexString = `^[a-z]([-a-z0-9]*[a-z0-9])?$` |  | ||||||
| 
 |  | ||||||
| 	ClusterStatusUnknown      PostgresStatus = "" | 	ClusterStatusUnknown      PostgresStatus = "" | ||||||
| 	ClusterStatusCreating     PostgresStatus = "Creating" | 	ClusterStatusCreating     PostgresStatus = "Creating" | ||||||
| 	ClusterStatusUpdating     PostgresStatus = "Updating" | 	ClusterStatusUpdating     PostgresStatus = "Updating" | ||||||
|  | @ -15,3 +11,9 @@ const ( | ||||||
| 	ClusterStatusRunning      PostgresStatus = "Running" | 	ClusterStatusRunning      PostgresStatus = "Running" | ||||||
| 	ClusterStatusInvalid      PostgresStatus = "Invalid" | 	ClusterStatusInvalid      PostgresStatus = "Invalid" | ||||||
| ) | ) | ||||||
|  | 
 | ||||||
|  | const ( | ||||||
|  | 	serviceNameMaxLength   = 63 | ||||||
|  | 	clusterNameMaxLength   = serviceNameMaxLength - len("-repl") | ||||||
|  | 	serviceNameRegexString = `^[a-z]([-a-z0-9]*[a-z0-9])?$` | ||||||
|  | ) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue