config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationCloudflareTunnelName         = "cloudflare.com/tunnel-name"
	AnnotationCloudflareTunnelId           = "cloudflare.com/tunnel-id"
	AnnotationCloudflareTunnelExternalName = "cloudflare.com/tunnel-external-name"
	// CloudflareTunnelAccountId    = "cloudflare.com/tunnel-account-id"
	// CloudflareTunnelZoneId       = "cloudflare.com/tunnel-zone-id"
	AnnotationCloudflareTunnelKeySecret = "cloudflare.com/tunnel-key-secret"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CFConfigIngress

type CFConfigIngress struct {
	Hostname      string                 `yaml:"hostname,omitempty"`
	Path          string                 `yaml:"path,omitempty"`
	Service       string                 `yaml:"service,omitempty"`
	OriginRequest *CFConfigOriginRequest `yaml:"originRequest,omitempty"`
}

type CFConfigOriginRequest

type CFConfigOriginRequest struct {
	HttpHostHeader string `yaml:"httpHostHeader,omitempty"`
}

type CFConfigYaml

type CFConfigYaml struct {
	Tunnel          string            `yaml:"tunnel"`
	CredentialsFile string            `yaml:"credentials-file"`
	Ingress         []CFConfigIngress `yaml:"ingress"`
}

type CFControllerConfig

type CFControllerConfig struct {
	KubeConfigFile   string
	PresetNamespaces []string

	Identity   string
	CloudFlare struct {
		ApiUrl    string
		ApiToken  string
		AccountId string
		ZoneId    string
	}
	// contains filtered or unexported fields
}

func GetConfig

func GetConfig(log *zerolog.Logger) (*CFControllerConfig, error)

func (*CFControllerConfig) AddNamespace

func (c *CFControllerConfig) AddNamespace(we watch.Event)

func (*CFControllerConfig) AddWatch

func (c *CFControllerConfig) AddWatch(wch chan watch.Event)

func (*CFControllerConfig) DelNamespace

func (c *CFControllerConfig) DelNamespace(we watch.Event)

func (*CFControllerConfig) Namespaces

func (c *CFControllerConfig) Namespaces() []string

Jump to

Keyboard shortcuts

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