plugin

package
v0.0.0-...-b070db2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Protocol_Init_FullMethodName   = "/spaceone.api.alert_manager.plugin.Protocol/init"
	Protocol_Verify_FullMethodName = "/spaceone.api.alert_manager.plugin.Protocol/verify"
)
View Source
const (
	Webhook_Init_FullMethodName   = "/spaceone.api.alert_manager.plugin.Webhook/init"
	Webhook_Verify_FullMethodName = "/spaceone.api.alert_manager.plugin.Webhook/verify"
)
View Source
const (
	Event_Parse_FullMethodName = "/spaceone.api.alert_manager.plugin.Event/parse"
)
View Source
const (
	Notification_Dispatch_FullMethodName = "/spaceone.api.alert_manager.plugin.Notification/dispatch"
)

Variables

View Source
var (
	EventType_name = map[int32]string{
		0: "EVENT_TYPE_NONE",
		1: "RECOVERY",
		2: "ALERT",
	}
	EventType_value = map[string]int32{
		"EVENT_TYPE_NONE": 0,
		"RECOVERY":        1,
		"ALERT":           2,
	}
)

Enum value maps for EventType.

View Source
var (
	DispatchRequest_NotificationType_name = map[int32]string{
		0: "NOTIFICATION_TYPE_NONE",
		1: "ERROR",
		2: "WARNING",
		3: "SUCCESS",
		4: "INFO",
	}
	DispatchRequest_NotificationType_value = map[string]int32{
		"NOTIFICATION_TYPE_NONE": 0,
		"ERROR":                  1,
		"WARNING":                2,
		"SUCCESS":                3,
		"INFO":                   4,
	}
)

Enum value maps for DispatchRequest_NotificationType.

View Source
var Event_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.alert_manager.plugin.Event",
	HandlerType: (*EventServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "parse",
			Handler:    _Event_Parse_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/alert_manager/plugin/event.proto",
}

Event_ServiceDesc is the grpc.ServiceDesc for Event service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_spaceone_api_alert_manager_plugin_event_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_alert_manager_plugin_notification_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_alert_manager_plugin_protocol_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_alert_manager_plugin_webhook_proto protoreflect.FileDescriptor
View Source
var Notification_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.alert_manager.plugin.Notification",
	HandlerType: (*NotificationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "dispatch",
			Handler:    _Notification_Dispatch_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/alert_manager/plugin/notification.proto",
}

Notification_ServiceDesc is the grpc.ServiceDesc for Notification service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Protocol_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.alert_manager.plugin.Protocol",
	HandlerType: (*ProtocolServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "init",
			Handler:    _Protocol_Init_Handler,
		},
		{
			MethodName: "verify",
			Handler:    _Protocol_Verify_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/alert_manager/plugin/protocol.proto",
}

Protocol_ServiceDesc is the grpc.ServiceDesc for Protocol service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Webhook_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.alert_manager.plugin.Webhook",
	HandlerType: (*WebhookServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "init",
			Handler:    _Webhook_Init_Handler,
		},
		{
			MethodName: "verify",
			Handler:    _Webhook_Verify_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/alert_manager/plugin/webhook.proto",
}

Webhook_ServiceDesc is the grpc.ServiceDesc for Webhook service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterEventServer

func RegisterEventServer(s grpc.ServiceRegistrar, srv EventServer)

func RegisterNotificationServer

func RegisterNotificationServer(s grpc.ServiceRegistrar, srv NotificationServer)

func RegisterProtocolServer

func RegisterProtocolServer(s grpc.ServiceRegistrar, srv ProtocolServer)

func RegisterWebhookServer

func RegisterWebhookServer(s grpc.ServiceRegistrar, srv WebhookServer)

Types

type DispatchRequest

