cloudflare

package
v0.0.0-...-44fb6e4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCloudflareRootCA

func GetCloudflareRootCA() *x509.CertPool

GetCloudflareRootCA appears to have been copied from cloudflared TODO: replace with configuration

Types

type OriginSecret

type OriginSecret struct {
	Name      string `yaml:"name"`
	Namespace string `yaml:"namespace"`
}

OriginSecret defines a secret

func (*OriginSecret) Validate

func (os *OriginSecret) Validate() []error

Validate the OriginSecret content

type OriginSecretGroup

type OriginSecretGroup struct {
	Hosts  []string     `yaml:"hosts"`
	Secret OriginSecret `yaml:"secret"`
}

OriginSecretGroup groups a set of origins to a secret

func (*OriginSecretGroup) Validate

func (ocg *OriginSecretGroup) Validate() []error

Validate the OriginSecretGroup content

type OriginSecrets

type OriginSecrets struct {
	Groups []OriginSecretGroup `yaml:"groups"`
}

OriginSecrets is a mapping of origins to secrets

func ParseOriginSecrets

func ParseOriginSecrets(b []byte) (*OriginSecrets, error)

ParseOriginSecrets parses a origin certificate mapping

func ParseOriginSecretsFile

func ParseOriginSecretsFile(file string) (oc *OriginSecrets, err error)

ParseOriginSecretsFile parses a origin certificate mapping file

func (*OriginSecrets) Validate

func (oc *OriginSecrets) Validate() []error

Validate the OriginCerts content

Jump to

Keyboard shortcuts

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