Documentation
¶
Index ¶
- type CertificateRequest
- type Impl
- func (c *Impl) GetAKI() string
- func (c *Impl) GetExpiredTimeEnd() *time.Time
- func (c *Impl) GetExpiredTimeStart() *time.Time
- func (c *Impl) GetID() string
- func (c *Impl) GetNotExpired() bool
- func (c *Impl) GetNotRevoked() bool
- func (c *Impl) GetRevokedTimeEnd() *time.Time
- func (c *Impl) GetRevokedTimeStart() *time.Time
- func (c *Impl) GetSerial() string
- type RequestContext
- type TimeFilters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateRequest ¶
type CertificateRequest interface {
GetID() string
GetSerial() string
GetAKI() string
GetNotRevoked() bool
GetNotExpired() bool
GetRevokedTimeStart() *time.Time
GetRevokedTimeEnd() *time.Time
GetExpiredTimeStart() *time.Time
GetExpiredTimeEnd() *time.Time
}
CertificateRequest defines the properties of a certificate request
type Impl ¶
type Impl struct {
ID string
SerialNumber string
Aki string
Notexpired bool
Notrevoked bool
ExpiredTimeStart *time.Time
ExpiredTimeEnd *time.Time
RevokedTimeStart *time.Time
RevokedTimeEnd *time.Time
}
Impl defines the properties of a certificate request
func NewCertificateRequest ¶
func NewCertificateRequest(ctx RequestContext) (*Impl, error)
NewCertificateRequest returns a certificate request object
func (*Impl) GetExpiredTimeEnd ¶
GetExpiredTimeEnd returns the ending expiration time filter value
func (*Impl) GetExpiredTimeStart ¶
GetExpiredTimeStart returns the starting expiration time filter value
func (*Impl) GetNotExpired ¶
GetNotExpired returns the notexpired bool value
func (*Impl) GetNotRevoked ¶
GetNotRevoked returns the notrevoked bool value
func (*Impl) GetRevokedTimeEnd ¶
GetRevokedTimeEnd returns the ending revoked time filter value
func (*Impl) GetRevokedTimeStart ¶
GetRevokedTimeStart returns the starting revoked time filter value
type RequestContext ¶
type RequestContext interface {
GetQueryParm(string) string
GetBoolQueryParm(string) (bool, error)
}
RequestContext describes the request
type TimeFilters ¶
type TimeFilters struct {
// contains filtered or unexported fields
}
TimeFilters defines the various times that can be used as filters