type DispatchRequest struct {
	Options          *_struct.Struct                  `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
	SecretData       *_struct.Struct                  `protobuf:"bytes,2,opt,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty"`
	ChannelData      *_struct.Struct                  `protobuf:"bytes,3,opt,name=channel_data,json=channelData,proto3" json:"channel_data,omitempty"`
	Message          *NotificationMessage             `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	NotificationType DispatchRequest_NotificationType `` /* 182-byte string literal not displayed */
	DomainId         string                           `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DispatchRequest) Descriptor deprecated

func (*DispatchRequest) Descriptor() ([]byte, []int)

Deprecated: Use DispatchRequest.ProtoReflect.Descriptor instead.

func (*DispatchRequest) GetChannelData

func (x *DispatchRequest) GetChannelData() *_struct.Struct

func (*DispatchRequest) GetDomainId

func (x *DispatchRequest) GetDomainId() string

func (*DispatchRequest) GetMessage

func (x *DispatchRequest) GetMessage() *NotificationMessage

func (*DispatchRequest) GetNotificationType

func (x *DispatchRequest) GetNotificationType() DispatchRequest_NotificationType

func (*DispatchRequest) GetOptions

func (x *DispatchRequest) GetOptions() *_struct.Struct

func (*DispatchRequest) GetSecretData

func (x *DispatchRequest) GetSecretData() *_struct.Struct

func (*DispatchRequest) ProtoMessage

func (*DispatchRequest) ProtoMessage()

func (*DispatchRequest) ProtoReflect

func (x *DispatchRequest) ProtoReflect() protoreflect.Message

func (*DispatchRequest) Reset

func (x *DispatchRequest) Reset()

func (*DispatchRequest) String

func (x *DispatchRequest) String() string

type DispatchRequest_NotificationType

type DispatchRequest_NotificationType int32
const (
	DispatchRequest_NOTIFICATION_TYPE_NONE DispatchRequest_NotificationType = 0
	DispatchRequest_ERROR                  DispatchRequest_NotificationType = 1
	DispatchRequest_WARNING                DispatchRequest_NotificationType = 2
	DispatchRequest_SUCCESS                DispatchRequest_NotificationType = 3
	DispatchRequest_INFO                   DispatchRequest_NotificationType = 4
)

func (DispatchRequest_NotificationType) Descriptor

func (DispatchRequest_NotificationType) Enum

func (DispatchRequest_NotificationType) EnumDescriptor deprecated

func (DispatchRequest_NotificationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DispatchRequest_NotificationType.Descriptor instead.

func (DispatchRequest_NotificationType) Number

func (DispatchRequest_NotificationType) String

func (DispatchRequest_NotificationType) Type

type EventClient

type EventClient interface {
	Parse(ctx context.Context, in *ParseRequest, opts ...grpc.CallOption) (*EventsInfo, error)
}

EventClient is the client API for Event 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 NewEventClient

func NewEventClient(cc grpc.ClientConnInterface) EventClient

type EventInfo

type EventInfo struct {
	EventKey       string           `protobuf:"bytes,1,opt,name=event_key,json=eventKey,proto3" json:"event_key,omitempty"`
	EventType      EventType        `` /* 138-byte string literal not displayed */
	Title          string           `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Description    string           `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Severity       v1.EventSeverity `protobuf:"varint,5,opt,name=severity,proto3,enum=spaceone.api.alert_manager.v1.EventSeverity" json:"severity,omitempty"`
	Rule           string           `protobuf:"bytes,6,opt,name=rule,proto3" json:"rule,omitempty"`
	ImageUrl       string           `protobuf:"bytes,7,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	Resources      []string         `protobuf:"bytes,8,rep,name=resources,proto3" json:"resources,omitempty"`
	AdditionalInfo *_struct.Struct  `protobuf:"bytes,11,opt,name=additional_info,json=additionalInfo,proto3" json:"additional_info,omitempty"`
	OccurredAt     string           `protobuf:"bytes,31,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"`
	// contains filtered or unexported fields
}

func (*EventInfo) Descriptor deprecated

func (*EventInfo) Descriptor() ([]byte, []int)

Deprecated: Use EventInfo.ProtoReflect.Descriptor instead.

func (*EventInfo) GetAdditionalInfo

func (x *EventInfo) GetAdditionalInfo() *_struct.Struct

func (*EventInfo) GetDescription

func (x *EventInfo) GetDescription() string

func (*EventInfo) GetEventKey

func (x *EventInfo) GetEventKey() string

func (*EventInfo) GetEventType

func (x *EventInfo) GetEventType() EventType

func (*EventInfo) GetImageUrl

