bootstrap

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	// contains filtered or unexported fields
}

Certificate represents a clusterlink certificate.

func CertificateFromRaw

func CertificateFromRaw(rawCert, rawKey []byte) (*Certificate, error)

CertificateFromRaw initializes a certificate from raw data.

func CreateCACertificate added in v0.3.0

func CreateCACertificate() (*Certificate, error)

CreateCACertificate creates a site CA certificate for controlplane <-> dataplane trust.

func CreateControlplaneCertificate

func CreateControlplaneCertificate(caCert *Certificate) (*Certificate, error)

CreateControlplaneCertificate creates a controlplane certificate.

func CreateDataplaneCertificate

func CreateDataplaneCertificate(caCert *Certificate) (*Certificate, error)

CreateDataplaneCertificate creates a dataplane certificate.

func CreateFabricCertificate

func CreateFabricCertificate(name string) (*Certificate, error)

CreateFabricCertificate creates a clusterlink fabric (root) certificate.

func CreatePeerCertificate

func CreatePeerCertificate(peer string, fabricCert *Certificate) (*Certificate, error)

CreatePeerCertificate creates a peer certificate.

func ReadCertificates added in v0.2.0

func ReadCertificates(dir string, withKey bool) (*Certificate, error)

ReadCertificates read certificate and key from folder.

func (*Certificate) RawCert

func (c *Certificate) RawCert() []byte

RawCert returns the raw certificate bytes.

func (*Certificate) RawKey

func (c *Certificate) RawKey() []byte

RawKey returns the raw private key bytes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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