# Packages
Package config provides utility objects for decoupling sources of configuration and the actual configuration state.
Package exec provides an injectable interface and implementations for running commands.
Package iptables provides an interface and implementations for running iptables commands.
Package wait provides tools for polling or listening for changes to a condition.
# Functions
Takes a list of strings and compiles them into a list of regular expressions.
Date returns the Time corresponding to the supplied parameters by wrapping time.Date.
EncodeJSON returns obj marshalled as a JSON string, ignoring any errors.
FlushLogs flushes logs immediately.
Forever loops forever running f every d.
HandleCrash simply catches a crash and logs an error.
InitLogs initializes logs the way we want for kubernetes.
IsCIdentifier tests for a string that conforms the definition of an identifier in C.
No description provided by the author
IsDNSLabel tests for a string that conforms to the definition of a label in DNS (RFC 1035/1123).
IsDNSSubdomain tests for a string that conforms to the definition of a subdomain in DNS (RFC 1035/1123).
IsValidPortNum tests that the argument is a valid, non-zero port number.
NewIntOrStringFromInt creates an IntOrString object with an int value.
NewIntOrStringFromString creates an IntOrString object with a string value.
NewLogger creates a new log.Logger which sends logs to glog.Info.
NewStringSet creates a StringSet from a list of values.
NewTokenBucketRateLimiter creates a rate limiter which implements a token bucket approach.
Now returns the current local time.
ObjectDiff writes the two objects out as JSON and prints out the identical part of the objects followed by the remaining part of 'a' and finally the remaining part of 'b'.
ObjectGoPrintDiff is like ObjectDiff, but uses go's %#v formatter to print the objects, in case json isn't showing you the difference.
StringDiff diffs a and b and returns a human readable diff.
Unix returns the local time corresponding to the given Unix time by wrapping time.Unix.
# Variables
For testing, bypass HandleCrash.
# Structs
FakeHandler is to assist in testing HTTP requests.
GlogWriter serves as a bridge between the standard log package and the glog package.
IntOrString is a type that can hold an int or a string.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON.
# Interfaces
LogInterface is a simple interface to allow injection of Logf to report serving errors.
No description provided by the author
TestInterface is a simple interface providing Errorf, to make injection for testing easier (insert 'yo dawg' meme here).
# Type aliases
ErrorList is a collection of errors.
IntstrKind represents the stored type of IntOrString.
IP adapts net.IP for use as a flag.
IPNet adapts net.IPNet for use as a flag.
No description provided by the author
StringSet is a set of strings, implemented via map[string]struct{} for minimal memory consumption.