Documentation
¶
Overview ¶
Package certify provides protocol compliance certification framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCertificate ¶
func FormatCertificate(cert *Certificate) string
FormatCertificate formats a certificate as text.
Types ¶
type Certificate ¶
type Certificate struct {
Protocol string `json:"protocol"`
Level Level `json:"level"`
Standard string `json:"standard"` // "IETF", "IEEE", "3GPP", "custom"
IssuedAt time.Time `json:"issued_at"`
ExpiresAt time.Time `json:"expires_at"`
Tests []TestResult `json:"tests"`
PassRate float64 `json:"pass_rate"`
}
Certificate represents a protocol compliance certificate.
type Certifier ¶
type Certifier struct{}
Certifier runs compliance certification tests.
func (*Certifier) Certify ¶
func (c *Certifier) Certify(s *schema.ProtocolSchema, standard string) *Certificate
Certify runs certification tests on a protocol schema.
type TestResult ¶
type TestResult struct {
Name string `json:"name"`
Passed bool `json:"passed"`
Details string `json:"details"`
}
TestResult represents a single certification test result.
Click to show internal directories.
Click to hide internal directories.