ports

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ports declares provider-agnostic interfaces.

Package ports declares provider-agnostic interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSService

type DNSService interface {
	GetZoneID(ctx context.Context, zoneName string) (string, error)
	GetContent(ctx context.Context, tunnel *domain.Tunnel) (string, error)
	DeleteRecord(ctx context.Context, tunnel *domain.Tunnel, zoneName string, subdomain string) error
	RouteRecord(ctx context.Context, tunnel *domain.Tunnel, zoneName string, subdomain string) error
	RecordExists(ctx context.Context, tunnel *domain.Tunnel, zoneName string, subdomain string) (bool, error)
}

type TunnelService

type TunnelService interface {
	Run(ctx context.Context, tunnel *domain.Tunnel) (int, error)
	GetID(ctx context.Context, tunnel *domain.Tunnel) (string, error)
	GetAccountID(ctx context.Context, tunnel *domain.Tunnel) (string, error)
	GetCredentialsPath(ctx context.Context, tunnel *domain.Tunnel) (string, error)
	DeleteTunnel(ctx context.Context, tunnel *domain.Tunnel) error
	CreateTunnel(ctx context.Context, tunnel *domain.Tunnel) (string, error)
	TunnelExists(ctx context.Context, tunnel *domain.Tunnel) (bool, error)
	SaveConfiguration(ctx context.Context, tunnel *domain.Tunnel, ingress *domain.Ingress) error
	DeleteConfiguration(ctx context.Context, tunnel *domain.Tunnel) error
	GetConfigurationPath(ctx context.Context, tunnel *domain.Tunnel) (string, error)
}

Jump to

Keyboard shortcuts

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