Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ExtensionName for the grpc to json Transcoder plugin
ExtensionName = "gprc_json"
)
Variables ¶
View Source
var ( NoConfigMapRefError = func() error { return eris.Errorf("a configmap ref must be provided") } ConfigMapNotFoundError = func(configRef *grpc_json.GrpcJsonTranscoder_DescriptorConfigMap) error { return eris.Errorf("configmap %s:%s cannot be found", configRef.GetConfigMapRef().GetNamespace(), configRef.GetConfigMapRef().GetName()) } ConfigMapNoValuesError = func(configRef *grpc_json.GrpcJsonTranscoder_DescriptorConfigMap) error { return eris.Errorf("configmap %s:%s does not contain any values", configRef.GetConfigMapRef().GetNamespace(), configRef.GetConfigMapRef().GetName()) } NoConfigMapKeyError = func(configRef *grpc_json.GrpcJsonTranscoder_DescriptorConfigMap, numValues int) error { return eris.Errorf("key must be provided for configmap %s:%s which contains %d values", configRef.GetConfigMapRef().GetNamespace(), configRef.GetConfigMapRef().GetName(), numValues) } NoDataError = func(configRef *grpc_json.GrpcJsonTranscoder_DescriptorConfigMap, key string) error { return eris.Errorf("configmap %s:%s does not contain a value for key %s", configRef.GetConfigMapRef().GetNamespace(), configRef.GetConfigMapRef().GetName(), key) } DecodingError = func(configRef *grpc_json.GrpcJsonTranscoder_DescriptorConfigMap, key string) error { return eris.Errorf("config map %s:%s contains a value for key %s but is not base64-encoded", configRef.GetConfigMapRef().GetNamespace(), configRef.GetConfigMapRef().GetName(), key) } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.