feat: add tag extraction functionality to Caddy configuration and display in UI
All checks were successful
Caddy Manager CI build / docker (push) Successful in 49s
All checks were successful
Caddy Manager CI build / docker (push) Successful in 49s
This commit is contained in:
@@ -35,4 +35,11 @@ public interface ICaddyConfigurationParsingService
|
||||
/// <param name="caddyfileContent"></param>
|
||||
/// <returns></returns>
|
||||
List<int> GetReverseProxyPortsFromCaddyfileContent(string caddyfileContent);
|
||||
|
||||
/// <summary>
|
||||
/// Extracts tags from a Caddyfile content using the format: # Tags: [tag1;tag2;tag3]
|
||||
/// </summary>
|
||||
/// <param name="caddyfileContent"></param>
|
||||
/// <returns></returns>
|
||||
List<string> GetTagsFromCaddyfileContent(string caddyfileContent);
|
||||
}
|
||||
@@ -30,6 +30,11 @@ public class CaddyConfigurationInfo
|
||||
/// </summary>
|
||||
public List<int> AggregatedReverseProxyPorts { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Tags extracted from the configuration content using the format: # Tags: [tag1;tag2;tag3]
|
||||
/// </summary>
|
||||
public List<string> Tags { get; set; } = [];
|
||||
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
if (obj is not CaddyConfigurationInfo other)
|
||||
|
||||
Reference in New Issue
Block a user