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)
}
Click to show internal directories.
Click to hide internal directories.