up
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
Build Test Deploy / build-test (push) Has been cancelled
Build Test Deploy / authority-container (push) Has been cancelled
Build Test Deploy / docs (push) Has been cancelled
Build Test Deploy / deploy (push) Has been cancelled
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
Build Test Deploy / build-test (push) Has been cancelled
Build Test Deploy / authority-container (push) Has been cancelled
Build Test Deploy / docs (push) Has been cancelled
Build Test Deploy / deploy (push) Has been cancelled
This commit is contained in:
29
src/StellaOps.Scanner.Storage/Catalog/ImageDocument.cs
Normal file
29
src/StellaOps.Scanner.Storage/Catalog/ImageDocument.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
|
||||
namespace StellaOps.Scanner.Storage.Catalog;
|
||||
|
||||
[BsonIgnoreExtraElements]
|
||||
public sealed class ImageDocument
|
||||
{
|
||||
[BsonId]
|
||||
public string ImageDigest { get; set; } = string.Empty;
|
||||
|
||||
[BsonElement("repository")]
|
||||
public string Repository { get; set; } = string.Empty;
|
||||
|
||||
[BsonElement("tag")]
|
||||
[BsonIgnoreIfNull]
|
||||
public string? Tag { get; set; }
|
||||
= null;
|
||||
|
||||
[BsonElement("architecture")]
|
||||
public string Architecture { get; set; } = string.Empty;
|
||||
|
||||
[BsonElement("createdAt")]
|
||||
public DateTime CreatedAtUtc { get; set; }
|
||||
= DateTime.UtcNow;
|
||||
|
||||
[BsonElement("lastSeenAt")]
|
||||
public DateTime LastSeenAtUtc { get; set; }
|
||||
= DateTime.UtcNow;
|
||||
}
|
||||
Reference in New Issue
Block a user