Documentation
¶
Index ¶
- type APICertSignRequest
- type Bundle
- type CertClient
- type CertModel
- type Client
- func (c *Client) GenerateCert(CN string) (*Bundle, error)
- func (c *Client) GetCertByFingerprint(fp string) (*CertModel, error)
- func (c *Client) GetOrCreateMeshCertID() (string, error)
- func (c *Client) GetServerCertByLinkedAPIID(serviceID string) (*CertModel, error)
- func (c *Client) StoreCert(cert *CertModel) (*CertModel, error)
- type Config
- type Mock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APICertSignRequest ¶
type Bundle ¶
type CertClient ¶
type CertModel ¶
type CertModel struct {
MID bson.ObjectId `bson:"_id"`
UID string
Bundle *Bundle
BundleHistory []Bundle // On renewal, move bundle here
Created time.Time
Expires time.Time
ClientEgressIDs []string // If cert is used as a client cert, IDs of APIs it is attached to
ServiceID string // If cert is used as a server cert, ID of API it belongs to
IsMeshCert bool
}
func NewCertModel ¶
type Client ¶
type Client struct {
CA *Config
// contains filtered or unexported fields
}
func (*Client) GetCertByFingerprint ¶
func (*Client) GetOrCreateMeshCertID ¶
func (*Client) GetServerCertByLinkedAPIID ¶
type Mock ¶
type Mock struct{}
func (*Mock) GetCertByFingerprint ¶
func (*Mock) GetServerCertByLinkedAPIID ¶
Click to show internal directories.
Click to hide internal directories.