caddy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apps

type Apps struct {
	HTTP   *caddyhttp.App `json:"http,omitempty"`
	TLS    *caddytls.TLS  `json:"tls,omitempty"`
	Layer4 *layer4.App    `json:"layer4,omitempty"`
}

Apps is the configuration for "apps" on a Caddy server.

type Config

type Config struct {
	Admin   *caddyv2.AdminConfig `json:"admin,omitempty"`
	Logging *caddyv2.Logging     `json:"logging,omitempty"`
	Apps    *Apps                `json:"apps,omitempty"`
}

Config represents the configuration for a Caddy server.

type Input

type Input struct {
	Gateway      *gatewayv1.Gateway
	GatewayClass *gatewayv1.GatewayClass

	HTTPRoutes []gatewayv1.HTTPRoute
	GRPCRoutes []gatewayv1.GRPCRoute
	TCPRoutes  []gatewayv1alpha2.TCPRoute
	TLSRoutes  []gatewayv1alpha2.TLSRoute
	UDPRoutes  []gatewayv1alpha2.UDPRoute

	Grants             []gatewayv1beta1.ReferenceGrant
	BackendTLSPolicies []gatewayv1alpha3.BackendTLSPolicy

	Services []corev1.Service

	Client client.Client
	// contains filtered or unexported fields
}

Input is provided to us by the Gateway Controller and is used to generate a configuration for Caddy.

func (*Input) Config

func (i *Input) Config() ([]byte, error)

Config generates a JSON config for use with a Caddy server.

Jump to

Keyboard shortcuts

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