services

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSDeleter

type DNSDeleter interface {
	DeleteRecords(ctx context.Context, tunnel *domain.Tunnel, dns *domain.DNS) error
}

DNSDeleter defines methods for deleting DNS records for a Cloudflare tunnel

type DNSGetter

type DNSGetter interface {
	GetZoneID(ctx context.Context, dns *domain.DNS) (string, error)
	GetContent(ctx context.Context, tunnel *domain.Tunnel) (string, error)
	GetRecords(ctx context.Context, tunnel *domain.Tunnel, dns *domain.DNS) ([]dns.RecordListResponse, error)
}

DNSGetter defines methods for retrieving DNS content and records for a Cloudflare tunnel

type DNSRouter

type DNSRouter interface {
	Route(ctx context.Context, tunnel *domain.Tunnel, dns *domain.DNS) error
}

DNSRouter defines methods for routing DNS records for a Cloudflare tunnel

type DNSService

type DNSService interface {
	DNSRouter
	DNSGetter
	DNSDeleter
}

DNSService defines the interface for managing DNS records for Cloudflare tunnels

type IngressGetter

type IngressGetter interface {
	GetConfiguration(ctx context.Context, tunnel *domain.Tunnel, dns *domain.DNS) ([]byte, error)
	GetConfigurationPath(ctx context.Context, tunnel *domain.Tunnel) (string, error)
}

IngressGetter defines methods for retrieving and writing Cloudflare tunnel ingress configurations

type IngressService

type IngressService interface {
	IngressGetter
}

IngressService defines the interface for managing ingress configurations for Cloudflare tunnels

type TunnelCreater

type TunnelCreater interface {
	CreateTunnel(ctx context.Context, tunnel *domain.Tunnel) (string, error)
}

type TunnelDeleter

type TunnelDeleter interface {
	DeleteTunnel(ctx context.Context, tunnel *domain.Tunnel) error
}

TunnelDeleter defines methods for deleting Cloudflare tunnels

type TunnelGetter

type TunnelGetter interface {
	GetID(ctx context.Context, tunnel *domain.Tunnel) (string, error)
	GetToken(ctx context.Context, tunnel *domain.Tunnel) (*struct {
		TunnelId  string
		AccountId string
	}, error)
	GetAccountID(ctx context.Context, tunnel *domain.Tunnel) (string, error)
	GetCredentialsPath(ctx context.Context, tunnel *domain.Tunnel) (string, error)
}

TunnelGetter defines methods for retrieving information about Cloudflare tunnels

type TunnelService

type TunnelService interface {
	TunnelGetter
	TunnelDeleter
	TunnelCreater
}

TunnelService defines the interface for managing Cloudflare tunnels

Jump to

Keyboard shortcuts

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