Documentation ¶
Index ¶
- Constants
- func NewCSR(subject string, key *rsa.PrivateKey) (*rsa.PrivateKey, *x509.CertificateRequest, error)
- type CertificateSecuredClient
- func (c CertificateSecuredClient) Configuration(ctx context.Context, headers ...http.Header) (externalschema.Configuration, error)
- func (c CertificateSecuredClient) RevokeCertificate(ctx context.Context, headers ...http.Header) (bool, error)
- func (c CertificateSecuredClient) SignCSR(ctx context.Context, 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(ctx context.Context, 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)
Types ¶
type CertificateSecuredClient ¶
type CertificateSecuredClient struct {
// contains filtered or unexported fields
}
func (CertificateSecuredClient) Configuration ¶
func (c CertificateSecuredClient) Configuration(ctx context.Context, headers ...http.Header) (externalschema.Configuration, error)
func (CertificateSecuredClient) RevokeCertificate ¶
func (CertificateSecuredClient) SignCSR ¶
func (c CertificateSecuredClient) SignCSR(ctx context.Context, 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(ctx context.Context, 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 ¶
func WithTimeout ¶
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(ctx context.Context, token string, headers ...http.Header) (externalschema.Configuration, error)
func (*TokenSecuredClient) SignCSR ¶
func (c *TokenSecuredClient) SignCSR(ctx context.Context, csr string, token string, headers ...http.Header) (externalschema.CertificationResult, error)
Click to show internal directories.
Click to hide internal directories.