certificate

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractCAAndCertificateAndPrivateKeyFromSecret

func ExtractCAAndCertificateAndPrivateKeyFromSecret(tlsSecret *corev1.Secret) ([]byte, []byte, []byte, error)

Types

type Certificate

type Certificate struct {
	CommonName string   `yaml:"cn" json:"cn"`
	SANS       []string `yaml:"sans,omitempty" json:"sans,omitempty"`
	OutFolder  string   `yaml:"-" json:"-"`
	VaultPath  string   `yaml:"-" json:"-"`
}

func ReadCertificateConfig

func ReadCertificateConfig(filePath string) ([]*Certificate, error)

func (*Certificate) GetName

func (c *Certificate) GetName() string

func (*Certificate) GetSecretName

func (c *Certificate) GetSecretName() string

Jump to

Keyboard shortcuts

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