Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCloudflareRootCA ¶
GetCloudflareRootCA appears to have been copied from cloudflared TODO: replace with configuration
Types ¶
type OriginSecret ¶
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
Click to show internal directories.
Click to hide internal directories.