Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CtrlLogger ¶
type CtrlLogger interface {
Error(msg any)
Errorf(format string, args ...any)
Info(msg any)
Infof(format string, args ...any)
}
type Distribution ¶ added in v0.3.0
type Distribution interface {
// Record makes an observation of the provided value for the given measure.
Record(value float64)
}
type EnvoyFilterKey ¶ added in v0.3.0
type EnvoyFilterKey struct {
Namespace string
Name string
}
type MetricProvider ¶ added in v0.3.0
type MetricProvider interface {
// NewDistribution creates a new Metric type called Distribution. This means that the
// data collected by the Metric will be collected and exported as a histogram, with the specified bounds.
NewDistribution(name, description string, bounds []float64) Distribution
}
type Output ¶
type Output interface {
FromFilterPolicy(ctx context.Context, envoyFilters map[EnvoyFilterKey]*istiov1a3.EnvoyFilter) error
FromConsumer(ctx context.Context, envoyFilter *istiov1a3.EnvoyFilter) error
// FromServiceRegistry writes the generated ServiceEntries to the output. Unlike the other generators,
// it assumes the write already succeed, and don't retry on error,
// so the output should handle the retry by themselves. That's why the error is not returned here.
FromServiceRegistry(ctx context.Context, serviceEntries map[string]*istioapi.ServiceEntry)
}
type ResourceManager ¶
type ResourceManager interface {
Get(ctx context.Context, key client.ObjectKey, out client.Object) error
List(ctx context.Context, list client.ObjectList) error
UpdateStatus(ctx context.Context, obj client.Object, statusPtr any) error
}
type ResourceMeta ¶
type ResourceMeta interface {
GetGroup() string
GetKind() string
GetNamespace() string
GetName() string
GetAnnotations() map[string]string
}
Click to show internal directories.
Click to hide internal directories.