mirror of
https://github.com/Luzifer/vault-openvpn.git
synced 2024-11-14 02:52:44 +00:00
27 lines
432 B
Go
27 lines
432 B
Go
|
package cmd
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type templateVars struct {
|
||
|
CertAuthority string
|
||
|
Certificate string
|
||
|
PrivateKey string
|
||
|
TLSAuth string
|
||
|
}
|
||
|
|
||
|
type listCertificatesTableRow struct {
|
||
|
FQDN string
|
||
|
NotBefore time.Time
|
||
|
NotAfter time.Time
|
||
|
Serial string
|
||
|
}
|
||
|
|
||
|
func (l listCertificatesTableRow) ToLine() []string {
|
||
|
return []string{
|
||
|
l.FQDN,
|
||
|
l.NotBefore.Format(dateFormat),
|
||
|
l.NotAfter.Format(dateFormat),
|
||
|
l.Serial,
|
||
|
}
|
||
|
}
|