Knative common packages
Go to file
Victor Agababov 23f2fed590
Skip doing any work if `Also` receives no errors (#1256)
* Skip doing any work if Also receives no errors

1. if no errors are passed skip doing stuff (checks, allocations, etc)
2. if there's one error passed and it's empty (the same)
  - this is a quite popular pattern where in API validation we do
    `x.Also(validateY())` and if that succeeded then it'll be an empty
    error. Which is in reality most of the time.
3. Improve tests by better printing
4. better test coverage shows commutativity of Also(a, b) and
   Also(a).Also(b)

* fix flow
2020-04-28 12:03:51 -07:00
.github Add fancier PR templates to knative/pkg (#461) 2019-06-14 13:40:44 -07:00
apiextensions Assorted linting fixes. (#1249) 2020-04-28 08:20:51 -07:00
apis Skip doing any work if `Also` receives no errors (#1256) 2020-04-28 12:03:51 -07:00
changeset Some cleanups to the changeset code (#577) 2019-08-15 11:22:08 -07:00
client/injection Generate unique workqueue names. (#1255) 2020-04-28 07:44:52 -07:00
codegen Generate unique workqueue names. (#1255) 2020-04-28 07:44:52 -07:00
configmap Make a proper check when checking for spaces. (#1206) 2020-04-08 13:31:02 -07:00
controller Assorted linting fixes. (#1249) 2020-04-28 08:20:51 -07:00
hack adding tools to master in prep for go mod. (#1251) 2020-04-27 12:00:51 -07:00
injection Inject config into controller context. (#1253) 2020-04-28 06:35:51 -07:00
kmeta Move map functions to PKG (#1126) 2020-02-24 20:57:50 -08:00
kmp Assorted linting fixes. (#840) 2019-11-01 12:49:12 -07:00
kvstore Introduce key/value store interface + cm backed version of it. (#1173) 2020-03-24 16:06:09 -07:00
leaderelection Incorporate component name into ComponentConfig. (#1246) 2020-04-25 10:15:49 -07:00
logging Cleanup the logging CM handling. (#1223) 2020-04-14 16:31:46 -07:00
metrics Change %v to %w in errors and other nits (#1252) 2020-04-27 15:04:51 -07:00
network Change %v to %w in errors and other nits (#1252) 2020-04-27 15:04:51 -07:00
profiling Optimize locking behavior of the profiling handler. (#980) 2020-01-08 12:35:53 -08:00
ptr Some fixes we did in server upstream to pkg (#1244) 2020-04-24 15:03:49 -07:00
reconciler Add specific callback for the tracker to delete items eagerly. (#1235) 2020-04-24 09:17:50 -07:00
resolver Change %v to %w in errors and other nits (#1252) 2020-04-27 15:04:51 -07:00
signals Revert "Add SIGPIPE signal handler to the signals package (#689)" (#709) 2019-09-20 13:33:05 -07:00
source Adding common sourceLabels func (#720) 2019-10-15 09:13:32 -07:00
system Filter tracked sharedmain ConfigMaps based on optional label selector (#973) 2020-01-13 06:53:04 -08:00
test Assorted linting fixes. (#1249) 2020-04-28 08:20:51 -07:00
testing Allow Unstructured callback from Validating Webhook (#1172) 2020-04-06 12:22:19 -07:00
testutils Assorted linting fixes. (#1249) 2020-04-28 08:20:51 -07:00
third_party/mako Format markdown (#618) 2019-08-29 07:09:45 -07:00
tracing Change %v to %w in errors and other nits (#1252) 2020-04-27 15:04:51 -07:00
tracker Add specific callback for the tracker to delete items eagerly. (#1235) 2020-04-24 09:17:50 -07:00
vendor [master] Auto-update dependencies (#1254) 2020-04-28 09:34:51 -07:00
version bump the minimum version to 1.15.1 (#1070) 2020-02-10 17:16:07 -08:00
webhook Assorted linting fixes. (#1249) 2020-04-28 08:20:51 -07:00
websocket Turn websocket's handshake timeout down again. (#941) 2019-12-11 07:02:49 -08:00
.gitattributes Enable coverage for test code (#778) 2019-10-21 12:37:24 -07:00
.gitignore [Genreconciler] Fix group names when client groups differ than their directory name. (#1097) 2020-02-18 17:14:59 -08:00
CONTRIBUTING.md Copy over some of the core markdown from serving. (#2) 2018-07-25 10:44:49 -07:00
DEVELOPMENT.md use https style vs. ssh (#1202) 2020-04-14 12:04:16 -07:00
Gopkg.lock [master] Auto-update dependencies (#1254) 2020-04-28 09:34:51 -07:00
Gopkg.toml update the yaml library to new version (#1178) 2020-03-30 16:02:50 -07:00
LICENSE Initial commit 2018-07-25 10:16:04 -07:00
OWNERS Update OWNERS to use OWNERS_ALIASES (#422) 2019-05-29 20:04:33 -07:00
OWNERS_ALIASES Normalize CM owners across CM directories (#1210) 2020-04-09 15:44:04 -07:00
README.md Format markdown (#189) 2018-12-04 14:14:25 -08:00
RELEASING.md update the run book for releases in pkg to include the test-infra lock (#1215) 2020-04-10 08:34:05 -07:00
code-of-conduct.md Format markdown (#189) 2018-12-04 14:14:25 -08:00

README.md

Knative Common Packages

GoDoc Go Report Card

Knative pkg provides a place for sharing common Knative packages across the Knative repos.

To learn more about Knative, please visit our Knative docs repository.

If you are interested in contributing, see CONTRIBUTING.md and DEVELOPMENT.md.