add generic Certificate model
This commit is contained in:
parent
62803d451d
commit
102fc2a056
1 changed files with 18 additions and 0 deletions
18
internal/certificates/models.go
Normal file
18
internal/certificates/models.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
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
|
||||
}
|
Loading…
Reference in a new issue