Versions in this module Expand all Collapse all v0 v0.1.0 Dec 23, 2022 Changes in this version + const CSRPemType + const DefaultKeyLength + const KeyLength + const NamespaceKey + const RSAPemType + const ServicesKey + func GenerateName(base string) string + type MockTlsService struct + func (m MockTlsService) CreateSecretForServices(pod corev1.Pod) []corev1.Secret + type PodTLSKey struct + func (k PodTLSKey) Annotations() map[string]string + func (k PodTLSKey) DNSNames() []string + func (k PodTLSKey) GenerateName() bool + func (k PodTLSKey) Name() string + func (k PodTLSKey) Namespace() string + func (k PodTLSKey) ServiceAccount() string + type RealTlsService struct + KeyLength int + func (t RealTlsService) CreateSecretForServices(ctx context.Context, info TLSKeyInfo) (*corev1.Secret, error) + func (t RealTlsService) SecretForKeyInfo(ctx context.Context, info TLSKeyInfo) (*corev1.Secret, error) + type ServicesTLSKey struct + func NewKubeTLSKeyInfo(pod corev1.Pod, services []corev1.Service) (keyinfo ServicesTLSKey) + func (k ServicesTLSKey) Annotations() map[string]string + func (k ServicesTLSKey) DNSNames() []string + func (k ServicesTLSKey) GenerateName() bool + func (k ServicesTLSKey) Name() string + func (k ServicesTLSKey) Namespace() string + func (k ServicesTLSKey) ServiceAccount() string + type TLSKeyInfo interface + Annotations func() map[string]string + DNSNames func() []string + GenerateName func() bool + Name func() string + Namespace func() string + ServiceAccount func() string + func NewPodTLSKeyInfo(pod *corev1.Pod, services []corev1.Service) (keyinfo TLSKeyInfo) + type TlsService interface + SecretForKeyInfo func(ctx context.Context, info TLSKeyInfo) (*corev1.Secret, error) + func NewRealTlsService(cs kubernetes.Interface, KeyLength int) TlsService