tunnel

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package tunnel provides Tunnel operator implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TunnelOperatorImpl

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

TunnelOperatorImpl implements the Tunnel operator.

func NewTunnelOperator

func NewTunnelOperator(credManager *cloudflare.CredentialManager, store storage.Storage) *TunnelOperatorImpl

NewTunnelOperator creates a new Tunnel operator.

func (*TunnelOperatorImpl) AddIngressRule

func (o *TunnelOperatorImpl) AddIngressRule(ctx context.Context, container *types.ContainerInfo, service *types.TunnelService) (*storage.ManagedResource, error)

AddIngressRule adds an ingress rule to the tunnel.

func (*TunnelOperatorImpl) Create

func (o *TunnelOperatorImpl) Create(ctx context.Context, resource *storage.ManagedResource) error

Create creates a resource (generic interface).

func (*TunnelOperatorImpl) Delete

func (o *TunnelOperatorImpl) Delete(ctx context.Context, resource *storage.ManagedResource) error

Delete deletes a resource (generic interface).

func (*TunnelOperatorImpl) Name

func (o *TunnelOperatorImpl) Name() string

Name returns the operator name.

func (*TunnelOperatorImpl) Reconcile

func (o *TunnelOperatorImpl) Reconcile(ctx context.Context, desired []*types.ParsedContainer) error

Reconcile ensures Tunnel ingress rules match the desired state.

func (*TunnelOperatorImpl) RemoveIngressRule

func (o *TunnelOperatorImpl) RemoveIngressRule(ctx context.Context, resource *storage.ManagedResource) error

RemoveIngressRule removes an ingress rule.

func (*TunnelOperatorImpl) SetAutoCreateDNS

func (o *TunnelOperatorImpl) SetAutoCreateDNS(enabled bool)

SetAutoCreateDNS enables/disables automatic DNS record creation.

func (*TunnelOperatorImpl) Update

func (o *TunnelOperatorImpl) Update(ctx context.Context, resource *storage.ManagedResource) error

Update updates a resource (generic interface).

func (*TunnelOperatorImpl) UpdateIngressRule

func (o *TunnelOperatorImpl) UpdateIngressRule(ctx context.Context, resource *storage.ManagedResource, service *types.TunnelService) error

UpdateIngressRule updates an ingress rule.

Jump to

Keyboard shortcuts

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