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 TunnelDeleter ¶
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