Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct { SerialNumber string `json:"serial_number"` AuthorityKeyIdentifier string `json:"authority_key_identifier"` CertPem string `json:"cert_pem"` NotBefore time.Time `json:"not_before"` NotAfter time.Time `json:"not_after"` MetaData map[string]interface{} `json:"meta_data"` }
func (*Certificate) Hash ¶
func (a *Certificate) Hash() string
func (*Certificate) String ¶
func (a *Certificate) String() string
type CertificateRevoke ¶
type CertificateRevoke struct { SerialNumber string `json:"serial_number"` RevokeAt time.Time `json:"revoke_at"` }
CertificateRevoke 证书状态信息
func (*CertificateRevoke) String ¶
func (a *CertificateRevoke) String() string
type ErrorResult ¶
type ErrorResult struct {
Error ErrorItem `json:"error"`
}
type ListResult ¶
type ListResult struct { List interface{} `json:"list"` Pagination *PaginationResult `json:"pagination,omitempty"` }
type LocalSignRequest ¶
type LocalSignRequest struct { Hostname string `json:"hostname"` Hosts []string `json:"hosts"` Request string `json:"certificate_request"` Subject *signer.Subject `json:"subject,omitempty"` Profile string `json:"profile"` Label string `json:"label"` Serial *big.Int `json:"serial,omitempty"` Bundle bool `json:"bundle"` Metadata map[string]interface{} `json:"metadata"` }
func (*LocalSignRequest) ToSignerSignRequest ¶
func (a *LocalSignRequest) ToSignerSignRequest() signer.SignRequest
type OrderDirection ¶
type OrderDirection int
const ( OrderByASC OrderDirection = iota + 1 OrderByDESC )
type OrderField ¶
type OrderField struct { Key string Direction OrderDirection }
func NewOrderField ¶
func NewOrderField(key string, d OrderDirection) *OrderField
func NewOrderFieldWithKeys ¶
func NewOrderFieldWithKeys(keys []string, directions ...map[int]OrderDirection) []*OrderField
Create order fields key and define key index direction
func NewOrderFields ¶
func NewOrderFields(orderFields ...*OrderField) []*OrderField
type PaginationParam ¶
type PaginationParam struct { Pagination bool `form:"-"` OnlyCount bool `form:"-"` Current int `form:"current,default=1"` PageSize int `form:"pageSize,default=10" binding:"max=100"` }
func (PaginationParam) GetCurrent ¶
func (a PaginationParam) GetCurrent() int
func (PaginationParam) GetPageSize ¶
func (a PaginationParam) GetPageSize() int
type PaginationResult ¶
type RevokeParams ¶
type RevokeParams struct { Serial string `json:"serial" binding:"required"` AKI string `json:"authority_key_id"` Reason string `json:"reason"` Nonce string `json:"nonce"` Sign string `json:"sign"` AuthKey string `json:"auth_key" binding:"required"` Profile string `json:"profile"` }
RevokeParams
type StatusResult ¶
type StatusResult struct {
Status StatusText `json:"status"`
}
type StatusText ¶
type StatusText string
const ( OKStatus StatusText = "OK" ErrorStatus StatusText = "ERROR" FailStatus StatusText = "FAIL" )
func (StatusText) String ¶
func (t StatusText) String() string
type TlsShowResult ¶
Click to show internal directories.
Click to hide internal directories.