Documentation ¶
Index ¶
- Constants
- func GetTransportFromKubeObjects(srcClient client.Client, destClient client.Client, prefix string, ...) (transport.Transport, error)
- func NewTransport(nsNamePair meta.NamespacedNamePair, options *transport.Options) transport.Transport
- type StunnelTransport
- func (s *StunnelTransport) CA() *bytes.Buffer
- func (s *StunnelTransport) ClientContainers() []corev1.Container
- func (s *StunnelTransport) ClientVolumes() []corev1.Volume
- func (s *StunnelTransport) CreateClient(c client.Client, prefix string, e endpoint.Endpoint) error
- func (s *StunnelTransport) CreateServer(c client.Client, prefix string, e endpoint.Endpoint) error
- func (s *StunnelTransport) Crt() *bytes.Buffer
- func (s *StunnelTransport) Direct() bool
- func (s *StunnelTransport) ExposedPort() int32
- func (s *StunnelTransport) Key() *bytes.Buffer
- func (s *StunnelTransport) NamespacedNamePair() meta.NamespacedNamePair
- func (s *StunnelTransport) Options() *transport.Options
- func (s *StunnelTransport) Port() int32
- func (s *StunnelTransport) ServerContainers() []corev1.Container
- func (s *StunnelTransport) ServerVolumes() []corev1.Volume
- func (s *StunnelTransport) Type() transport.TransportType
Constants ¶
View Source
const ( TransportTypeStunnel = "stunnel" StunnelContainer = "stunnel" )
Variables ¶
This section is empty.
Functions ¶
func GetTransportFromKubeObjects ¶
func GetTransportFromKubeObjects(srcClient client.Client, destClient client.Client, prefix string, nnPair meta.NamespacedNamePair, e endpoint.Endpoint, options *transport.Options) (transport.Transport, error)
GetTransportFromKubeObjects checks if the required configmaps and secrets 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 ¶
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 (*StunnelTransport) CreateServer ¶
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 ¶
func (s *StunnelTransport) Type() transport.TransportType
Click to show internal directories.
Click to hide internal directories.