connector

package
v0.0.0-...-0e91422 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const RSAKeySize = 2048
View Source
const TokenHeader = "Connector-Token"

Variables

This section is empty.

Functions

func DecodeCertChain

func DecodeCertChain(certificateChain string) ([]*x509.Certificate, error)

func NewClient

func NewClient(url string) *client

Types

type CertificateSigningRequestInfo

type CertificateSigningRequestInfo struct {
	Subject      string `json:"subject"`
	KeyAlgorithm string `json:"keyAlgorithm"`
}

copy of connector types, to get rid of dependency to connector

type CertificationResponse

type CertificationResponse struct {
	Result CertificationResult `json:"result"`
}

type CertificationResult

type CertificationResult struct {
	CertificateChain  string `json:"certificateChain"`
	CaCertificate     string `json:"caCertificate"`
	ClientCertificate string `json:"clientCertificate"`
}

type Configuration

type Configuration struct {
	Token                         *Token                         `json:"token"`
	CertificateSigningRequestInfo *CertificateSigningRequestInfo `json:"certificateSigningRequestInfo"`
	ManagementPlaneInfo           *ManagementPlaneInfo           `json:"managementPlaneInfo"`
}

type ConfigurationResponse

type ConfigurationResponse struct {
	Result Configuration `json:"result"`
}

type ManagementPlaneInfo

type ManagementPlaneInfo struct {
	DirectorURL                    *string `json:"directorURL"`
	CertificateSecuredConnectorURL *string `json:"certificateSecuredConnectorURL"`
}

type Token

type Token struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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