Documentation
¶
Index ¶
- func GetTunnel(cfc *controller.CFController, tp UpsertTunnelParams) (*cfapi.TunnelWithToken, error)
- func GetTunnelNameFromIngress(ingress *netv1.Ingress) *string
- func PrepareTunnel(cfc *controller.CFController, ns string, annotations map[string]string, ...) (*UpsertTunnelParams, *CFTunnelSecret, error)
- func RegisterCFDnsEndpoint(cfc *controller.CFController, tunnelId uuid.UUID, name string) error
- func RemoveFromCloudflaredConfig(cfc *controller.CFController, kind string, meta *metav1.ObjectMeta)
- func WriteCloudflaredConfig(cfc *controller.CFController, kind string, tp *UpsertTunnelParams, ...) error
- type CFEndpointMapping
- type CFTunnelSecret
- func GetTunnelSecret(log *zerolog.Logger, tp UpsertTunnelParams, secret *corev1.Secret) (CFTunnelSecret, error)
- func MatchK8SSecret(cfc *controller.CFController, tunnelId string, tp UpsertTunnelParams) (*CFTunnelSecret, error)
- func UpsertTunnel(cfc *controller.CFController, tp UpsertTunnelParams) (*CFTunnelSecret, error)
- type K8SResourceName
- type Tunnel
- type TunnelRunner
- type UpsertTunnelParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTunnel ¶
func GetTunnel(cfc *controller.CFController, tp UpsertTunnelParams) (*cfapi.TunnelWithToken, error)
func PrepareTunnel ¶ added in v0.0.3
func PrepareTunnel(cfc *controller.CFController, ns string, annotations map[string]string, labels map[string]string) (*UpsertTunnelParams, *CFTunnelSecret, error)
func RegisterCFDnsEndpoint ¶ added in v0.0.3
func RegisterCFDnsEndpoint(cfc *controller.CFController, tunnelId uuid.UUID, name string) error
func RemoveFromCloudflaredConfig ¶ added in v0.0.3
func RemoveFromCloudflaredConfig(cfc *controller.CFController, kind string, meta *metav1.ObjectMeta)
func WriteCloudflaredConfig ¶
func WriteCloudflaredConfig(cfc *controller.CFController, kind string, tp *UpsertTunnelParams, cts *CFTunnelSecret, cfcis []config.CFConfigIngress) error
Types ¶
type CFEndpointMapping ¶ added in v0.0.3
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, tp UpsertTunnelParams, secret *corev1.Secret) (CFTunnelSecret, error)
func MatchK8SSecret ¶
func MatchK8SSecret(cfc *controller.CFController, tunnelId string, tp UpsertTunnelParams) (*CFTunnelSecret, error)
func UpsertTunnel ¶
func UpsertTunnel(cfc *controller.CFController, tp UpsertTunnelParams) (*CFTunnelSecret, error)
type K8SResourceName ¶ added in v0.0.2
func FromFQDN ¶ added in v0.0.2
func FromFQDN(fqdn string, ns string) K8SResourceName
type Tunnel ¶ added in v0.0.2
type Tunnel struct {
// contains filtered or unexported fields
}
func (*Tunnel) Start ¶ added in v0.0.2
func (t *Tunnel) Start(cfc *controller.CFController, cm *corev1.ConfigMap)
func (*Tunnel) Stop ¶ added in v0.0.2
func (t *Tunnel) Stop(cfc *controller.CFController)
type TunnelRunner ¶ added in v0.0.2
type TunnelRunner struct {
// contains filtered or unexported fields
}
func NewTunnelRunner ¶ added in v0.0.2
func NewTunnelRunner() *TunnelRunner
func (*TunnelRunner) Start ¶ added in v0.0.2
func (tr *TunnelRunner) Start(cfc *controller.CFController, cm *corev1.ConfigMap)
func (*TunnelRunner) Stop ¶ added in v0.0.2
func (tr *TunnelRunner) Stop(cfc *controller.CFController, cm *corev1.ConfigMap)
type UpsertTunnelParams ¶
type UpsertTunnelParams struct {
Name *string
TunnelID *uuid.UUID
// ExternalName string
Namespace string
// SecretName string
// DefaultSecretName bool
Labels map[string]string
Annotations map[string]string
}
func (UpsertTunnelParams) K8SConfigMapName ¶ added in v0.0.2
func (tp UpsertTunnelParams) K8SConfigMapName() K8SResourceName
func (UpsertTunnelParams) K8SSecretName ¶ added in v0.0.2
func (tp UpsertTunnelParams) K8SSecretName() K8SResourceName
Click to show internal directories.
Click to hide internal directories.