Documentation ¶
Index ¶
Constants ¶
View Source
const (
TokenHeader = "Connector-Token"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateSecuredClient ¶
type CertificateSecuredClient struct {
// contains filtered or unexported fields
}
func NewCertificateSecuredConnectorClient ¶
func NewCertificateSecuredConnectorClient(endpoint string, key *rsa.PrivateKey, certificates ...*x509.Certificate) *CertificateSecuredClient
func (CertificateSecuredClient) Configuration ¶
func (c CertificateSecuredClient) Configuration(headers ...http.Header) (externalschema.Configuration, error)
func (CertificateSecuredClient) RevokeCertificate ¶
func (c CertificateSecuredClient) RevokeCertificate() (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 HydratorClient ¶
type HydratorClient struct {
// contains filtered or unexported fields
}
func NewHydratorClient ¶
func NewHydratorClient(validatorURL string) *HydratorClient
func (*HydratorClient) ResolveCertificateData ¶
func (vc *HydratorClient) ResolveCertificateData(t *testing.T, headers map[string][]string) oathkeeper.AuthenticationSession
func (*HydratorClient) ResolveToken ¶
func (vc *HydratorClient) ResolveToken(t *testing.T, headers map[string][]string) oathkeeper.AuthenticationSession
type InternalClient ¶
type InternalClient struct {
// contains filtered or unexported fields
}
func NewInternalClient ¶
func NewInternalClient(endpoint string) *InternalClient
func (*InternalClient) GenerateApplicationToken ¶
func (c *InternalClient) GenerateApplicationToken(appID string) (externalschema.Token, error)
func (*InternalClient) GenerateRuntimeToken ¶
func (c *InternalClient) GenerateRuntimeToken(runtimeID string) (externalschema.Token, error)
type RevokeResult ¶
type RevokeResult struct {
Result bool `json:"result"`
}
type TokenResponse ¶
type TokenResponse struct {
Result externalschema.Token `json:"result"`
}
type TokenSecuredClient ¶
type TokenSecuredClient struct {
// contains filtered or unexported fields
}
func NewConnectorClient ¶
func NewConnectorClient(endpoint string) *TokenSecuredClient
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.