2024-05-30 09:25:30 -07:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace SourceGit.Models
|
|
|
|
|
{
|
2024-06-03 19:20:31 -07:00
|
|
|
|
public class GPGFormat(string name, string value, string desc, string program, bool needFindProgram)
|
2024-05-30 09:25:30 -07:00
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; } = name;
|
|
|
|
|
public string Value { get; set; } = value;
|
|
|
|
|
public string Desc { get; set; } = desc;
|
2024-06-03 19:20:31 -07:00
|
|
|
|
public string Program { get; set; } = program;
|
|
|
|
|
public bool NeedFindProgram { get; set; } = needFindProgram;
|
2024-05-30 09:25:30 -07:00
|
|
|
|
|
2024-06-03 19:20:31 -07:00
|
|
|
|
public static readonly List<GPGFormat> Supported = [
|
|
|
|
|
new GPGFormat("OPENPGP", "openpgp", "DEFAULT", "gpg", true),
|
|
|
|
|
new GPGFormat("X.509", "x509", "", "gpgsm", true),
|
|
|
|
|
new GPGFormat("SSH", "ssh", "Requires Git >= 2.34.0", "ssh-keygen", false),
|
|
|
|
|
];
|
2024-05-30 09:25:30 -07:00
|
|
|
|
}
|
|
|
|
|
}
|