Documentation ¶
Index ¶
- type EndpointServerComponent
- func (e *EndpointServerComponent) CreateAlertEndpoint(ctx context.Context, req *alertingv1.AlertEndpoint) (*corev1.Reference, error)
- func (e *EndpointServerComponent) DeleteAlertEndpoint(ctx context.Context, req *alertingv1.DeleteAlertEndpointRequest) (*alertingv1.InvolvedConditions, error)
- func (e *EndpointServerComponent) GetAlertEndpoint(ctx context.Context, ref *corev1.Reference) (*alertingv1.AlertEndpoint, error)
- func (e *EndpointServerComponent) Initialize(conf EndpointServerConfiguration)
- func (e *EndpointServerComponent) ListAlertEndpoints(ctx context.Context, req *alertingv1.ListAlertEndpointsRequest) (*alertingv1.AlertEndpointList, error)
- func (e *EndpointServerComponent) SetConfig(conf struct{})
- func (e *EndpointServerComponent) Status() struct{}
- func (e *EndpointServerComponent) Sync(_ bool) error
- func (e *EndpointServerComponent) TestAlertEndpoint(ctx context.Context, req *alertingv1.TestAlertEndpointRequest) (*alertingv1.TestAlertEndpointResponse, error)
- func (e *EndpointServerComponent) ToggleNotifications(ctx context.Context, req *alertingv1.ToggleRequest) (*emptypb.Empty, error)
- func (e *EndpointServerComponent) UpdateAlertEndpoint(ctx context.Context, req *alertingv1.UpdateAlertEndpointRequest) (*alertingv1.InvolvedConditions, error)
- type EndpointServerConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointServerComponent ¶
type EndpointServerComponent struct { alertingv1.UnsafeAlertEndpointsServer util.Initializer // contains filtered or unexported fields }
func NewEndpointServerComponent ¶
func NewEndpointServerComponent( ctx context.Context, logger *zap.SugaredLogger, notifications *notifications.NotificationServerComponent, ) *EndpointServerComponent
func (*EndpointServerComponent) CreateAlertEndpoint ¶
func (e *EndpointServerComponent) CreateAlertEndpoint(ctx context.Context, req *alertingv1.AlertEndpoint) (*corev1.Reference, error)
func (*EndpointServerComponent) DeleteAlertEndpoint ¶
func (e *EndpointServerComponent) DeleteAlertEndpoint(ctx context.Context, req *alertingv1.DeleteAlertEndpointRequest) (*alertingv1.InvolvedConditions, error)
func (*EndpointServerComponent) GetAlertEndpoint ¶
func (e *EndpointServerComponent) GetAlertEndpoint(ctx context.Context, ref *corev1.Reference) (*alertingv1.AlertEndpoint, error)
func (*EndpointServerComponent) Initialize ¶
func (e *EndpointServerComponent) Initialize(conf EndpointServerConfiguration)
func (*EndpointServerComponent) ListAlertEndpoints ¶
func (e *EndpointServerComponent) ListAlertEndpoints( ctx context.Context, req *alertingv1.ListAlertEndpointsRequest, ) (*alertingv1.AlertEndpointList, error)
func (*EndpointServerComponent) SetConfig ¶
func (e *EndpointServerComponent) SetConfig(conf struct{})
func (*EndpointServerComponent) Status ¶
func (e *EndpointServerComponent) Status() struct{}
func (*EndpointServerComponent) Sync ¶
func (e *EndpointServerComponent) Sync(_ bool) error
func (*EndpointServerComponent) TestAlertEndpoint ¶
func (e *EndpointServerComponent) TestAlertEndpoint(ctx context.Context, req *alertingv1.TestAlertEndpointRequest) (*alertingv1.TestAlertEndpointResponse, error)
func (*EndpointServerComponent) ToggleNotifications ¶
func (e *EndpointServerComponent) ToggleNotifications(ctx context.Context, req *alertingv1.ToggleRequest) (*emptypb.Empty, error)
func (*EndpointServerComponent) UpdateAlertEndpoint ¶
func (e *EndpointServerComponent) UpdateAlertEndpoint(ctx context.Context, req *alertingv1.UpdateAlertEndpointRequest) (*alertingv1.InvolvedConditions, error)
type EndpointServerConfiguration ¶
type EndpointServerConfiguration struct { storage.EndpointStorage storage.ConditionStorage storage.RouterStorage OpsNode *ops.AlertingOpsNode }
Click to show internal directories.
Click to hide internal directories.