common

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package for helper functions used in multiple packages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(slice []string, s string) bool

ContainsString tests for a string in a slice of strings

func GetRuntimeNamespace

func GetRuntimeNamespace() string

GetRuntimeNamespace returns the runtime namespace or empty string if environmental variable is not set.

func GetSourceNamespace

func GetSourceNamespace(nameSpace string) string

GetSourceNamespace retruns the namespace provided or the default if it is not set

func RemoveString

func RemoveString(slice []string, s string) (result []string)

RemoveString removes an element from a slice of strings if present

Types

This section is empty.

Jump to

Keyboard shortcuts

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