22 lines
1.0 KiB
Go
22 lines
1.0 KiB
Go
package descriptor
|
|
|
|
type Issuer struct {
|
|
ID int64 `json:"id" yaml:"id" db:"id"`
|
|
Name string `json:"name" yaml:"name" db:"name"`
|
|
SignerID int64 `json:"signerId" yaml:"signerId" db:"signer_id"`
|
|
SignerName string `json:"signerName" yaml:"signerName" db:"signer_name"`
|
|
Cert string `json:"cert" yaml:"cert" db:"cert"`
|
|
Key string `json:"key" yaml:"key" db:"key"`
|
|
Revoked bool `json:"revoked" yaml:"revoked" db:"revoked"`
|
|
}
|
|
|
|
type Service struct {
|
|
ID int64 `json:"id" yaml:"id" db:"id"`
|
|
IssuerID int64 `json:"issuerId" yaml:"issuerId" db:"issuer_id"`
|
|
IssuerName string `json:"issuerName" yaml:"issuerName" db:"issuer_name"`
|
|
Name string `json:"name" yaml:"name" db:"name"`
|
|
Cert string `json:"cert" yaml:"cert" db:"cert"`
|
|
Key string `json:"key" yaml:"key" db:"key"`
|
|
Revoked bool `json:"revoked" yaml:"revoked" db:"revoked"`
|
|
}
|