tunnel

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package tunnel provides tunnel orchestration functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSRecordHandler

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

func NewDNSRecordHandler

func NewDNSRecordHandler(dnsService ports.DNSService) *DNSRecordHandler

func (*DNSRecordHandler) Down

func (h *DNSRecordHandler) Down(ctx context.Context, payload any) error

func (*DNSRecordHandler) Name

func (h *DNSRecordHandler) Name(ctx context.Context) string

func (*DNSRecordHandler) Status

func (h *DNSRecordHandler) Status(ctx context.Context, payload any) (domain.State, error)

func (*DNSRecordHandler) Up

func (h *DNSRecordHandler) Up(ctx context.Context, payload any) error

type DNSRecordPayload

type DNSRecordPayload struct {
	Zone      string         `json:"zone"`
	Tunnel    *domain.Tunnel `json:"tunnel"`
	Subdomain string         `json:"subdomain"`
}

type Service

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

func NewService

func NewService(tunnel *domain.Tunnel, ingress *domain.Ingress, dnsService ports.DNSService, tunnelService ports.TunnelService) *Service

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

func (*Service) Stop

func (s *Service) Stop(ctx context.Context) error

type TunnelConfigHandler

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

func NewTunnelConfigHandler

func NewTunnelConfigHandler(tunnelService ports.TunnelService) *TunnelConfigHandler

func (*TunnelConfigHandler) Down

func (h *TunnelConfigHandler) Down(ctx context.Context, payload any) error

func (*TunnelConfigHandler) Name

func (*TunnelConfigHandler) Status

func (h *TunnelConfigHandler) Status(ctx context.Context, payload any) (domain.State, error)

func (*TunnelConfigHandler) Up

func (h *TunnelConfigHandler) Up(ctx context.Context, payload any) error

type TunnelConfigPayload

type TunnelConfigPayload struct {
	Tunnel  *domain.Tunnel  `json:"tunnel"`
	Ingress *domain.Ingress `json:"ingress"`
}

type TunnelCreateHandler

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

func NewTunnelCreateHandler

func NewTunnelCreateHandler(tunnelService ports.TunnelService) *TunnelCreateHandler

func (*TunnelCreateHandler) Down

func (h *TunnelCreateHandler) Down(ctx context.Context, payload any) error

func (*TunnelCreateHandler) Name

func (*TunnelCreateHandler) Status

func (h *TunnelCreateHandler) Status(ctx context.Context, payload any) (domain.State, error)

func (*TunnelCreateHandler) Up

func (h *TunnelCreateHandler) Up(ctx context.Context, payload any) error

type TunnelCreatePayload

type TunnelCreatePayload struct {
	Tunnel *domain.Tunnel `json:"tunnel"`
}

Jump to

Keyboard shortcuts

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