13493: Add PostgreSQL connection to cluster config.
[arvados.git] / sdk / go / arvados / config.go
index 8856c929564cf3efb902e19ce48fe7f808c6862e..0225736c2d91c7f88c78ebe4c444ea172062c98f 100644 (file)
@@ -54,6 +54,26 @@ type Cluster struct {
        NodeProfiles       map[string]NodeProfile
        InstanceTypes      []InstanceType
        HTTPRequestTimeout Duration
+       RemoteClusters     map[string]RemoteCluster
+       PostgreSQL         PostgreSQL
+}
+
+type PostgreSQL struct {
+       Connection PostgreSQLConnection
+}
+
+type PostgreSQLConnection map[string]string
+
+type RemoteCluster struct {
+       // API endpoint host or host:port; default is {id}.arvadosapi.com
+       Host string
+       // Perform a proxy request when a local client requests an
+       // object belonging to this remote.
+       Proxy bool
+       // Scheme, default "https". Can be set to "http" for testing.
+       Scheme string
+       // Disable TLS verify. Can be set to true for testing.
+       Insecure bool
 }
 
 type InstanceType struct {
@@ -63,6 +83,7 @@ type InstanceType struct {
        RAM          int64
        Scratch      int64
        Price        float64
+       Preemptible  bool
 }
 
 // GetNodeProfile returns a NodeProfile for the given hostname. An
@@ -129,6 +150,7 @@ func (np *NodeProfile) ServicePorts() map[ServiceName]string {
 }
 
 type SystemServiceInstance struct {
-       Listen string
-       TLS    bool
+       Listen   string
+       TLS      bool
+       Insecure bool
 }