crds

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcmeProvider

type AcmeProvider struct {
	Authority        string            `yaml:"authority,omitempty"`
	Email            string            `yaml:"email,omitempty"`
	PrivateKeySecret *PrivateKeySecret `yaml:"privateKeySecret,omitempty"`
}

type Host

type Host struct {
	APIVersion    string         `yaml:"apiVersion"`
	Kind          string         `yaml:"kind"`
	Metadata      *Metadata      `yaml:"metadata"`
	Spec          *HostSpec      `yaml:"spec"`
	RequestPolicy *RequestPolicy `yaml:"requestPolicy,omitempty"`
}

func GetHostFromConfig

func GetHostFromConfig(conf *HostConfig) *Host

type HostConfig

type HostConfig struct {
	Name             string
	Namespace        string
	Email            string
	AcmeProvider     string
	TLSSecret        string
	PrivateKeySecret string
	Hostname         string
	InsecureAction   string
}

type HostSpec

type HostSpec struct {
	Hostname     string        `yaml:"hostname"`
	AcmeProvider *AcmeProvider `yaml:"acmeProvider,omitempty"`
	TLSSecret    *TLSSecret    `yaml:"tlsSecret,omitempty"`
}

type Insecure

type Insecure struct {
	Action         string `yaml:"action,omitempty"`
	AdditionalPort string `yaml:"additionalPort,omitempty"`
}

type Mapping

type Mapping struct {
	APIVersion string       `yaml:"apiVersion"`
	Kind       string       `yaml:"kind"`
	Metadata   *Metadata    `yaml:"metadata"`
	Spec       *MappingSpec `yaml:"spec"`
}

func GetMappingFromConfig

func GetMappingFromConfig(conf *MappingConfig) *Mapping

type MappingConfig

type MappingConfig struct {
	Name      string
	Namespace string
	Prefix    string
	Service   string
	Host      string
}

type MappingSpec

type MappingSpec struct {
	Prefix  string `yaml:"prefix"`
	Service string `yaml:"service"`
	Host    string `yaml:"host"`
}

type Metadata

type Metadata struct {
	Name      string `yaml:"name"`
	Namespace string `yaml:"namespace,omitempty"`
}

type PrivateKeySecret

type PrivateKeySecret struct {
	Name string `yaml:"name,omitempty"`
}

type RequestPolicy

type RequestPolicy struct {
	Insecure *Insecure `yaml:"insecure,omitempty"`
}

type TLSSecret

type TLSSecret struct {
	Name string `yaml:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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