host

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: Apache-2.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// XdsTLSCertFilename is the fully qualified name of the file containing Envoy's
	// xDS server TLS certificate.
	XdsTLSCertFilename = "tls.crt"
	// XdsTLSKeyFilename is the fully qualified name of the file containing Envoy's
	// xDS server TLS key.
	XdsTLSKeyFilename = "tls.key"
	// XdsTLSCaFilename is the fully qualified name of the file containing Envoy's
	// trusted CA certificate.
	XdsTLSCaFilename = "ca.crt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Infra

type Infra struct {
	// Paths contains the XDG-compliant directory paths.
	Paths  *Paths
	Logger logging.Logger

	// EnvoyGateway is the configuration used to startup Envoy Gateway.
	EnvoyGateway *egv1a1.EnvoyGateway

	// Stdout is the writer for standard output (for func-e and Envoy stdout).
	Stdout io.Writer
	// Stderr is the writer for error output (for Envoy stderr).
	Stderr io.Writer
	// contains filtered or unexported fields
}

Infra manages the creation and deletion of host process based on Infra IR resources.

func NewInfra

func NewInfra(_ context.Context, cfg *config.Server, logger logging.Logger, errors message.RunnerErrorNotifier) (*Infra, error)

func (*Infra) Close added in v1.4.0

func (i *Infra) Close() error

Close implements the Manager interface.

func (*Infra) CreateOrUpdateProxyInfra

func (i *Infra) CreateOrUpdateProxyInfra(ctx context.Context, infra *ir.Infra) error

CreateOrUpdateProxyInfra creates the managed host process, if it doesn't exist.

func (*Infra) CreateOrUpdateRateLimitInfra

func (i *Infra) CreateOrUpdateRateLimitInfra(_ context.Context) error

CreateOrUpdateRateLimitInfra creates the managed host rate limit process, if it doesn't exist.

func (*Infra) DeleteProxyInfra

func (i *Infra) DeleteProxyInfra(_ context.Context, infra *ir.Infra) error

DeleteProxyInfra removes the managed host process, if it doesn't exist.

func (*Infra) DeleteRateLimitInfra

func (i *Infra) DeleteRateLimitInfra(_ context.Context) error

DeleteRateLimitInfra is a no-op for host infrastructure since rate limiting is not yet supported, so there is nothing to clean up.

type Paths added in v1.6.0

type Paths struct {
	ConfigHome string
	DataHome   string
	StateHome  string
	RuntimeDir string
}

Paths contains all XDG-style directory paths for host infrastructure.

func GetPaths added in v1.6.0

GetPaths returns directory paths from config or XDG defaults. This follows the same pattern as func-e's ConfigHome(), DataHome(), StateHome(), RuntimeDir() but uses configuration fields instead of RunOptions.

func (*Paths) CertDir added in v1.6.0

func (p *Paths) CertDir(component string) string

CertDir returns the certificate directory path (under ConfigHome).

Jump to

Keyboard shortcuts

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