clientset

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

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 17 Imported by: 9

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)

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