Skip to main content
Sign in
Snippets Groups Projects
Select Git revision
  • 8209a7eda92489166dded4ddc721dc2e69e65f52
  • master default protected
  • dev protected
  • Issue/3003-stsInstitute
  • gitkeep
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2309-docs
  • Fix/xxxx-updateDependencies
  • Issue/2364-testingKpiParser
  • Issue/2287-guestRole
  • Test/xxxx-pipelineTriggers
  • Issue/2102-gitLabResTypeRCV
  • Issue/2278-gitlabToS
  • Issue/2101-gitLabResTypeUi
  • Issue/1788-extractionCronjob
  • Issue/2183-kpiGeneratorResource
  • Issue/2222-resourceDateCreated
  • Issue/2221-projectDateCreated
  • Issue/1321-pidEnquiryOverhaul
  • Issue/1999-gitlabResourcesLib
  • Issue/1951-quotaImplementation
  • v2.22.0
  • v2.20.0
  • v2.19.1
  • v2.19.0
  • v2.18.0
  • v2.17.0
  • v2.16.2
  • v2.16.1
  • v2.16.0
  • v2.15.0
  • v2.14.0
  • v2.13.0
  • v2.12.1
  • v2.12.0
  • v2.11.1
  • v2.11.0
  • v2.10.1
  • v2.10.0
  • v2.9.1
  • v2.9.0
41 results

TitleModel.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    GraphDeployerConfiguration.cs 2.03 KiB
    namespace Coscine.GraphDeployer.Models.ConfigurationModels;
    
    public class GraphDeployerConfiguration
    {
        /// <summary>
        /// The section name in the configuration file.
        /// </summary>
        public static readonly string Section = "GraphDeployerConfiguration";
    
        /// <summary>
        /// Value indicating whether the graph deployer is enabled.
        /// </summary>
        public bool IsEnabled { get; init; }
    
        /// <summary>
        /// The working folder where the graph deployer will store the cloned repositories.
        /// </summary>
        public string? WorkingFolder { get; init; }
    
        /// <summary>
        /// API token for the coscine API.
        /// Requires the administrator role.
        /// </summary>
        public string ApiKey { get; set; } = null!;
    
        /// <summary>
        /// Address of the Coscine API.
        /// </summary>
        public string Endpoint { get; set; } = null!;
    
        /// <summary>
        /// Logger configuration settings.
        /// </summary>
        /// <value>
        /// The logger storage configuration settings, or <c>null</c> if not configured.
        /// </value>
        public LoggerConfiguration? Logger { get; init; }
    
        /// <summary>
        /// GitLab configuration settings.
        /// </summary>
        /// <value>
        /// The GitLab configuration settings, or <c>null</c> if not configured.
        /// </value>
        public GitLabConfiguration GitLab { get; init; } = null!;
    
        /// <summary>
        /// Represents the configuration settings for the logger.
        /// </summary>
        public record LoggerConfiguration(string? LogLevel, string? LogHome);
    
        /// <summary>
        /// Represents the configuration settings for GitLab.
        /// </summary>
        public record GitLabConfiguration
        {
            public required string HostUrl { get; init; }
            public required string Token { get; init; }
            public required List<RepositoryConfiguration> Repositories { get; init; }
        };
    
        public record RepositoryConfiguration
        {
            public required string Name { get; init; }
            public required Uri Url { get; init; }
            public string? Ref { get; init; }
        };
    }