ingress

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 1 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ingress

type Ingress interface {
	// SetRule adds or updates a rule for the ingress.
	SetRule(ctx context.Context, rule *Rule, opts ...Option) bool
	// GetRule queries a rule by host.
	GetRule(ctx context.Context, host string, opts ...Option) *Rule
}

type Option

type Option func(opts *Options)

type Options

type Options struct{}

type Rule

type Rule struct {
	// Hostname is the hostname match pattern, e.g. example.com, *.example.org or .example.com.
	Hostname string
	// Endpoint is the tunnel ID for the hostname.
	Endpoint string
}

Jump to

Keyboard shortcuts

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