Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListKey ¶
func ListKey(kind, name, namespace string) *v1.ObjectReference
listKey constructs a key that is useful for getting elements from a TrafficMetricsList
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type Mesh ¶
type Mesh interface { // Return the list of supported resource kinds GetSupportedResources(ctx context.Context) (*metav1.APIResourceList, error) // Return metrics for a resource or for the type if name is empty GetResourceMetrics(ctx context.Context, query Query, interval *metrics.Interval) (*metrics.TrafficMetricsList, error) // Return the Edge Metrics for a resource GetEdgeMetrics(ctx context.Context, query Query, interval *metrics.Interval, details *ResourceDetails) (*metrics.TrafficMetricsList, error) }
type ResourceDetails ¶
func GetResourceDetails ¶
func GetResourceDetails(name string) (*ResourceDetails, bool)
Click to show internal directories.
Click to hide internal directories.