stunnel

package
v0.0.0-...-5f9e29a Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CredentialsTypePSK transport.CredentialsType = "PSK"
	CredentialsTypeSSL transport.CredentialsType = "SSL"
)
View Source
const (
	TransportTypeStunnel transport.Type = "stunnel"
	Container                           = "stunnel"
)

Variables

This section is empty.

Functions

func APIsToWatch

func APIsToWatch() ([]ctrlclient.Object, error)

APIsToWatch give a list of APIs to watch if using this package to deploy the transport

func AddToScheme

func AddToScheme(scheme *runtime.Scheme) error

AddToScheme should be used as soon as scheme is created to add core objects for encoding/decoding

func GeneratePassword

func GeneratePassword() (string, error)

GeneratePassword can be used to generate random character string of 32 bytes

func NewClient

func NewClient(ctx context.Context, c ctrlclient.Client, logger logr.Logger,
	namespacedName types.NamespacedName,
	hostname string,
	connectPort int32,
	options *transport.Options) (transport.Transport, error)

NewClient creates the stunnel client object, deploys the resource on the cluster and then generates the necessary containers and volumes for transport to consume.

Before passing the client c make sure to call AddToScheme() if core types are not already registered In order to generate the right RBAC, add the following lines to the Reconcile function annotations. +kubebuilder:rbac:groups=core,resources=configmaps,secrets,verbs=get;list;watch;create;update;patch;delete

func NewServer

func NewServer(ctx context.Context, c ctrlclient.Client, logger logr.Logger,
	namespacedName types.NamespacedName,
	e endpoint.Endpoint,
	options *transport.Options) (transport.Transport, error)

NewServer creates the stunnel server object, deploys the resource on the cluster and then generates the necessary containers and volumes for transport to consume.

Before passing the client c make sure to call AddToScheme() if core types are not already registered In order to generate the right RBAC, add the following lines to the Reconcile function annotations. +kubebuilder:rbac:groups=core,resources=configmaps;secrets,verbs=get;list;watch;create;update;patch;delete

Types

This section is empty.

Jump to

Keyboard shortcuts

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