gateway

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTwinIDMismatch       = fmt.Errorf("twin id mismatch")
	ErrContractNotReserved  = fmt.Errorf("a name contract with the given name must be reserved first")
	ErrInvalidContractState = fmt.Errorf("the name contract must be in Created state")
)
View Source
var (
	ErrMetricsNotAvailable = errors.New("metrics not available")
)

Functions

func New

func New(ctx context.Context, cl zbus.Client, root string) (pkg.Gateway, error)

Types

type Domain

type Domain struct {
	Sans []string `yaml:"sans,omitempty"`
	Main string   `yaml:"main,omitempty"`
}

type HTTPConfig

type HTTPConfig struct {
	Routers  map[string]Router
	Services map[string]Service
}

type LoadBalancer

type LoadBalancer struct {
	Servers []Server
}

type NNC

type NNC struct {
	ID   gridtypes.WorkloadID
	Exec string
}

NNC holds (and extracts) information from nnc command

type ProxyConfig

type ProxyConfig struct {
	Http *HTTPConfig `yaml:"http,omitempty"`
	TCP  *HTTPConfig `yaml:"tcp,omitempty"`
}

type Router

type Router struct {
	Rule    string
	Service string
	Tls     *TlsConfig `yaml:"tls,omitempty"`
}

type Server

type Server struct {
	Url     string `yaml:"url,omitempty"`
	Address string `yaml:"address,omitempty"`
}

type Service

type Service struct {
	LoadBalancer LoadBalancer
}

type TlsConfig

type TlsConfig struct {
	CertResolver string   `yaml:"certResolver,omitempty"`
	Domains      []Domain `yaml:"domains,omitempty"`
	Passthrough  string   `yaml:"passthrough,omitempty"`
}

Jump to

Keyboard shortcuts

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