config

package
v0.0.0-...-3444316 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: Apache-2.0 Imports: 6 Imported by: 124

Documentation

Overview

Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the Revision controller depends.

Index

Constants

View Source
const (
	// ConfigName is the name of the configmap
	ConfigName = "config-tracing"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendType

type BackendType string

BackendType specifies the backend to use for tracing

const (
	// None is used for no backend.
	None BackendType = "none"
	// Stackdriver is used for Stackdriver backend.
	Stackdriver BackendType = "stackdriver"
	// Zipkin is used for Zipkin backend.
	Zipkin BackendType = "zipkin"
)

type Config

type Config struct {
	Backend              BackendType
	ZipkinEndpoint       string
	StackdriverProjectID string

	Debug      bool
	SampleRate float64
}

Config holds the configuration for tracers

func NewTracingConfigFromConfigMap

func NewTracingConfigFromConfigMap(config *corev1.ConfigMap) (*Config, error)

NewTracingConfigFromConfigMap returns a Config for the given configmap

func NewTracingConfigFromMap

func NewTracingConfigFromMap(cfgMap map[string]string) (*Config, error)

NewTracingConfigFromMap returns a Config given a map corresponding to a ConfigMap

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Config) Equals

func (cfg *Config) Equals(other *Config) bool

Equals returns true if two Configs are identical

Jump to

Keyboard shortcuts

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