flytestdlib

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0

README

Common Go Tools
=====================
Shared components we found ourselves building time and time again, so we collected them in one place!

This library consists of:
 - config

   Enables strongly typed config throughout your application. Offers a way to represent config in go structs. takes care of parsing, validating and watching for changes on config.

 - cli/pflags

   Tool to generate a pflags for all fields in a given struct.

 - storage

   Abstract storage library that uses stow behind the scenes to connect to s3/azure/gcs but also offers configurable factory, in-memory storage (for testing) as well as native protobuf support.

 - contextutils

   Wrapper around golang's context to set/get known keys.

 - logger

   Wrapper around logrus that's configurable, taggable and context-aware.

 - profutils

   Starts an http server that serves /metrics (exposes prometheus metrics), /healthcheck and /version endpoints.

 - promutils

   Exposes a Scope instance that's a more convenient way to construct prometheus metrics and scope them per component.

 - atomic

   Wrapper around sync.atomic library to offer AtomicInt32 and other convenient types.

 - sets

   Offers strongly types and convenient interface sets.

 - utils
 - version

Directories

Path Synopsis
cli
pflags
Generates a Register method to automatically add pflags to a pflagSet for all fields in a given type.
Generates a Register method to automatically add pflags to a pflagSet for all fields in a given type.
A strongly-typed config library to parse configs from PFlags, Env Vars and Config files.
A strongly-typed config library to parse configs from PFlags, Env Vars and Config files.
Contains common flyte context utils.
Contains common flyte context utils.
internal
Defines global context-aware logger.
Defines global context-aware logger.
This is a package that provides hashing utilities for Protobuf objects.
This is a package that provides hashing utilities for Protobuf objects.
Source: https://raw.githubusercontent.com/kubernetes/kubernetes/3dbbd0bdf44cb07fdde85aa392adf99ea7e95939/pkg/util/workqueue/prometheus/prometheus.go Copyright 2016 The Kubernetes Authors.
Source: https://raw.githubusercontent.com/kubernetes/kubernetes/3dbbd0bdf44cb07fdde85aa392adf99ea7e95939/pkg/util/workqueue/prometheus/prometheus.go Copyright 2016 The Kubernetes Authors.
Defines extensible storage interface.
Defines extensible storage interface.

Jump to

Keyboard shortcuts

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