clientset

package
v0.0.0-...-602e6ae Latest Latest
Warning

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

Go to latest
Published: Nov 3, 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

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 (CertificateSecuredClient) RevokeCertificate

func (c CertificateSecuredClient) RevokeCertificate(ctx context.Context, 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(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 WithSkipTLSVerify(skipTLSVerify bool) Option

func WithTimeout

func WithTimeout(timeout time.Duration) 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(ctx context.Context, token string, headers ...http.Header) (externalschema.Configuration, error)

func (*TokenSecuredClient) SignCSR

Jump to

Keyboard shortcuts

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