Help us shape the future of Go! Take the 2026 Go Developer Survey

host

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

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(runnerCtx context.Context, cfg *config.Server, logger logging.Logger) (*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(ctx 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(ctx context.Context) error

DeleteRateLimitInfra removes the managed host rate limit process, if it doesn't exist.

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