stunnel

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TransportTypeStunnel = "stunnel"
	StunnelContainer     = "stunnel"
)

Variables

This section is empty.

Functions

func GetTransportFromKubeObjects

func GetTransportFromKubeObjects(srcClient client.Client, destClient client.Client, nnPair meta.NamespacedNamePair, e endpoint.Endpoint, options *transport.Options) (transport.Transport, error)

GetTransportFromKubeObjects checks if the required configmaps and secretes are created for the transport . It populates the fields for the Transport needed for transfer object. NOTE: this method will be removed in the future interfaces. 'options' are not persisted in the system therefore, they require to be passed from outside by the consumers every time a transport is fetched

func NewTransport

func NewTransport(nsNamePair meta.NamespacedNamePair, options *transport.Options) transport.Transport

Types

type StunnelTransport

type StunnelTransport struct {
	// contains filtered or unexported fields
}

func (*StunnelTransport) CA

func (s *StunnelTransport) CA() *bytes.Buffer

func (*StunnelTransport) ClientContainers

func (s *StunnelTransport) ClientContainers() []corev1.Container

func (*StunnelTransport) ClientVolumes

func (s *StunnelTransport) ClientVolumes() []corev1.Volume

func (*StunnelTransport) CreateClient

func (s *StunnelTransport) CreateClient(c client.Client, e endpoint.Endpoint) error

func (*StunnelTransport) CreateServer

func (s *StunnelTransport) CreateServer(c client.Client, e endpoint.Endpoint) error

func (*StunnelTransport) Crt

func (s *StunnelTransport) Crt() *bytes.Buffer

func (*StunnelTransport) Direct

func (s *StunnelTransport) Direct() bool

func (*StunnelTransport) ExposedPort

func (s *StunnelTransport) ExposedPort() int32

func (*StunnelTransport) Key

func (s *StunnelTransport) Key() *bytes.Buffer

func (*StunnelTransport) NamespacedNamePair

func (s *StunnelTransport) NamespacedNamePair() meta.NamespacedNamePair

func (*StunnelTransport) Options

func (s *StunnelTransport) Options() *transport.Options

func (*StunnelTransport) Port

func (s *StunnelTransport) Port() int32

func (*StunnelTransport) ServerContainers

func (s *StunnelTransport) ServerContainers() []corev1.Container

func (*StunnelTransport) ServerVolumes

func (s *StunnelTransport) ServerVolumes() []corev1.Volume

func (*StunnelTransport) Type

Jump to

Keyboard shortcuts

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