Documentation ¶
Index ¶
- Constants
- Variables
- func Contains(ss []string, s string) bool
- func ContextWithStopCh(ctx context.Context, stopCh <-chan struct{}) context.Context
- func EqualIPsUnsorted(s1, s2 []net.IP) bool
- func EqualURLsUnsorted(s1, s2 []*url.URL) bool
- func EqualUnsorted(s1 []string, s2 []string) bool
- func OnlyOneNotNil(items ...interface{}) (any bool, one bool)
- func RandStringRunes(n int) string
Constants ¶
View Source
const ( // IngressKey picks a specific "class" for the Ingress. // The controller only processes Ingresses with this annotation either // unset, or set to either the configured value or the empty string. IngressKey = "kubernetes.io/ingress.class" )
Variables ¶
View Source
var ( AppGitState = "" AppGitCommit = "" AppVersion = "canary" )
This variable block holds information used to build up the version string
View Source
var CertManagerUserAgent = "jetstack-cert-manager/" + version()
CertManagerUserAgent is the user agent that http clients in this codebase should use
Functions ¶
func ContextWithStopCh ¶
ContextWithStopCh will wrap a context with a stop channel. When the provided stopCh closes, the cancel() will be called on the context. This provides a convinient way to represent a stop channel as a context.
func EqualIPsUnsorted ¶ added in v0.9.0
Test for equal IP slices even if unsorted
func EqualURLsUnsorted ¶ added in v0.9.0
Test for equal URL slices even if unsorted. Panics if any element is nil
func EqualUnsorted ¶
func OnlyOneNotNil ¶
func RandStringRunes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.