secrets

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	/*
		TODO(ilackarms): document the expected structure of secrets (required for VirtualMeshes  using a user-provided root CA)
	*/
	// CaCertID is the CA certificate chain file.
	CaCertID = "ca-cert.pem"
	// CaPrivateKeyID is the private key file of CA.
	CaPrivateKeyID = "ca-key.pem"
	// CertChainID is the ID/name for the certificate chain file.
	CertChainID = "cert-chain.pem"
	// RootCertID is the ID/name for the CA root certificate file.
	RootCertID = "root-cert.pem"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CAData added in v1.1.0

type CAData struct {
	RootCert     []byte
	CertChain    []byte
	CaCert       []byte
	CaPrivateKey []byte
}

The intermediate CA derived from the root CA of the MeshGroup

func CADataFromSecretData added in v1.1.0

func CADataFromSecretData(data map[string][]byte) CAData

func (CAData) ToSecretData added in v1.1.0

func (d CAData) ToSecretData() map[string][]byte

Jump to

Keyboard shortcuts

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