Documentation ¶
Index ¶
- type APIUrls
- type CertificateCredentials
- type CertificateInfo
- type CertificateRequest
- type CertificatesResponse
- type ClientIdentity
- type ErrorResponse
- type EstablishedConnection
- type EstablishedConnectionClient
- type EstablishedConnectionClientProvider
- type InfoResponse
- type InitialConnectionClient
- type ManagementInfo
- type ManagementURLs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateCredentials ¶
type CertificateCredentials struct { ClientKey *rsa.PrivateKey ClientCert *x509.Certificate CACerts []*x509.Certificate }
type CertificateInfo ¶
type CertificateRequest ¶
type CertificateRequest struct {
CSR string `json:"csr"`
}
type CertificatesResponse ¶
type ClientIdentity ¶
type ErrorResponse ¶
type EstablishedConnection ¶
type EstablishedConnection struct { Certificates certificates.Certificates ManagementInfoURL string }
type EstablishedConnectionClient ¶
type EstablishedConnectionClient interface { GetManagementInfo(managementInfoURL string) (ManagementInfo, error) RenewCertificate(renewalURL string) (certificates.Certificates, error) }
func NewEstablishedConnectionClient ¶
func NewEstablishedConnectionClient(config *tls.Config, csrProvider certificates.CSRProvider, subject pkix.Name) EstablishedConnectionClient
type EstablishedConnectionClientProvider ¶
type EstablishedConnectionClientProvider interface {
CreateClient(credentials CertificateCredentials) EstablishedConnectionClient
}
func NewEstablishedConnectionClientProvider ¶
func NewEstablishedConnectionClientProvider(csrProvider certificates.CSRProvider) EstablishedConnectionClientProvider
type InfoResponse ¶
type InfoResponse struct { CsrURL string `json:"csrUrl"` Api APIUrls `json:"api"` CertificateInfo CertificateInfo `json:"certificate"` }
type InitialConnectionClient ¶
type InitialConnectionClient interface {
Establish(csrInfoURL string) (EstablishedConnection, error)
}
func NewInitialConnectionClient ¶
func NewInitialConnectionClient(csrProvider certificates.CSRProvider) InitialConnectionClient
type ManagementInfo ¶
type ManagementInfo struct { ClientIdentity ClientIdentity `json:"clientIdentity"` ManagementURLs ManagementURLs `json:"urls"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.