caddy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpServer    = "ingress_server"
	MetricsServer = "metrics_server"
)

Variables

This section is empty.

Functions

func LoadConfigMapOptions

func LoadConfigMapOptions(config *Config, store *controller.Store) error

LoadConfigMapOptions load options from ConfigMap

func LoadIngressConfig

func LoadIngressConfig(config *Config, store *controller.Store) error

LoadIngressConfig creates a routelist based off of ingresses managed by this controller.

func LoadTLSConfig

func LoadTLSConfig(config *Config, store *controller.Store) error

LoadTLSConfig configure caddy when some ingresses have TLS certs

Types

type Config

type Config struct {
	Admin   caddy.AdminConfig      `json:"admin,omitempty"`
	Storage Storage                `json:"storage"`
	Apps    map[string]interface{} `json:"apps"`
	Logging caddy.Logging          `json:"logging"`
}

Config represents a caddy2 config file.

type Converter

type Converter struct{}

func (Converter) ConvertToCaddyConfig

func (c Converter) ConvertToCaddyConfig(namespace string, store *controller.Store) (interface{}, error)

type Storage

type Storage struct {
	System string `json:"module"`
	StorageValues
}

Storage represents the certmagic storage configuration.

type StorageValues

type StorageValues struct {
	Namespace string `json:"namespace"`
	LeaseId   string `json:"leaseId"`
}

StorageValues represents the config for certmagic storage providers.

Jump to

Keyboard shortcuts

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