Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LightstepTracing ¶
type LightstepTracing struct {
Endpoint string `json:"endpoint" validate:"required"`
Credentials SecretLink `json:"credentials,omitzero" validate:"optional"`
}
type OpenTelemetry ¶
type OpenTelemetry struct {
Endpoint string `json:"endpoint" validate:"required"`
}
type SecretLink ¶
type SecretLink string
SecretLink ports LocalLink().custom(toKind("secret")): a localLink pointing to a resource of kind secret.
func (SecretLink) ValidationRule ¶
func (SecretLink) ValidationRule() *validate.Rule
ValidationRule implements the Validator interface for SecretLink.
type Tracing ¶
type Tracing struct {
Sampling float64 `json:"sampling" validate:"min=0,max=100,precision=2,required"`
Lightstep *LightstepTracing `json:"lightstep,omitzero"`
CustomTags *TracingCustomTags `json:"customTags,omitzero"`
Provider *TracingProvider `json:"provider,omitzero"`
}
Tracing ports tracing.ts:20. tracingRefine handles the lightstep<->provider mirror.
func (Tracing) ValidationRule ¶
ValidationRule ports tracing.ts:34's top-level custom. Its mirroring half (moving a deprecated top-level `lightstep` under `provider`) runs in the handler after validation, and since master 314afc47f the custom reads `value.provider?.lightstep`, so a block carrying neither `lightstep` nor `provider` is accepted rather than crashing into a 400. Nothing here rejects.
type TracingCustomTag ¶
type TracingCustomTag struct {
Literal *TracingCustomTagLiteral `json:"literal,omitzero"`
}
type TracingCustomTagLiteral ¶
type TracingCustomTagLiteral struct {
Value string `json:"value,omitzero" validate:"max=50"`
}
type TracingCustomTags ¶
type TracingCustomTags map[string]TracingCustomTag
type TracingProvider ¶
type TracingProvider struct {
Otel *OpenTelemetry `json:"otel,omitzero"`
Lightstep *LightstepTracing `json:"lightstep,omitzero"`
Controlplane *TracingProviderControlplane `json:"controlplane,omitzero"`
}
TracingProvider ports tracing.ts provider. .xor(lightstep, otel, controlplane).
func (TracingProvider) ValidationRule ¶
func (TracingProvider) ValidationRule() *validate.Rule
ValidationRule ports tracing.ts:29-33 `provider: Joi.object({...}).xor('lightstep', 'otel','controlplane')`. The xor was recorded only in a models.go comment pointing at a handler file that no longer exists, so a provider block with NONE or SEVERAL providers was accepted and persisted.
type TracingProviderControlplane ¶
type TracingProviderControlplane struct {
}