certwarden-deploy/internal/certificates/models.go

19 lines
377 B
Go
Raw Permalink Normal View History

2024-07-11 16:22:26 +02:00
package certificates
// GenericCertificate is a generic container to enable us to
// handle both certificates and keys with one function
type GenericCertificate struct {
Name string
FilePath string
Secret string
// True if key, false if certificate
IsKey bool
// Bytes fetched from the server
serverBytes []byte
// Bytes fetched from disk
diskBytes []byte
}