containerd/vendor/k8s.io/utils
Lantao Liu 39f4ca648b Update Kubernetes to 493ee8b28560c118cebd2165ba9ef0959cfa2bc3
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-08-22 05:38:51 +00:00
..
exec Update Kubernetes to 493ee8b28560c118cebd2165ba9ef0959cfa2bc3 2017-08-22 05:38:51 +00:00
LICENSE Update Kubernetes to 493ee8b28560c118cebd2165ba9ef0959cfa2bc3 2017-08-22 05:38:51 +00:00
README.md Update Kubernetes to 493ee8b28560c118cebd2165ba9ef0959cfa2bc3 2017-08-22 05:38:51 +00:00

Utils

Build Status

A set of Go libraries that provide low-level, kubernetes-independent packages supplementing the Go standard libs.

Purpose

As Kubernetes grows and spins functionality out of its core and into cooperating repositories like apiserver, kubectl, kubeadm, etc., the need arises for leaf repositories to house shared code and avoid cycles in repository relationships.

This repository is intended to hold shared utilities with no Kubernetes dependence that may be of interest to any Go project. See these instructions for moving an existing package to this repository.

Criteria for adding code here

  • Used by multiple Kubernetes repositories.

  • Full unit test coverage.

  • Go tools compliant (go get, go test, etc.).

  • Complex enough to be worth vendoring, rather than copying.

  • Stable, or backward compatible, API.

  • No dependence on any Kubernetes repository.

Libraries

  • Exec provides an interface for os/exec. It makes it easier to mock and replace in tests, especially with the FakeExec struct.