package
1.4.0-alpha.0
Repository: https://github.com/damemi/kubernetes.git
Documentation: pkg.go.dev

# Packages

Package bandwidth provides utilities for bandwidth shaping.
No description provided by the author
Package chown provides an interface and implementations for things that run run the chmod system call.
Package chown provides utilities to chown a path.
No description provided by the author
Package config provides utility objects for decoupling sources of configuration and the actual configuration state.
No description provided by the author
No description provided by the author
No description provided by the author
Package dbus provides an injectable interface and implementations for D-Bus communication.
No description provided by the author
No description provided by the author
No description provided by the author
Package errors implements various utility functions and types around errors.
Package exec provides an injectable interface and implementations for running commands.
No description provided by the author
No description provided by the author
No description provided by the author
Package flushwriter implements a wrapper for a writer that flushes on every write if that writer implements the io.Flusher interface.
Package framer implements simple frame decoding techniques for an io.ReadCloser.
Package goroutinemap implements a data structure for managing go routines by name.
No description provided by the author
No description provided by the author
Package httpstream adds multiplexed streaming support to HTTP requests and responses via connection upgrades.
No description provided by the author
No description provided by the author
Package intstr is a generated protocol buffer package.
No description provided by the author
Package iptables provides an interface and implementations for running iptables commands.
No description provided by the author
package jsonpath is a template engine using jsonpath syntax, which can be seen at http://goessner.net/articles/JsonPath/.
No description provided by the author
Package labels provides utilities to work with Kubernetes labels.
Package limitwriter provides a writer that only allows a certain number of bytes to be written.
No description provided by the author
TODO(thockin): This whole pkg is pretty linux-centric.
No description provided by the author
No description provided by the author
Package oom implements utility functions relating to out of memory management.
No description provided by the author
Package pod provides utilities to work with Kubernetes pod and pod templates.
Package procfs implements utility functions relating to the /proc mount.
Package proxy provides transport and upgrade support for proxies.
Package rand provides utilities related to randomization.
No description provided by the author
No description provided by the author
Package selinux contains selinux utility functions.
Package sets has auto-generated set types.
Package slice provides utility methods for common operations on slices.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package wait provides tools for polling or listening for changes to a condition.
Package workqueue provides a simple queue that supports the following features: * Fair: items processed in the order in which they are added.
Package wsstream contains utilities for streaming content over WebSockets.
No description provided by the author

# Functions

Tests whether all pointer fields in a struct are nil.
No description provided by the author
Takes a list of strings and compiles them into a list of regular expressions.
ExecuteTemplate executes templateText with data and output written to w.
No description provided by the author
No description provided by the author
FlushLogs flushes logs immediately.
InitLogs initializes logs the way we want for kubernetes.
Int32Ptr returns a pointer to an int32.
Int32PtrDerefOr dereference the int32 ptr and returns it i not nil, else returns def.
IntPtr returns a pointer to an int.
IntPtrDerefOr dereference the int ptr and returns it i not nil, else returns def.
No description provided by the author
NewLineDelimiter allocates a new io.Writer that will split input on lines and bracket each line with the delimiter string.
NewLogger creates a new log.Logger which sends logs to glog.Info.
NewRunner makes a runner for the given function(s).
No description provided by the author
No description provided by the author
No description provided by the author
borrowed from ioutil.ReadDir ReadDir reads the directory named by dirname and returns a list of directory entries, minus those with lstat errors.
Creates resource-only containerName if it does not already exist and moves the current process to it.
No description provided by the author
Detects if using systemd as the init system Please note that simply reading /proc/1/cmdline can be misleading because some installation of various init programs can automatically make /sbin/init a symlink or even a renamed version of their main program.

# Structs

FakeClock implements Clock, but returns an arbitrary time.
GlogWriter serves as a bridge between the standard log package and the glog package.
IntervalClock implements Clock, but each invocation of Now steps the clock forward the specified duration.
A Line Delimiter is a filter that will.
RealClock really calls time.Now().
Runner is an abstraction to make it easy to start and stop groups of things that can be described by a single function which waits on a channel close to exit.
StringFlag is a string flag compatible with flags and pflags that keeps track of whether it had a value supplied or not.
No description provided by the author

# Interfaces

Clock allows for injecting fake or real clocks into code that needs to do arbitrary things based on time.