tunnel

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTunnelNameFromIngress

func GetTunnelNameFromIngress(ingress *netv1.Ingress) *string

func WriteCloudflaredConfig

func WriteCloudflaredConfig(cfc *controller.CFController, tp UpsertTunnelParams, cts *CFTunnelSecret) error

Types

type CFTunnelSecret

type CFTunnelSecret struct {
	AccountTag   string    `json:"AccountTag"`
	TunnelSecret string    `json:"TunnelSecret"`
	TunnelID     uuid.UUID `json:"TunnelID"`
}

func GetTunnelSecret

func GetTunnelSecret(log *zerolog.Logger, secret *corev1.Secret) (CFTunnelSecret, error)

func MatchK8SSecret

func MatchK8SSecret(cfc *controller.CFController, secretClient clientgo_corev1.SecretInterface, tunnelId string, tp UpsertTunnelParams) (*CFTunnelSecret, error)

type UpsertTunnelParams

type UpsertTunnelParams struct {
	Name              *string
	TunnelID          *uuid.UUID
	ExternalName      string
	Namespace         string
	SecretName        string
	DefaultSecretName bool
	Ingress           *netv1.Ingress
}

Jump to

Keyboard shortcuts

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