86080e25a9
* Process to send events to configured sinks This PR adds a SinkManager to a server which is responsible for managing managed sinks. Managed sinks subscribe to the event broker and send events to a sink writer (webhook). When changes to the eventstore are made the sinkmanager and managed sink are responsible for reloading or starting a new managed sink. * periodically check in sink progress to raft Save progress on the last successfully sent index to raft. This allows a managed sink to resume close to where it left off in the event of a lost server or leadership change dereference eventsink so we can accurately use the watchch When using a pointer to eventsink struct it was updated immediately and our reload logic would not trigger
54 lines
4.1 KiB
Go
54 lines
4.1 KiB
Go
// Code generated by go generate; DO NOT EDIT.
|
|
package raftutil
|
|
|
|
import "github.com/hashicorp/nomad/nomad/structs"
|
|
|
|
var msgTypeNames = map[structs.MessageType]string{
|
|
structs.NodeRegisterRequestType: "NodeRegisterRequestType",
|
|
structs.NodeDeregisterRequestType: "NodeDeregisterRequestType",
|
|
structs.NodeUpdateStatusRequestType: "NodeUpdateStatusRequestType",
|
|
structs.NodeUpdateDrainRequestType: "NodeUpdateDrainRequestType",
|
|
structs.JobRegisterRequestType: "JobRegisterRequestType",
|
|
structs.JobDeregisterRequestType: "JobDeregisterRequestType",
|
|
structs.EvalUpdateRequestType: "EvalUpdateRequestType",
|
|
structs.EvalDeleteRequestType: "EvalDeleteRequestType",
|
|
structs.AllocUpdateRequestType: "AllocUpdateRequestType",
|
|
structs.AllocClientUpdateRequestType: "AllocClientUpdateRequestType",
|
|
structs.ReconcileJobSummariesRequestType: "ReconcileJobSummariesRequestType",
|
|
structs.VaultAccessorRegisterRequestType: "VaultAccessorRegisterRequestType",
|
|
structs.VaultAccessorDeregisterRequestType: "VaultAccessorDeregisterRequestType",
|
|
structs.ApplyPlanResultsRequestType: "ApplyPlanResultsRequestType",
|
|
structs.DeploymentStatusUpdateRequestType: "DeploymentStatusUpdateRequestType",
|
|
structs.DeploymentPromoteRequestType: "DeploymentPromoteRequestType",
|
|
structs.DeploymentAllocHealthRequestType: "DeploymentAllocHealthRequestType",
|
|
structs.DeploymentDeleteRequestType: "DeploymentDeleteRequestType",
|
|
structs.JobStabilityRequestType: "JobStabilityRequestType",
|
|
structs.ACLPolicyUpsertRequestType: "ACLPolicyUpsertRequestType",
|
|
structs.ACLPolicyDeleteRequestType: "ACLPolicyDeleteRequestType",
|
|
structs.ACLTokenUpsertRequestType: "ACLTokenUpsertRequestType",
|
|
structs.ACLTokenDeleteRequestType: "ACLTokenDeleteRequestType",
|
|
structs.ACLTokenBootstrapRequestType: "ACLTokenBootstrapRequestType",
|
|
structs.AutopilotRequestType: "AutopilotRequestType",
|
|
structs.UpsertNodeEventsType: "UpsertNodeEventsType",
|
|
structs.JobBatchDeregisterRequestType: "JobBatchDeregisterRequestType",
|
|
structs.AllocUpdateDesiredTransitionRequestType: "AllocUpdateDesiredTransitionRequestType",
|
|
structs.NodeUpdateEligibilityRequestType: "NodeUpdateEligibilityRequestType",
|
|
structs.BatchNodeUpdateDrainRequestType: "BatchNodeUpdateDrainRequestType",
|
|
structs.SchedulerConfigRequestType: "SchedulerConfigRequestType",
|
|
structs.NodeBatchDeregisterRequestType: "NodeBatchDeregisterRequestType",
|
|
structs.ClusterMetadataRequestType: "ClusterMetadataRequestType",
|
|
structs.ServiceIdentityAccessorRegisterRequestType: "ServiceIdentityAccessorRegisterRequestType",
|
|
structs.ServiceIdentityAccessorDeregisterRequestType: "ServiceIdentityAccessorDeregisterRequestType",
|
|
structs.CSIVolumeRegisterRequestType: "CSIVolumeRegisterRequestType",
|
|
structs.CSIVolumeDeregisterRequestType: "CSIVolumeDeregisterRequestType",
|
|
structs.CSIVolumeClaimRequestType: "CSIVolumeClaimRequestType",
|
|
structs.ScalingEventRegisterRequestType: "ScalingEventRegisterRequestType",
|
|
structs.CSIVolumeClaimBatchRequestType: "CSIVolumeClaimBatchRequestType",
|
|
structs.CSIPluginDeleteRequestType: "CSIPluginDeleteRequestType",
|
|
structs.EventSinkUpsertRequestType: "EventSinkUpsertRequestType",
|
|
structs.EventSinkDeleteRequestType: "EventSinkDeleteRequestType",
|
|
structs.BatchEventSinkUpdateProgressType: "BatchEventSinkUpdateProgressType",
|
|
structs.NamespaceUpsertRequestType: "NamespaceUpsertRequestType",
|
|
structs.NamespaceDeleteRequestType: "NamespaceDeleteRequestType",
|
|
}
|