Documentation ¶
Index ¶
- type Certificate
- func CertificateFromRaw(rawCert, rawKey []byte) (*Certificate, error)
- func CreateCACertificate() (*Certificate, error)
- func CreateControlplaneCertificate(caCert *Certificate) (*Certificate, error)
- func CreateDataplaneCertificate(caCert *Certificate) (*Certificate, error)
- func CreateFabricCertificate(name string) (*Certificate, error)
- func CreatePeerCertificate(peer string, fabricCert *Certificate) (*Certificate, error)
- func ReadCertificates(dir string, withKey bool) (*Certificate, error)
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.
Click to show internal directories.
Click to hide internal directories.