Documentation ¶
Index ¶
- Constants
- func DefaultMetrics(obj *v1alpha1.MetricsTrait)
- func ValidateCreate(r *v1alpha1.MetricsTrait) field.ErrorList
- func ValidateDelete(r *v1alpha1.MetricsTrait) field.ErrorList
- func ValidateUpdate(r *v1alpha1.MetricsTrait, _ *v1alpha1.MetricsTrait) field.ErrorList
- type MutatingHandler
- type ValidatingHandler
Constants ¶
View Source
const ( // SupportedFormat is the only metrics data format we support SupportedFormat = "prometheus" // SupportedScheme is the only scheme we support SupportedScheme = "http" // DefaultMetricsPath is the default metrics path we support DefaultMetricsPath = "/metrics" )
Variables ¶
This section is empty.
Functions ¶
func DefaultMetrics ¶
func DefaultMetrics(obj *v1alpha1.MetricsTrait)
DefaultMetrics sets all the default value for the metricsTrait
func ValidateCreate ¶
func ValidateCreate(r *v1alpha1.MetricsTrait) field.ErrorList
ValidateCreate validates the metricsTrait on creation
func ValidateDelete ¶
func ValidateDelete(r *v1alpha1.MetricsTrait) field.ErrorList
ValidateDelete validates the metricsTrait on delete
func ValidateUpdate ¶
func ValidateUpdate(r *v1alpha1.MetricsTrait, _ *v1alpha1.MetricsTrait) field.ErrorList
ValidateUpdate validates the metricsTrait on update
Types ¶
type MutatingHandler ¶
type MutatingHandler struct { Client client.Client // Decoder decodes objects Decoder *admission.Decoder }
MutatingHandler handles MetricsTrait
func (*MutatingHandler) InjectClient ¶
func (h *MutatingHandler) InjectClient(c client.Client) error
InjectClient injects the client into the MutatingHandler
func (*MutatingHandler) InjectDecoder ¶
func (h *MutatingHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the MutatingHandler
type ValidatingHandler ¶
type ValidatingHandler struct { Client client.Client // Decoder decodes objects Decoder *admission.Decoder }
ValidatingHandler handles MetricsTrait
func (*ValidatingHandler) InjectClient ¶
func (h *ValidatingHandler) InjectClient(c client.Client) error
InjectClient injects the client into the ValidatingHandler
func (*ValidatingHandler) InjectDecoder ¶
func (h *ValidatingHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the ValidatingHandler
Click to show internal directories.
Click to hide internal directories.