func (x *EventInfo) GetImageUrl() string

func (*EventInfo) GetOccurredAt

func (x *EventInfo) GetOccurredAt() string

func (*EventInfo) GetResources

func (x *EventInfo) GetResources() []string

func (*EventInfo) GetRule

func (x *EventInfo) GetRule() string

func (*EventInfo) GetSeverity

func (x *EventInfo) GetSeverity() v1.EventSeverity

func (*EventInfo) GetTitle

func (x *EventInfo) GetTitle() string

func (*EventInfo) ProtoMessage

func (*EventInfo) ProtoMessage()

func (*EventInfo) ProtoReflect

func (x *EventInfo) ProtoReflect() protoreflect.Message

func (*EventInfo) Reset

func (x *EventInfo) Reset()

func (*EventInfo) String

func (x *EventInfo) String() string

type EventServer

type EventServer interface {
	Parse(context.Context, *ParseRequest) (*EventsInfo, error)
	// contains filtered or unexported methods
}

EventServer is the server API for Event service. All implementations must embed UnimplementedEventServer for forward compatibility.

type EventType

type EventType int32
const (
	EventType_EVENT_TYPE_NONE EventType = 0
	EventType_RECOVERY        EventType = 1
	EventType_ALERT           EventType = 2
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

func (EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

type EventsInfo

type EventsInfo struct {
	Results []*EventInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*EventsInfo) Descriptor deprecated

func (*EventsInfo) Descriptor() ([]byte, []int)

Deprecated: Use EventsInfo.ProtoReflect.Descriptor instead.

func (*EventsInfo) GetResults

func (x *EventsInfo) GetResults() []*EventInfo

func (*EventsInfo) ProtoMessage

func (*EventsInfo) ProtoMessage()

func (*EventsInfo) ProtoReflect

func (x *EventsInfo) ProtoReflect() protoreflect.Message

func (*EventsInfo) Reset

func (x *EventsInfo) Reset()

func (*EventsInfo) String

func (x *EventsInfo) String() string

type InitRequest

type InitRequest struct {
	Options  *_struct.Struct `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
	DomainId string          `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*InitRequest) Descriptor deprecated

func (*InitRequest) Descriptor() ([]byte, []int)

Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.

func (*InitRequest) GetDomainId

func (x *InitRequest) GetDomainId() string

func (*InitRequest) GetOptions

func (x *InitRequest) GetOptions() *_struct.Struct

func (*InitRequest) ProtoMessage

func (*InitRequest) ProtoMessage()

func (*InitRequest) ProtoReflect

func (x *InitRequest) ProtoReflect() protoreflect.Message

func (*InitRequest) Reset

func (x *InitRequest) Reset()

func (*InitRequest) String

func (x *InitRequest) String() string

type NotificationCallback

type NotificationCallback struct {
	Label   string          `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Url     string          `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Options *_struct.Struct `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationCallback) Descriptor deprecated

func (*NotificationCallback) Descriptor() ([]byte, []int)

Deprecated: Use NotificationCallback.ProtoReflect.Descriptor instead.

func (*NotificationCallback) GetLabel

func (x *NotificationCallback) GetLabel() string

func (*NotificationCallback) GetOptions

func (x *NotificationCallback) GetOptions() *_struct.Struct

func (*NotificationCallback) GetUrl

func (x *NotificationCallback) GetUrl() string

func (*NotificationCallback) ProtoMessage

func (*NotificationCallback) ProtoMessage()

func (*NotificationCallback) ProtoReflect

func (x *NotificationCallback) ProtoReflect() protoreflect.Message

func (*NotificationCallback) Reset

func (x *NotificationCallback) Reset()

func (*NotificationCallback) String

func (x *NotificationCallback) String() string

type NotificationClient

type NotificationClient interface {
	Dispatch(ctx context.Context, in *DispatchRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

NotificationClient is the client API for Notification 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.

type NotificationMessage

type NotificationMessage struct {
	Title       string                  `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Link        string                  `protobuf:"bytes,2,opt,name=link,proto3" json:"link,omitempty"`
	Description string                  `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	ImageUrl    string                  `protobuf:"bytes,4,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	Tags        []*NotificationTag      `protobuf:"bytes,11,rep,name=tags,proto3" json:"tags,omitempty"`
	Callbacks   []*NotificationCallback `protobuf:"bytes,12,rep,name=callbacks,proto3" json:"callbacks,omitempty"`
	OccurredAt  string                  `protobuf:"bytes,31,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationMessage) Descriptor deprecated

func (*NotificationMessage) Descriptor() ([]byte, []int)

Deprecated: Use NotificationMessage.ProtoReflect.Descriptor instead.

func (*NotificationMessage) GetCallbacks

func (x *NotificationMessage) GetCallbacks() []*NotificationCallback

func (*NotificationMessage) GetDescription

func (x *NotificationMessage) GetDescription() string

func (*NotificationMessage) GetImageUrl

func (x *NotificationMessage) GetImageUrl() string
func (x *NotificationMessage) GetLink() string

func (*NotificationMessage) GetOccurredAt

func (x *NotificationMessage) GetOccurredAt() string

func (*NotificationMessage) GetTags

func (x *NotificationMessage) GetTags() []*NotificationTag

func (*NotificationMessage) GetTitle

func (x *NotificationMessage) GetTitle() string

func (*NotificationMessage) ProtoMessage

func (*NotificationMessage) ProtoMessage()

func (*NotificationMessage) ProtoReflect

func (x *NotificationMessage) ProtoReflect() protoreflect.Message

func (*NotificationMessage) Reset

func (x *NotificationMessage) Reset()

func (*NotificationMessage) String

func (x *NotificationMessage) String() string

type NotificationServer

type NotificationServer interface {
	Dispatch(context.Context, *DispatchRequest) (*empty.Empty, error)
	// contains filtered or unexported methods
}

NotificationServer is the server API for Notification service. All implementations must embed UnimplementedNotificationServer for forward compatibility.

type NotificationTag

type NotificationTag struct {
	Key     string          `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value   string          `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Options *_struct.Struct `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationTag) Descriptor deprecated

func (*NotificationTag) Descriptor() ([]byte, []int)

Deprecated: Use NotificationTag.ProtoReflect.Descriptor instead.

func (*NotificationTag) GetKey

func (x *NotificationTag) GetKey() string

func (*NotificationTag) GetOptions

func (x *NotificationTag) GetOptions() *_struct.Struct

func (*NotificationTag) GetValue

func (x *NotificationTag) GetValue() string

func (*NotificationTag) ProtoMessage

func (*NotificationTag) ProtoMessage()

func (*NotificationTag) ProtoReflect

func (x *NotificationTag) ProtoReflect() protoreflect.Message

func (*NotificationTag) Reset

func (x *NotificationTag) Reset()

func (*NotificationTag) String

func (x *NotificationTag) String() string

type ParseRequest

type ParseRequest struct {
	Options  *_struct.Struct `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
	Data     *_struct.Struct `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	DomainId string          `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ParseRequest) Descriptor deprecated

func (*ParseRequest) Descriptor() ([]byte, []int)

Deprecated: Use ParseRequest.ProtoReflect.Descriptor instead.

func (*ParseRequest) GetData

func (x *ParseRequest) GetData() *_struct.Struct

func (*ParseRequest) GetDomainId

func (x *ParseRequest) GetDomainId() string

func (*ParseRequest) GetOptions

func (x *ParseRequest) GetOptions() *_struct.Struct

func (*ParseRequest) ProtoMessage

func (*ParseRequest) ProtoMessage()

func (*ParseRequest) ProtoReflect

func (x *ParseRequest) ProtoReflect() protoreflect.Message

func (*ParseRequest) Reset

func (x *ParseRequest) Reset()

func (*ParseRequest) String

func (x *ParseRequest) String() string

type PluginInfo

type PluginInfo struct {
	Metadata *_struct.Struct `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*PluginInfo) Descriptor deprecated

func (*PluginInfo) Descriptor() ([]byte, []int)

Deprecated: Use PluginInfo.ProtoReflect.Descriptor instead.

func (*PluginInfo) GetMetadata

func (x *PluginInfo) GetMetadata() *_struct.Struct

func (*PluginInfo) ProtoMessage

func (*PluginInfo) ProtoMessage()

func (*PluginInfo) ProtoReflect

func (x *PluginInfo) ProtoReflect() protoreflect.Message

func (*PluginInfo) Reset

func (x *PluginInfo) Reset()

func (*PluginInfo) String

func (x *PluginInfo) String() string

type ProtocolClient

type ProtocolClient interface {
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*PluginInfo, error)
	Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

ProtocolClient is the client API for Protocol 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 NewProtocolClient

func NewProtocolClient(cc grpc.ClientConnInterface) ProtocolClient

type ProtocolServer

type ProtocolServer interface {
	Init(context.Context, *InitRequest) (*PluginInfo, error)
	Verify(context.Context, *VerifyRequest) (*empty.Empty, error)
	// contains filtered or unexported methods
}

ProtocolServer is the server API for Protocol service. All implementations must embed UnimplementedProtocolServer for forward compatibility.

type UnimplementedEventServer

type UnimplementedEventServer struct{}

UnimplementedEventServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedEventServer) Parse

type UnimplementedNotificationServer

type UnimplementedNotificationServer struct{}

UnimplementedNotificationServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedNotificationServer) Dispatch

