Documentation ¶
Overview ¶
Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the Revision controller depends.
Index ¶
Constants ¶
const (
// ConfigName is the name of the configmap
ConfigName = "config-tracing"
)
Variables ¶
This section is empty.
Functions ¶
func TracingConfigToJSON ¶
Types ¶
type BackendType ¶
type BackendType string
BackendType specifies the backend to use for tracing
const ( // None is used for no backend. None BackendType = "none" // Zipkin is used for Zipkin backend. Zipkin BackendType = "zipkin" )
type Config ¶
type Config struct { Backend BackendType ZipkinEndpoint string Debug bool SampleRate float64 }
Config holds the configuration for tracers
func JSONToTracingConfig ¶
JSONToTracingConfig converts a json string of a Config. Returns a non-nil Config always and an eventual error.
func NewTracingConfigFromConfigMap ¶
NewTracingConfigFromConfigMap returns a Config for the given configmap
func NewTracingConfigFromMap ¶
NewTracingConfigFromMap returns a Config given a map corresponding to a ConfigMap
func (*Config) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.