Documentation
¶
Index ¶
- Constants
- type Infra
- func (i *Infra) Close() error
- func (i *Infra) CreateOrUpdateProxyInfra(ctx context.Context, infra *ir.Infra) error
- func (i *Infra) CreateOrUpdateRateLimitInfra(ctx context.Context) error
- func (i *Infra) DeleteProxyInfra(_ context.Context, infra *ir.Infra) error
- func (i *Infra) DeleteRateLimitInfra(ctx context.Context) error
- type Paths
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 (*Infra) CreateOrUpdateProxyInfra ¶
CreateOrUpdateProxyInfra creates the managed host process, if it doesn't exist.
func (*Infra) CreateOrUpdateRateLimitInfra ¶
CreateOrUpdateRateLimitInfra creates the managed host rate limit process, if it doesn't exist.
func (*Infra) DeleteProxyInfra ¶
DeleteProxyInfra removes the managed host process, if it doesn't exist.
type Paths ¶ added in v1.6.0
Paths contains all XDG-style directory paths for host infrastructure.
func GetPaths ¶ added in v1.6.0
func GetPaths(cfg *egv1a1.EnvoyGatewayHostInfrastructureProvider) (*Paths, error)
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.
Click to show internal directories.
Click to hide internal directories.