type UnimplementedProtocolServer

type UnimplementedProtocolServer struct{}

UnimplementedProtocolServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedProtocolServer) Init

func (UnimplementedProtocolServer) Init(context.Context, *InitRequest) (*PluginInfo, error)

func (UnimplementedProtocolServer) Verify

func (UnimplementedProtocolServer) Verify(context.Context, *VerifyRequest) (*empty.Empty, error)

type UnimplementedWebhookServer

type UnimplementedWebhookServer struct{}

UnimplementedWebhookServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedWebhookServer) Init

func (UnimplementedWebhookServer) Init(context.Context, *InitRequest) (*PluginInfo, error)

func (UnimplementedWebhookServer) Verify

func (UnimplementedWebhookServer) Verify(context.Context, *VerifyRequest) (*empty.Empty, error)

type UnsafeEventServer

type UnsafeEventServer interface {
	// contains filtered or unexported methods
}

UnsafeEventServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServer will result in compilation errors.

type UnsafeNotificationServer

type UnsafeNotificationServer interface {
	// contains filtered or unexported methods
}

UnsafeNotificationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotificationServer will result in compilation errors.

type UnsafeProtocolServer

type UnsafeProtocolServer interface {
	// contains filtered or unexported methods
}

UnsafeProtocolServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProtocolServer will result in compilation errors.

