connector

package
v0.0.0-...-6d4a0cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

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

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL