clientset

package
v0.0.0-...-f2e3332 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

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

func WithSkipTLSVerify(skipTLSVerify bool) Option

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)

Jump to

Keyboard shortcuts

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