Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FarFuture = ValidityPeriod{ Days: 0, NotAfter: time.Date(2099, 12, 31, 23, 59, 0, 0, time.UTC), }
Functions ¶
This section is empty.
Types ¶
type ValidityPeriod ¶
type ValidityPeriod struct { // Days specifies the number of days that the issued cert would be valid for. // Days count is ignored if NotAfter is specified to non-zero. Days // NotAfter specifies the timestamp where the cert is considered valid to (inclusive). NotAfter time.Time }
func (ValidityPeriod) GetNotAfter ¶
func (p ValidityPeriod) GetNotAfter(base time.Time) time.Time
func (ValidityPeriod) String ¶
func (p ValidityPeriod) String() string
func (*ValidityPeriod) UnmarshalFlag ¶
func (p *ValidityPeriod) UnmarshalFlag(s string) error
func (*ValidityPeriod) UnmarshalYAML ¶
func (p *ValidityPeriod) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.