util

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: Apache-2.0 Imports: 5 Imported by: 99

Documentation

Index

Constants

This section is empty.

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 Contains

func Contains(ss []string, s string) bool

Contains returns true if a string is contained in a string slice

func ContextWithStopCh

func ContextWithStopCh(ctx context.Context, stopCh <-chan struct{}) context.Context

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 EqualUnsorted

func EqualUnsorted(s1 []string, s2 []string) bool

func OnlyOneNotNil

func OnlyOneNotNil(items ...interface{}) (any bool, one bool)

func RandStringRunes

func RandStringRunes(n int) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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