Merge branch '21535-multi-wf-delete'
[arvados.git] / sdk / go / arvados / config.go
index a3e54952da483c46a87416b200291bc65b66304b..8572613e9403288d8119604fe1dd69360158ca9b 100644 (file)
@@ -63,8 +63,8 @@ func (sc *Config) GetCluster(clusterID string) (*Cluster, error) {
 
 type WebDAVCacheConfig struct {
        TTL                Duration
-       MaxBlockEntries    int
-       MaxCollectionBytes int64
+       DiskCacheSize      ByteSizeOrPercent
+       MaxCollectionBytes ByteSize
        MaxSessions        int
 }
 
@@ -99,8 +99,10 @@ type Cluster struct {
                DisabledAPIs                     StringSet
                MaxIndexDatabaseRead             int
                MaxItemsPerResponse              int
+               MaxConcurrentRailsRequests       int
                MaxConcurrentRequests            int
                MaxQueuedRequests                int
+               MaxGatewayTunnels                int
                MaxQueueTimeForLockRequests      Duration
                LogCreateRequestFraction         float64
                MaxKeepBlobBuffers               int
@@ -149,17 +151,15 @@ type Cluster struct {
                BalanceCollectionBuffers int
                BalanceTimeout           Duration
                BalanceUpdateLimit       int
+               BalancePullLimit         int
+               BalanceTrashLimit        int
 
                WebDAVCache WebDAVCacheConfig
 
                KeepproxyPermission UploadDownloadRolePermissions
                WebDAVPermission    UploadDownloadRolePermissions
                WebDAVLogEvents     bool
-       }
-       Git struct {
-               GitCommand   string
-               GitoliteHome string
-               Repositories string
+               WebDAVOutputBuffer  ByteSize
        }
        Login struct {
                LDAP struct {
@@ -243,7 +243,6 @@ type Cluster struct {
                AutoAdminFirstUser                    bool
                AutoAdminUserWithEmail                string
                AutoSetupNewUsers                     bool
-               AutoSetupNewUsersWithRepository       bool
                AutoSetupNewUsersWithVmUUID           string
                AutoSetupUsernameBlacklist            StringSet
                EmailSubjectPrefix                    string
@@ -268,31 +267,15 @@ type Cluster struct {
        StorageClasses map[string]StorageClassConfig
        Volumes        map[string]Volume
        Workbench      struct {
-               ActivationContactLink            string
-               APIClientConnectTimeout          Duration
-               APIClientReceiveTimeout          Duration
-               APIResponseCompression           bool
-               ApplicationMimetypesWithViewIcon StringSet
-               ArvadosDocsite                   string
-               ArvadosPublicDataDocURL          string
-               DefaultOpenIdPrefix              string
-               DisableSharingURLsUI             bool
-               EnableGettingStartedPopup        bool
-               EnablePublicProjectsPage         bool
-               FileViewersConfigURL             string
-               LogViewerMaxBytes                ByteSize
-               MultiSiteSearch                  string
-               ProfilingEnabled                 bool
-               Repositories                     bool
-               RepositoryCache                  string
-               RunningJobLogRecordsToFetch      int
-               SecretKeyBase                    string
-               ShowRecentCollectionsOnDashboard bool
-               ShowUserAgreementInline          bool
-               ShowUserNotifications            bool
-               SiteName                         string
-               Theme                            string
-               UserProfileFormFields            map[string]struct {
+               ActivationContactLink   string
+               ArvadosDocsite          string
+               ArvadosPublicDataDocURL string
+               DisableSharingURLsUI    bool
+               FileViewersConfigURL    string
+               ShowUserAgreementInline bool
+               SiteName                string
+               Theme                   string
+               UserProfileFormFields   map[string]struct {
                        Type                 string
                        FormFieldTitle       string
                        FormFieldDescription string
@@ -316,12 +299,13 @@ type StorageClassConfig struct {
 }
 
 type Volume struct {
-       AccessViaHosts   map[URL]VolumeAccess
-       ReadOnly         bool
-       Replication      int
-       StorageClasses   map[string]bool
-       Driver           string
-       DriverParameters json.RawMessage
+       AccessViaHosts         map[URL]VolumeAccess
+       ReadOnly               bool
+       AllowTrashWhenReadOnly bool
+       Replication            int
+       StorageClasses         map[string]bool
+       Driver                 string
+       DriverParameters       json.RawMessage
 }
 
 type S3VolumeDriverParameters struct {
@@ -366,8 +350,6 @@ type Services struct {
        DispatchCloud  Service
        DispatchLSF    Service
        DispatchSLURM  Service
-       GitHTTP        Service
-       GitSSH         Service
        Health         Service
        Keepbalance    Service
        Keepproxy      Service
@@ -515,26 +497,17 @@ type ContainersConfig struct {
        SupportedDockerImageFormats   StringSet
        AlwaysUsePreemptibleInstances bool
        PreemptiblePriceFactor        float64
+       MaximumPriceFactor            float64
        RuntimeEngine                 string
        LocalKeepBlobBuffersPerVCPU   int
        LocalKeepLogsToContainerLog   string
 
        JobsAPI struct {
-               Enable         string
-               GitInternalDir string
+               Enable string
        }
        Logging struct {
-               MaxAge                       Duration
-               SweepInterval                Duration
-               LogBytesPerEvent             int
-               LogSecondsBetweenEvents      Duration
-               LogThrottlePeriod            Duration
-               LogThrottleBytes             int
-               LogThrottleLines             int
-               LimitLogBytesPerJob          int
-               LogPartialLineThrottlePeriod Duration
-               LogUpdatePeriod              Duration
-               LogUpdateSize                ByteSize
+               LogUpdatePeriod Duration
+               LogUpdateSize   ByteSize
        }
        ShellAccess struct {
                Admin bool
@@ -544,20 +517,13 @@ type ContainersConfig struct {
                PrioritySpread             int64
                SbatchArgumentsList        []string
                SbatchEnvironmentVariables map[string]string
-               Managed                    struct {
-                       DNSServerConfDir       string
-                       DNSServerConfTemplate  string
-                       DNSServerReloadCommand string
-                       DNSServerUpdateCommand string
-                       ComputeNodeDomain      string
-                       ComputeNodeNameservers StringSet
-                       AssignNodeHostname     string
-               }
        }
        LSF struct {
-               BsubSudoUser      string
-               BsubArgumentsList []string
-               BsubCUDAArguments []string
+               BsubSudoUser       string
+               BsubArgumentsList  []string
+               BsubCUDAArguments  []string
+               MaxRunTimeOverhead Duration
+               MaxRunTimeDefault  Duration
        }
 }
 
@@ -677,7 +643,6 @@ const (
        ServiceNameDispatchCloud ServiceName = "arvados-dispatch-cloud"
        ServiceNameDispatchLSF   ServiceName = "arvados-dispatch-lsf"
        ServiceNameDispatchSLURM ServiceName = "crunch-dispatch-slurm"
-       ServiceNameGitHTTP       ServiceName = "arvados-git-httpd"
        ServiceNameHealth        ServiceName = "arvados-health"
        ServiceNameKeepbalance   ServiceName = "keep-balance"
        ServiceNameKeepproxy     ServiceName = "keepproxy"
@@ -697,7 +662,6 @@ func (svcs Services) Map() map[ServiceName]Service {
                ServiceNameDispatchCloud: svcs.DispatchCloud,
                ServiceNameDispatchLSF:   svcs.DispatchLSF,
                ServiceNameDispatchSLURM: svcs.DispatchSLURM,
-               ServiceNameGitHTTP:       svcs.GitHTTP,
                ServiceNameHealth:        svcs.Health,
                ServiceNameKeepbalance:   svcs.Keepbalance,
                ServiceNameKeepproxy:     svcs.Keepproxy,