Documentation ¶
Index ¶
- Variables
- func RegisterSirenServiceServer(s grpc.ServiceRegistrar, srv SirenServiceServer)
- type SirenServiceClient
- type SirenServiceServer
- type UnimplementedSirenServiceServer
- func (UnimplementedSirenServiceServer) CreateCortexAlerts(context.Context, *v1beta1.CreateCortexAlertsRequest) (*v1beta1.Alerts, error)
- func (UnimplementedSirenServiceServer) CreateNamespace(context.Context, *v1beta1.CreateNamespaceRequest) (*v1beta1.Namespace, error)
- func (UnimplementedSirenServiceServer) CreateProvider(context.Context, *v1beta1.CreateProviderRequest) (*v1beta1.Provider, error)
- func (UnimplementedSirenServiceServer) CreateReceiver(context.Context, *v1beta1.CreateReceiverRequest) (*v1beta1.Receiver, error)
- func (UnimplementedSirenServiceServer) DeleteNamespace(context.Context, *v1beta1.DeleteNamespaceRequest) (*emptypb.Empty, error)
- func (UnimplementedSirenServiceServer) DeleteProvider(context.Context, *v1beta1.DeleteProviderRequest) (*emptypb.Empty, error)
- func (UnimplementedSirenServiceServer) DeleteReceiver(context.Context, *v1beta1.DeleteReceiverRequest) (*emptypb.Empty, error)
- func (UnimplementedSirenServiceServer) DeleteTemplate(context.Context, *v1beta1.DeleteTemplateRequest) (*v1beta1.DeleteTemplateResponse, error)
- func (UnimplementedSirenServiceServer) GetNamespace(context.Context, *v1beta1.GetNamespaceRequest) (*v1beta1.Namespace, error)
- func (UnimplementedSirenServiceServer) GetProvider(context.Context, *v1beta1.GetProviderRequest) (*v1beta1.Provider, error)
- func (UnimplementedSirenServiceServer) GetReceiver(context.Context, *v1beta1.GetReceiverRequest) (*v1beta1.Receiver, error)
- func (UnimplementedSirenServiceServer) GetTemplateByName(context.Context, *v1beta1.GetTemplateByNameRequest) (*v1beta1.TemplateResponse, error)
- func (UnimplementedSirenServiceServer) ListAlerts(context.Context, *v1beta1.ListAlertsRequest) (*v1beta1.Alerts, error)
- func (UnimplementedSirenServiceServer) ListNamespaces(context.Context, *emptypb.Empty) (*v1beta1.ListNamespacesResponse, error)
- func (UnimplementedSirenServiceServer) ListProviders(context.Context, *v1beta1.ListProvidersRequest) (*v1beta1.ListProvidersResponse, error)
- func (UnimplementedSirenServiceServer) ListReceivers(context.Context, *emptypb.Empty) (*v1beta1.ListReceiversResponse, error)
- func (UnimplementedSirenServiceServer) ListRules(context.Context, *v1beta1.ListRulesRequest) (*v1beta1.ListRulesResponse, error)
- func (UnimplementedSirenServiceServer) ListTemplates(context.Context, *v1beta1.ListTemplatesRequest) (*v1beta1.ListTemplatesResponse, error)
- func (UnimplementedSirenServiceServer) Ping(context.Context, *v1beta1.PingRequest) (*v1beta1.PingResponse, error)
- func (UnimplementedSirenServiceServer) RenderTemplate(context.Context, *v1beta1.RenderTemplateRequest) (*v1beta1.RenderTemplateResponse, error)
- func (UnimplementedSirenServiceServer) SendReceiverNotification(context.Context, *v1beta1.SendReceiverNotificationRequest) (*v1beta1.SendReceiverNotificationResponse, error)
- func (UnimplementedSirenServiceServer) UpdateNamespace(context.Context, *v1beta1.UpdateNamespaceRequest) (*v1beta1.Namespace, error)
- func (UnimplementedSirenServiceServer) UpdateProvider(context.Context, *v1beta1.UpdateProviderRequest) (*v1beta1.Provider, error)
- func (UnimplementedSirenServiceServer) UpdateReceiver(context.Context, *v1beta1.UpdateReceiverRequest) (*v1beta1.Receiver, error)
- func (UnimplementedSirenServiceServer) UpdateRule(context.Context, *v1beta1.UpdateRuleRequest) (*v1beta1.UpdateRuleResponse, error)
- func (UnimplementedSirenServiceServer) UpsertTemplate(context.Context, *v1beta1.UpsertTemplateRequest) (*v1beta1.TemplateResponse, error)
- type UnsafeSirenServiceServer
Constants ¶
This section is empty.
Variables ¶
var SirenService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "odpf.siren.v1beta1.SirenService", HandlerType: (*SirenServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _SirenService_Ping_Handler, }, { MethodName: "ListProviders", Handler: _SirenService_ListProviders_Handler, }, { MethodName: "CreateProvider", Handler: _SirenService_CreateProvider_Handler, }, { MethodName: "GetProvider", Handler: _SirenService_GetProvider_Handler, }, { MethodName: "UpdateProvider", Handler: _SirenService_UpdateProvider_Handler, }, { MethodName: "DeleteProvider", Handler: _SirenService_DeleteProvider_Handler, }, { MethodName: "SendReceiverNotification", Handler: _SirenService_SendReceiverNotification_Handler, }, { MethodName: "ListNamespaces", Handler: _SirenService_ListNamespaces_Handler, }, { MethodName: "CreateNamespace", Handler: _SirenService_CreateNamespace_Handler, }, { MethodName: "GetNamespace", Handler: _SirenService_GetNamespace_Handler, }, { MethodName: "UpdateNamespace", Handler: _SirenService_UpdateNamespace_Handler, }, { MethodName: "DeleteNamespace", Handler: _SirenService_DeleteNamespace_Handler, }, { MethodName: "ListReceivers", Handler: _SirenService_ListReceivers_Handler, }, { MethodName: "CreateReceiver", Handler: _SirenService_CreateReceiver_Handler, }, { MethodName: "GetReceiver", Handler: _SirenService_GetReceiver_Handler, }, { MethodName: "UpdateReceiver", Handler: _SirenService_UpdateReceiver_Handler, }, { MethodName: "DeleteReceiver", Handler: _SirenService_DeleteReceiver_Handler, }, { MethodName: "ListAlerts", Handler: _SirenService_ListAlerts_Handler, }, { MethodName: "CreateCortexAlerts", Handler: _SirenService_CreateCortexAlerts_Handler, }, { MethodName: "ListRules", Handler: _SirenService_ListRules_Handler, }, { MethodName: "UpdateRule", Handler: _SirenService_UpdateRule_Handler, }, { MethodName: "ListTemplates", Handler: _SirenService_ListTemplates_Handler, }, { MethodName: "GetTemplateByName", Handler: _SirenService_GetTemplateByName_Handler, }, { MethodName: "UpsertTemplate", Handler: _SirenService_UpsertTemplate_Handler, }, { MethodName: "DeleteTemplate", Handler: _SirenService_DeleteTemplate_Handler, }, { MethodName: "RenderTemplate", Handler: _SirenService_RenderTemplate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "odpf/siren/v1beta1/siren.proto", }
SirenService_ServiceDesc is the grpc.ServiceDesc for SirenService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSirenServiceServer ¶
func RegisterSirenServiceServer(s grpc.ServiceRegistrar, srv SirenServiceServer)
Types ¶
type SirenServiceClient ¶
type SirenServiceClient interface { Ping(ctx context.Context, in *v1beta1.PingRequest, opts ...grpc.CallOption) (*v1beta1.PingResponse, error) ListProviders(ctx context.Context, in *v1beta1.ListProvidersRequest, opts ...grpc.CallOption) (*v1beta1.ListProvidersResponse, error) CreateProvider(ctx context.Context, in *v1beta1.CreateProviderRequest, opts ...grpc.CallOption) (*v1beta1.Provider, error) GetProvider(ctx context.Context, in *v1beta1.GetProviderRequest, opts ...grpc.CallOption) (*v1beta1.Provider, error) UpdateProvider(ctx context.Context, in *v1beta1.UpdateProviderRequest, opts ...grpc.CallOption) (*v1beta1.Provider, error) DeleteProvider(ctx context.Context, in *v1beta1.DeleteProviderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) SendReceiverNotification(ctx context.Context, in *v1beta1.SendReceiverNotificationRequest, opts ...grpc.CallOption) (*v1beta1.SendReceiverNotificationResponse, error) ListNamespaces(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v1beta1.ListNamespacesResponse, error) CreateNamespace(ctx context.Context, in *v1beta1.CreateNamespaceRequest, opts ...grpc.CallOption) (*v1beta1.Namespace, error) GetNamespace(ctx context.Context, in *v1beta1.GetNamespaceRequest, opts ...grpc.CallOption) (*v1beta1.Namespace, error) UpdateNamespace(ctx context.Context, in *v1beta1.UpdateNamespaceRequest, opts ...grpc.CallOption) (*v1beta1.Namespace, error) DeleteNamespace(ctx context.Context, in *v1beta1.DeleteNamespaceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) ListReceivers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v1beta1.ListReceiversResponse, error) CreateReceiver(ctx context.Context, in *v1beta1.CreateReceiverRequest, opts ...grpc.CallOption) (*v1beta1.Receiver, error) GetReceiver(ctx context.Context, in *v1beta1.GetReceiverRequest, opts ...grpc.CallOption) (*v1beta1.Receiver, error) UpdateReceiver(ctx context.Context, in *v1beta1.UpdateReceiverRequest, opts ...grpc.CallOption) (*v1beta1.Receiver, error) DeleteReceiver(ctx context.Context, in *v1beta1.DeleteReceiverRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) ListAlerts(ctx context.Context, in *v1beta1.ListAlertsRequest, opts ...grpc.CallOption) (*v1beta1.Alerts, error) CreateCortexAlerts(ctx context.Context, in *v1beta1.CreateCortexAlertsRequest, opts ...grpc.CallOption) (*v1beta1.Alerts, error) ListRules(ctx context.Context, in *v1beta1.ListRulesRequest, opts ...grpc.CallOption) (*v1beta1.ListRulesResponse, error) UpdateRule(ctx context.Context, in *v1beta1.UpdateRuleRequest, opts ...grpc.CallOption) (*v1beta1.UpdateRuleResponse, error) ListTemplates(ctx context.Context, in *v1beta1.ListTemplatesRequest, opts ...grpc.CallOption) (*v1beta1.ListTemplatesResponse, error) GetTemplateByName(ctx context.Context, in *v1beta1.GetTemplateByNameRequest, opts ...grpc.CallOption) (*v1beta1.TemplateResponse, error) UpsertTemplate(ctx context.Context, in *v1beta1.UpsertTemplateRequest, opts ...grpc.CallOption) (*v1beta1.TemplateResponse, error) DeleteTemplate(ctx context.Context, in *v1beta1.DeleteTemplateRequest, opts ...grpc.CallOption) (*v1beta1.DeleteTemplateResponse, error) RenderTemplate(ctx context.Context, in *v1beta1.RenderTemplateRequest, opts ...grpc.CallOption) (*v1beta1.RenderTemplateResponse, error) }
SirenServiceClient is the client API for SirenService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSirenServiceClient ¶
func NewSirenServiceClient(cc grpc.ClientConnInterface) SirenServiceClient
type SirenServiceServer ¶
type SirenServiceServer interface { Ping(context.Context, *v1beta1.PingRequest) (*v1beta1.PingResponse, error) ListProviders(context.Context, *v1beta1.ListProvidersRequest) (*v1beta1.ListProvidersResponse, error) CreateProvider(context.Context, *v1beta1.CreateProviderRequest) (*v1beta1.Provider, error) GetProvider(context.Context, *v1beta1.GetProviderRequest) (*v1beta1.Provider, error) UpdateProvider(context.Context, *v1beta1.UpdateProviderRequest) (*v1beta1.Provider, error) DeleteProvider(context.Context, *v1beta1.DeleteProviderRequest) (*emptypb.Empty, error) SendReceiverNotification(context.Context, *v1beta1.SendReceiverNotificationRequest) (*v1beta1.SendReceiverNotificationResponse, error) ListNamespaces(context.Context, *emptypb.Empty) (*v1beta1.ListNamespacesResponse, error) CreateNamespace(context.Context, *v1beta1.CreateNamespaceRequest) (*v1beta1.Namespace, error) GetNamespace(context.Context, *v1beta1.GetNamespaceRequest) (*v1beta1.Namespace, error) UpdateNamespace(context.Context, *v1beta1.UpdateNamespaceRequest) (*v1beta1.Namespace, error) DeleteNamespace(context.Context, *v1beta1.DeleteNamespaceRequest) (*emptypb.Empty, error) ListReceivers(context.Context, *emptypb.Empty) (*v1beta1.ListReceiversResponse, error) CreateReceiver(context.Context, *v1beta1.CreateReceiverRequest) (*v1beta1.Receiver, error) GetReceiver(context.Context, *v1beta1.GetReceiverRequest) (*v1beta1.Receiver, error) UpdateReceiver(context.Context, *v1beta1.UpdateReceiverRequest) (*v1beta1.Receiver, error) DeleteReceiver(context.Context, *v1beta1.DeleteReceiverRequest) (*emptypb.Empty, error) ListAlerts(context.Context, *v1beta1.ListAlertsRequest) (*v1beta1.Alerts, error) CreateCortexAlerts(context.Context, *v1beta1.CreateCortexAlertsRequest) (*v1beta1.Alerts, error) ListRules(context.Context, *v1beta1.ListRulesRequest) (*v1beta1.ListRulesResponse, error) UpdateRule(context.Context, *v1beta1.UpdateRuleRequest) (*v1beta1.UpdateRuleResponse, error) ListTemplates(context.Context, *v1beta1.ListTemplatesRequest) (*v1beta1.ListTemplatesResponse, error) GetTemplateByName(context.Context, *v1beta1.GetTemplateByNameRequest) (*v1beta1.TemplateResponse, error) UpsertTemplate(context.Context, *v1beta1.UpsertTemplateRequest) (*v1beta1.TemplateResponse, error) DeleteTemplate(context.Context, *v1beta1.DeleteTemplateRequest) (*v1beta1.DeleteTemplateResponse, error) RenderTemplate(context.Context, *v1beta1.RenderTemplateRequest) (*v1beta1.RenderTemplateResponse, error) }
SirenServiceServer is the server API for SirenService service. All implementations should embed UnimplementedSirenServiceServer for forward compatibility
type UnimplementedSirenServiceServer ¶
type UnimplementedSirenServiceServer struct { }
UnimplementedSirenServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedSirenServiceServer) CreateCortexAlerts ¶
func (UnimplementedSirenServiceServer) CreateCortexAlerts(context.Context, *v1beta1.CreateCortexAlertsRequest) (*v1beta1.Alerts, error)
func (UnimplementedSirenServiceServer) CreateNamespace ¶
func (UnimplementedSirenServiceServer) CreateNamespace(context.Context, *v1beta1.CreateNamespaceRequest) (*v1beta1.Namespace, error)
func (UnimplementedSirenServiceServer) CreateProvider ¶
func (UnimplementedSirenServiceServer) CreateProvider(context.Context, *v1beta1.CreateProviderRequest) (*v1beta1.Provider, error)
func (UnimplementedSirenServiceServer) CreateReceiver ¶
func (UnimplementedSirenServiceServer) CreateReceiver(context.Context, *v1beta1.CreateReceiverRequest) (*v1beta1.Receiver, error)
func (UnimplementedSirenServiceServer) DeleteNamespace ¶
func (UnimplementedSirenServiceServer) DeleteNamespace(context.Context, *v1beta1.DeleteNamespaceRequest) (*emptypb.Empty, error)
func (UnimplementedSirenServiceServer) DeleteProvider ¶
func (UnimplementedSirenServiceServer) DeleteProvider(context.Context, *v1beta1.DeleteProviderRequest) (*emptypb.Empty, error)
func (UnimplementedSirenServiceServer) DeleteReceiver ¶
func (UnimplementedSirenServiceServer) DeleteReceiver(context.Context, *v1beta1.DeleteReceiverRequest) (*emptypb.Empty, error)
func (UnimplementedSirenServiceServer) DeleteTemplate ¶
func (UnimplementedSirenServiceServer) DeleteTemplate(context.Context, *v1beta1.DeleteTemplateRequest) (*v1beta1.DeleteTemplateResponse, error)
func (UnimplementedSirenServiceServer) GetNamespace ¶
func (UnimplementedSirenServiceServer) GetNamespace(context.Context, *v1beta1.GetNamespaceRequest) (*v1beta1.Namespace, error)
func (UnimplementedSirenServiceServer) GetProvider ¶
func (UnimplementedSirenServiceServer) GetProvider(context.Context, *v1beta1.GetProviderRequest) (*v1beta1.Provider, error)
func (UnimplementedSirenServiceServer) GetReceiver ¶
func (UnimplementedSirenServiceServer) GetReceiver(context.Context, *v1beta1.GetReceiverRequest) (*v1beta1.Receiver, error)
func (UnimplementedSirenServiceServer) GetTemplateByName ¶
func (UnimplementedSirenServiceServer) GetTemplateByName(context.Context, *v1beta1.GetTemplateByNameRequest) (*v1beta1.TemplateResponse, error)
func (UnimplementedSirenServiceServer) ListAlerts ¶
func (UnimplementedSirenServiceServer) ListAlerts(context.Context, *v1beta1.ListAlertsRequest) (*v1beta1.Alerts, error)
func (UnimplementedSirenServiceServer) ListNamespaces ¶
func (UnimplementedSirenServiceServer) ListNamespaces(context.Context, *emptypb.Empty) (*v1beta1.ListNamespacesResponse, error)
func (UnimplementedSirenServiceServer) ListProviders ¶
func (UnimplementedSirenServiceServer) ListProviders(context.Context, *v1beta1.ListProvidersRequest) (*v1beta1.ListProvidersResponse, error)
func (UnimplementedSirenServiceServer) ListReceivers ¶
func (UnimplementedSirenServiceServer) ListReceivers(context.Context, *emptypb.Empty) (*v1beta1.ListReceiversResponse, error)
func (UnimplementedSirenServiceServer) ListRules ¶
func (UnimplementedSirenServiceServer) ListRules(context.Context, *v1beta1.ListRulesRequest) (*v1beta1.ListRulesResponse, error)
func (UnimplementedSirenServiceServer) ListTemplates ¶
func (UnimplementedSirenServiceServer) ListTemplates(context.Context, *v1beta1.ListTemplatesRequest) (*v1beta1.ListTemplatesResponse, error)
func (UnimplementedSirenServiceServer) Ping ¶
func (UnimplementedSirenServiceServer) Ping(context.Context, *v1beta1.PingRequest) (*v1beta1.PingResponse, error)
func (UnimplementedSirenServiceServer) RenderTemplate ¶
func (UnimplementedSirenServiceServer) RenderTemplate(context.Context, *v1beta1.RenderTemplateRequest) (*v1beta1.RenderTemplateResponse, error)
func (UnimplementedSirenServiceServer) SendReceiverNotification ¶
func (UnimplementedSirenServiceServer) SendReceiverNotification(context.Context, *v1beta1.SendReceiverNotificationRequest) (*v1beta1.SendReceiverNotificationResponse, error)
func (UnimplementedSirenServiceServer) UpdateNamespace ¶
func (UnimplementedSirenServiceServer) UpdateNamespace(context.Context, *v1beta1.UpdateNamespaceRequest) (*v1beta1.Namespace, error)
func (UnimplementedSirenServiceServer) UpdateProvider ¶
func (UnimplementedSirenServiceServer) UpdateProvider(context.Context, *v1beta1.UpdateProviderRequest) (*v1beta1.Provider, error)
func (UnimplementedSirenServiceServer) UpdateReceiver ¶
func (UnimplementedSirenServiceServer) UpdateReceiver(context.Context, *v1beta1.UpdateReceiverRequest) (*v1beta1.Receiver, error)
func (UnimplementedSirenServiceServer) UpdateRule ¶
func (UnimplementedSirenServiceServer) UpdateRule(context.Context, *v1beta1.UpdateRuleRequest) (*v1beta1.UpdateRuleResponse, error)
func (UnimplementedSirenServiceServer) UpsertTemplate ¶
func (UnimplementedSirenServiceServer) UpsertTemplate(context.Context, *v1beta1.UpsertTemplateRequest) (*v1beta1.TemplateResponse, error)
type UnsafeSirenServiceServer ¶
type UnsafeSirenServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSirenServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SirenServiceServer will result in compilation errors.