activeingress

package
v3.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ErrInvalidPath    chkitErrors.Err = "invalid path"
	ErrInvalidRule    chkitErrors.Err = "invalid rule"
	ErrInvalidIngress chkitErrors.Err = "invalid ingress"
)

Variables

View Source
var HostRe = regexp.MustCompile("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$")

Functions

func EditWizard

func EditWizard(config Config) (ingress.Ingress, error)

func ValidateIngress

func ValidateIngress(ingr ingress.Ingress) error

func ValidatePath

func ValidatePath(path ingress.Path) error

func ValidateRule

func ValidateRule(rule ingress.Rule) error

func Wizard

func Wizard(config Config) (ingress.Ingress, error)

Types

type Config

type Config struct {
	Services service.ServiceList
	Ingress  *ingress.Ingress
}

type Flags

type Flags struct {
	Force     bool   `flag:"force f" desc:"suppress confirmation, optional"`
	Name      string `desc:"ingress name, optional"`
	Host      string `desc:"ingress host (example: prettyblog.io), required"`
	Service   string `desc:"ingress endpoint service, required"`
	TLSSecret string `desc:"TLS secret string, optional"`
	Path      string `desc:"path to endpoint (example: /content/pages), optional"`
	Port      int    `desc:"ingress endpoint port (example: 80, 443), optional"`
}

func (Flags) Ingress

func (flags Flags) Ingress() (ingress.Ingress, error)

Jump to

Keyboard shortcuts

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