Documentation ¶
Index ¶
- func ParseSubject(subject string) pkix.Name
- type ApiInfo
- type ApplicationClientIdentity
- type ApplicationConnection
- type ApplicationCredentials
- type CSRInfoResponse
- type CertInfo
- type Client
- type ClusterClientIdentity
- type CrtResponse
- type CsrRequest
- type DecodedCrtResponse
- type Error
- type ErrorResponse
- type ManagementInfoResponse
- type ManagementInfoURLs
- type RevocationBody
- type RuntimeURLs
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseSubject ¶
Types ¶
type ApiInfo ¶
type ApiInfo struct { *RuntimeURLs ManagementInfoURL string `json:"infoUrl"` CertificatesUrl string `json:"certificatesUrl"` }
type ApplicationClientIdentity ¶
type ApplicationClientIdentity struct { Application string `json:"application,omitempty"` ClusterClientIdentity }
type ApplicationConnection ¶
type ApplicationConnection struct { Credentials ApplicationCredentials ClientIdentity ApplicationClientIdentity ManagementURLs ManagementInfoURLs }
type ApplicationCredentials ¶
type ApplicationCredentials struct { ClientKey *rsa.PrivateKey Certificates []*x509.Certificate }
func (ApplicationCredentials) NewMTLSClient ¶
func (ac ApplicationCredentials) NewMTLSClient(skipSSLVerify bool) *http.Client
type CSRInfoResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewConnectorClient ¶
func (*Client) EstablishApplicationConnection ¶
func (c *Client) EstablishApplicationConnection(infoURL string) (ApplicationConnection, error)
type ClusterClientIdentity ¶
type CrtResponse ¶
type CsrRequest ¶
type CsrRequest struct {
Csr string `json:"csr"`
}
type DecodedCrtResponse ¶
type DecodedCrtResponse struct { CRTChain []*x509.Certificate ClientCRT *x509.Certificate CaCRT *x509.Certificate }
type Error ¶
type Error struct { StatusCode int ErrorResponse ErrorResponse }
type ErrorResponse ¶
type ManagementInfoResponse ¶
type ManagementInfoResponse struct { URLs ManagementInfoURLs `json:"urls"` ClientIdentity ApplicationClientIdentity `json:"clientIdentity"` Certificate CertInfo `json:"certificate"` }
type ManagementInfoURLs ¶
type ManagementInfoURLs struct { *RuntimeURLs RenewCertUrl string `json:"renewCertUrl"` RevokeCertURL string `json:"revokeCertUrl"` }
type RevocationBody ¶
type RevocationBody struct {
Hash string
}
type RuntimeURLs ¶
type TokenResponse ¶
Click to show internal directories.
Click to hide internal directories.