type UnsafeWebhookServer

type UnsafeWebhookServer interface {
	// contains filtered or unexported methods
}

UnsafeWebhookServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebhookServer will result in compilation errors.

type VerifyRequest

type VerifyRequest struct {
	Options  *_struct.Struct `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
	DomainId string          `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyRequest) Descriptor deprecated

func (*VerifyRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead.

func (*VerifyRequest) GetDomainId

func (x *VerifyRequest) GetDomainId() string

func (*VerifyRequest) GetOptions

func (x *VerifyRequest) GetOptions() *_struct.Struct

func (*VerifyRequest) GetSecretData

func (x *VerifyRequest) GetSecretData() *_struct.Struct

func (*VerifyRequest) ProtoMessage

func (*VerifyRequest) ProtoMessage()

func (*VerifyRequest) ProtoReflect

func (x *VerifyRequest) ProtoReflect() protoreflect.Message

func (*VerifyRequest) Reset

func (x *VerifyRequest) Reset()

func (*VerifyRequest) String

func (x *VerifyRequest) String() string

type WebhookClient

type WebhookClient interface {
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*PluginInfo, error)
	Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

WebhookClient is the client API for Webhook 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 NewWebhookClient

func NewWebhookClient(cc grpc.ClientConnInterface) WebhookClient

type WebhookServer

type WebhookServer interface {
	Init(context.Context, *InitRequest) (*PluginInfo, error)
	Verify(context.Context, *VerifyRequest) (*empty.Empty, error)
	// contains filtered or unexported methods
}

WebhookServer is the server API for Webhook service. All implementations must embed UnimplementedWebhookServer for forward compatibility.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL