mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-10-31 07:55:06 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
 | |
| // All rights reserved. This file is part of cc-backend.
 | |
| // Use of this source code is governed by a MIT-style
 | |
| // license that can be found in the LICENSE file.
 | |
| 
 | |
| package archive
 | |
| 
 | |
| var configSchema = `
 | |
| 	{
 | |
|       "type": "object",
 | |
|       "properties": {
 | |
|         "kind": {
 | |
|           "description": "Backend type for job-archive",
 | |
|           "type": "string",
 | |
|           "enum": ["file", "s3"]
 | |
|         },
 | |
|         "path": {
 | |
|           "description": "Path to job archive for file backend",
 | |
|           "type": "string"
 | |
|         },
 | |
|         "compression": {
 | |
|           "description": "Setup automatic compression for jobs older than number of days",
 | |
|           "type": "integer"
 | |
|         },
 | |
|         "retention": {
 | |
|           "description": "Configuration keys for retention",
 | |
|           "type": "object",
 | |
|           "properties": {
 | |
|             "policy": {
 | |
|               "description": "Retention policy",
 | |
|               "type": "string",
 | |
|               "enum": ["none", "delete", "move"]
 | |
|             },
 | |
|             "includeDB": {
 | |
|               "description": "Also remove jobs from database",
 | |
|               "type": "boolean"
 | |
|             },
 | |
|             "age": {
 | |
|               "description": "Act on jobs with startTime older than age (in days)",
 | |
|               "type": "integer"
 | |
|             },
 | |
|             "location": {
 | |
|               "description": "The target directory for retention. Only applicable for retention move.",
 | |
|               "type": "string"
 | |
|             }
 | |
|           },
 | |
|           "required": ["policy"]
 | |
|         }
 | |
|       },
 | |
|       "required": ["kind"]}`
 |