Documentation ¶
Index ¶
- Constants
- func GetKeysFromStringBoolMap(v map[string]bool) []string
- func GetTemplateVariables(templates ...TemplateValueGetter) []string
- func GetUnresolvedTemplatesFromString(s string) []string
- func MakeObjectName(baseName string, suffixes ...string) string
- func RemoveStringFromSlice(slice []string, s string) (result []string)
- func ReplaceTemplateVariablesInIngressSpec(spec networkingv1.IngressSpec, templates ...TemplateValueGetter) (networkingv1.IngressSpec, error)
- func ReplaceTemplateVariablesInPodSpec(spec corev1.PodSpec, templates ...TemplateValueGetter) (corev1.PodSpec, error)
- func ReplaceTemplateVariablesInServiceSpec(spec corev1.ServiceSpec, templates ...TemplateValueGetter) (corev1.ServiceSpec, error)
- func ReplaceTemplateVariablesInString(s string, templates ...TemplateValueGetter) string
- func ReplaceTemplateVariablesInStringMap(stringMap map[string]string, entityType string, ...) (map[string]string, error)
- func SanitiseAndShortenDbValue(value string, maxLength int) string
- func SanitiseDbValue(value string) string
- func ShortenHumanReadableValue(value string, maxLength int) string
- func SliceContainsString(slice []string, s string) bool
- type StringMapTemplateValueGetter
- type TemplateValueGetter
Constants ¶
View Source
const ( MongoFinalizerName = "mongo.task.finalizers.operator.kube-stager.io" MysqlFinalizerName = "mysql.task.finalizers.operator.kube-stager.io" SiteFinalizerName = "stagingsite.site.finalizers.operator.kube-stager.io" )
Variables ¶
This section is empty.
Functions ¶
func GetTemplateVariables ¶ added in v0.2.2
func GetTemplateVariables(templates ...TemplateValueGetter) []string
func MakeObjectName ¶
func RemoveStringFromSlice ¶
func ReplaceTemplateVariablesInIngressSpec ¶
func ReplaceTemplateVariablesInIngressSpec( spec networkingv1.IngressSpec, templates ...TemplateValueGetter, ) (networkingv1.IngressSpec, error)
func ReplaceTemplateVariablesInServiceSpec ¶
func ReplaceTemplateVariablesInServiceSpec( spec corev1.ServiceSpec, templates ...TemplateValueGetter, ) (corev1.ServiceSpec, error)
func ReplaceTemplateVariablesInString ¶
func ReplaceTemplateVariablesInString(s string, templates ...TemplateValueGetter) string
func SanitiseDbValue ¶
func SliceContainsString ¶
Types ¶
type StringMapTemplateValueGetter ¶
func (StringMapTemplateValueGetter) GetTemplateValues ¶
func (r StringMapTemplateValueGetter) GetTemplateValues() map[string]string
type TemplateValueGetter ¶
Click to show internal directories.
Click to hide internal directories.