tls_manager

package
v0.0.0-...-2f83af2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTLS

func GenerateTLS(client kubernetes.Interface, namespace, serviceName, secretName string) ([]byte, []byte, error)

func GetIPsAndNames

func GetIPsAndNames(ips []net.IP, serviceName string, namespace string) ([]net.IP, []string)

Types

type TLSManager

type TLSManager interface {
	HasKey() bool
	CreateKey() error
	GetKey() (privKey []byte, csr []byte, err error)
	ConfigTLS([]byte, []byte) *tls.Config
}

func NewTLSManager

func NewTLSManager(kubeClient kubernetes.Interface, namespace, name string, ips []net.IP, dns []string) TLSManager

NewTLSManager

Jump to

Keyboard shortcuts

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