qdr

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSslProfile

func AddSslProfile(sslProfile qdr.SslProfile, namespace string, cli kubernetes.Interface) error

func CheckBindingSecrets

func CheckBindingSecrets(services map[string]*service.ServiceBindings, namespace string, cli kubernetes.Interface) error

func ExistsSslProfile

func ExistsSslProfile(secretName string, namespace string, cli kubernetes.Interface) (bool, error)

func GetConnectedSites

func GetConnectedSites(edge bool, namespace string, clientset kubernetes.Interface, config *restclient.Config) (types.TransportConnectedSites, error)

func GetConnections

func GetConnections(namespace string, clientset kubernetes.Interface, config *restclient.Config) ([]qdr.Connection, error)

func GetEdgeSitesForRouter

func GetEdgeSitesForRouter(routerid string, namespace string, clientset kubernetes.Interface, config *restclient.Config) (int, error)

func GetInterRouterOrEdgeConnection

func GetInterRouterOrEdgeConnection(host string, connections []qdr.Connection) *qdr.Connection

func GetNodes

func GetNodes(namespace string, clientset kubernetes.Interface, config *restclient.Config) ([]qdr.RouterNode, error)

func RemoveSslProfile

func RemoveSslProfile(secretName string, namespace string, cli kubernetes.Interface) error

Types

type TlsManager

type TlsManager struct {
	KubeClient kubernetes.Interface
	Namespace  string
}

func (*TlsManager) AddSslProfile

func (manager *TlsManager) AddSslProfile(sslProfile qdr.SslProfile) error

func (*TlsManager) DeleteSecret

func (manager *TlsManager) DeleteSecret(secretName string) error

func (*TlsManager) DisableTlsSupport

func (manager *TlsManager) DisableTlsSupport(tlsSupport TlsServiceSupport, serviceList []*types.ServiceInterface) error

func (*TlsManager) EnableTlsSupport

func (manager *TlsManager) EnableTlsSupport(support TlsServiceSupport) error

func (*TlsManager) ExistsSslProfile

func (manager *TlsManager) ExistsSslProfile(sslProfile string) (bool, error)

func (*TlsManager) GetConfigMap

func (manager *TlsManager) GetConfigMap() (*corev1.ConfigMap, error)

func (*TlsManager) GetSecret

func (manager *TlsManager) GetSecret(name string) (*corev1.Secret, error)

func (*TlsManager) NewSecret

func (manager *TlsManager) NewSecret(credential types.Credential, ownerReference *metav1.OwnerReference) (*corev1.Secret, error)

func (*TlsManager) RemoveSslProfile

func (manager *TlsManager) RemoveSslProfile(sslProfile string) error

type TlsManagerInterface

type TlsManagerInterface interface {
	EnableTlsSupport(support TlsServiceSupport) error
	DisableTlsSupport(support TlsServiceSupport, serviceList []*types.ServiceInterface) error
}

type TlsServiceSupport

type TlsServiceSupport struct {
	Address       string
	Credentials   string
	CertAuthority string
}

Jump to

Keyboard shortcuts

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