Documentation ¶
Index ¶
- Constants
- func NewCSR(subject string, key *rsa.PrivateKey) (*rsa.PrivateKey, *x509.CertificateRequest, error)
- func NewTLSCertificate(key *rsa.PrivateKey, certificates ...*x509.Certificate) tls.Certificate
- type CertificateSecuredClient
- func (c CertificateSecuredClient) Configuration(headers ...http.Header) (externalschema.Configuration, error)
- func (c CertificateSecuredClient) RevokeCertificate(headers ...http.Header) (bool, error)
- func (c CertificateSecuredClient) SignCSR(csr string, headers ...http.Header) (externalschema.CertificationResult, error)
- type CertificationResponse
- type ConfigurationResponse
- type ConnectorClientSet
- func (cs ConnectorClientSet) CertificateSecuredClient(baseURL string, certificate tls.Certificate) *CertificateSecuredClient
- func (cs ConnectorClientSet) GenerateCertificateForToken(token, connectorURL string) (tls.Certificate, error)
- func (cs ConnectorClientSet) TokenSecuredClient(baseURL string) *TokenSecuredClient
- type Option
- type RevokeResult
- type TokenSecuredClient
Constants ¶
View Source
const (
TokenHeader = "Connector-Token"
)
Variables ¶
This section is empty.
Functions ¶
func NewCSR ¶
func NewCSR(subject string, key *rsa.PrivateKey) (*rsa.PrivateKey, *x509.CertificateRequest, error)
func NewTLSCertificate ¶
func NewTLSCertificate(key *rsa.PrivateKey, certificates ...*x509.Certificate) tls.Certificate
Types ¶
type CertificateSecuredClient ¶
type CertificateSecuredClient struct {
// contains filtered or unexported fields
}
func (CertificateSecuredClient) Configuration ¶
func (c CertificateSecuredClient) Configuration(headers ...http.Header) (externalschema.Configuration, error)
func (CertificateSecuredClient) RevokeCertificate ¶
func (c CertificateSecuredClient) RevokeCertificate(headers ...http.Header) (bool, error)
func (CertificateSecuredClient) SignCSR ¶
func (c CertificateSecuredClient) SignCSR(csr string, headers ...http.Header) (externalschema.CertificationResult, error)
type CertificationResponse ¶
type CertificationResponse struct {
Result externalschema.CertificationResult `json:"result"`
}
type ConfigurationResponse ¶
type ConfigurationResponse struct {
Result externalschema.Configuration `json:"result"`
}
type ConnectorClientSet ¶
type ConnectorClientSet struct {
// contains filtered or unexported fields
}
func NewConnectorClientSet ¶
func NewConnectorClientSet(options ...Option) *ConnectorClientSet
func (ConnectorClientSet) CertificateSecuredClient ¶
func (cs ConnectorClientSet) CertificateSecuredClient(baseURL string, certificate tls.Certificate) *CertificateSecuredClient
func (ConnectorClientSet) GenerateCertificateForToken ¶
func (cs ConnectorClientSet) GenerateCertificateForToken(token, connectorURL string) (tls.Certificate, error)
func (ConnectorClientSet) TokenSecuredClient ¶
func (cs ConnectorClientSet) TokenSecuredClient(baseURL string) *TokenSecuredClient
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithSkipTLSVerify ¶
type RevokeResult ¶
type RevokeResult struct {
Result bool `json:"result"`
}
type TokenSecuredClient ¶
type TokenSecuredClient struct {
// contains filtered or unexported fields
}
func (*TokenSecuredClient) Configuration ¶
func (c *TokenSecuredClient) Configuration(token string, headers ...http.Header) (externalschema.Configuration, error)
func (*TokenSecuredClient) SignCSR ¶
func (c *TokenSecuredClient) SignCSR(csr string, token string, headers ...http.Header) (externalschema.CertificationResult, error)
Click to show internal directories.
Click to hide internal directories.