templates

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatURLTemplateAndDeriveURLPath

func FormatURLTemplateAndDeriveURLPath(currentAnnotations map[string]interface{}) map[string]interface{}

Looks for / in URL-Template; if present it divides the template in 2 parts, and uses the 1st part as URL

func ParseIngressNameTemplate

func ParseIngressNameTemplate(templateToParse string, nameTemplate *NameTemplate) string

func ParseIngressURLOrPathTemplate

func ParseIngressURLOrPathTemplate(templateToParse string, URLTemplate *URLTemplate) string

Types

type NameTemplate

type NameTemplate struct {
	Service   string
	Namespace string
}

func CreateNameTemplate

func CreateNameTemplate(service string, namespace string) *NameTemplate

type URLTemplate

type URLTemplate struct {
	Service   string
	Namespace string
	Domain    string
}

func CreateUrlTemplate

func CreateUrlTemplate(service string, namespace string, domain string) *URLTemplate

Jump to

Keyboard shortcuts

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