14874: Adds Collections.ManagedProperties to Go SDK.
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Tue, 25 Jun 2019 16:20:24 +0000 (13:20 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Tue, 25 Jun 2019 16:20:24 +0000 (13:20 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

lib/config/config.default.yml
lib/config/export.go
lib/config/generated_config.go
sdk/go/arvados/config.go

index aaf88a0d70bbe4c8948d93c5aa63fb12b3af5491..189e0d1fd800102bd350df183726f182ebabb14f 100644 (file)
@@ -290,7 +290,8 @@ Clusters:
       #   foo_bar: {value: baz, protected: false}
       #
       # If protected is true, only an admin user can modify its value.
-      ManagedProperties: {}
+      ManagedProperties:
+        SAMPLE: {function: original_owner, protected: true}
 
     Login:
       # These settings are provided by your OAuth2 provider (e.g.,
index 39344c0f0497c859949d168d799a538bdc579e6c..2f79c2b2969152469d61167306031ce496514537 100644 (file)
@@ -75,6 +75,9 @@ var whitelist = map[string]bool{
        "Collections.CollectionVersioning":           false,
        "Collections.DefaultReplication":             true,
        "Collections.DefaultTrashLifetime":           true,
+       "Collections.ManagedProperties":              true,
+       "Collections.ManagedProperties.*":            true,
+       "Collections.ManagedProperties.*.*":          true,
        "Collections.PreserveVersionIfIdle":          true,
        "Collections.TrashSweepInterval":             false,
        "Containers":                                 true,
index 15004ca98638c48be9d289bd39b68f18b6d1cb5a..dc9009e96a8b0dfc73c7255dd2e1394489ea6a44 100644 (file)
@@ -296,7 +296,8 @@ Clusters:
       #   foo_bar: {value: baz, protected: false}
       #
       # If protected is true, only an admin user can modify its value.
-      ManagedProperties: {}
+      ManagedProperties:
+        SAMPLE: {function: original_owner, protected: true}
 
     Login:
       # These settings are provided by your OAuth2 provider (e.g.,
index adee06723027916178b9270adcabb4b0386d3bc2..d7e92e6ed98ca1edb0131391d2891f096aa1d9d8 100644 (file)
@@ -78,12 +78,13 @@ type Cluster struct {
        Collections struct {
                BlobSigning           bool
                BlobSigningKey        string
-               DefaultReplication    int
                BlobSigningTTL        Duration
-               DefaultTrashLifetime  Duration
-               TrashSweepInterval    Duration
                CollectionVersioning  bool
+               DefaultTrashLifetime  Duration
+               DefaultReplication    int
+               ManagedProperties     map[string]interface{}
                PreserveVersionIfIdle Duration
+               TrashSweepInterval    Duration
        }
        Git struct {
                Repositories string