1318 lines
41 KiB
Go
1318 lines
41 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: connector/v1/connector.proto
|
|
|
|
package connectorv1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Reversibility int32
|
|
|
|
const (
|
|
Reversibility_REVERSIBILITY_UNSPECIFIED Reversibility = 0
|
|
// REVERSIBILITY_UNDONE_AUTOMATICALLY can be reversed without help.
|
|
Reversibility_REVERSIBILITY_UNDONE_AUTOMATICALLY Reversibility = 1
|
|
// REVERSIBILITY_RECOVERABLE can be recovered from a snapshot, or touches
|
|
// only a disposable target.
|
|
Reversibility_REVERSIBILITY_RECOVERABLE Reversibility = 2
|
|
Reversibility_REVERSIBILITY_IRREVERSIBLE Reversibility = 3
|
|
)
|
|
|
|
// Enum value maps for Reversibility.
|
|
var (
|
|
Reversibility_name = map[int32]string{
|
|
0: "REVERSIBILITY_UNSPECIFIED",
|
|
1: "REVERSIBILITY_UNDONE_AUTOMATICALLY",
|
|
2: "REVERSIBILITY_RECOVERABLE",
|
|
3: "REVERSIBILITY_IRREVERSIBLE",
|
|
}
|
|
Reversibility_value = map[string]int32{
|
|
"REVERSIBILITY_UNSPECIFIED": 0,
|
|
"REVERSIBILITY_UNDONE_AUTOMATICALLY": 1,
|
|
"REVERSIBILITY_RECOVERABLE": 2,
|
|
"REVERSIBILITY_IRREVERSIBLE": 3,
|
|
}
|
|
)
|
|
|
|
func (x Reversibility) Enum() *Reversibility {
|
|
p := new(Reversibility)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Reversibility) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Reversibility) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_connector_v1_connector_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (Reversibility) Type() protoreflect.EnumType {
|
|
return &file_connector_v1_connector_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x Reversibility) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Reversibility.Descriptor instead.
|
|
func (Reversibility) EnumDescriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type ConfigureRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Settings map[string]string `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
Secrets map[string]string `protobuf:"bytes,2,rep,name=secrets,proto3" json:"secrets,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConfigureRequest) Reset() {
|
|
*x = ConfigureRequest{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConfigureRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConfigureRequest) ProtoMessage() {}
|
|
|
|
func (x *ConfigureRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ConfigureRequest.ProtoReflect.Descriptor instead.
|
|
func (*ConfigureRequest) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ConfigureRequest) GetSettings() map[string]string {
|
|
if x != nil {
|
|
return x.Settings
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ConfigureRequest) GetSecrets() map[string]string {
|
|
if x != nil {
|
|
return x.Secrets
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ConfigureResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConfigureResponse) Reset() {
|
|
*x = ConfigureResponse{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConfigureResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConfigureResponse) ProtoMessage() {}
|
|
|
|
func (x *ConfigureResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ConfigureResponse.ProtoReflect.Descriptor instead.
|
|
func (*ConfigureResponse) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type DescribeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DescribeRequest) Reset() {
|
|
*x = DescribeRequest{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DescribeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DescribeRequest) ProtoMessage() {}
|
|
|
|
func (x *DescribeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DescribeRequest.ProtoReflect.Descriptor instead.
|
|
func (*DescribeRequest) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type DescribeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// contract is the contract version the connector speaks, "v1".
|
|
Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
|
|
Events []*EventType `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"`
|
|
Actions []*ActionType `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
|
|
Lookups []*LookupType `protobuf:"bytes,4,rep,name=lookups,proto3" json:"lookups,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DescribeResponse) Reset() {
|
|
*x = DescribeResponse{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DescribeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DescribeResponse) ProtoMessage() {}
|
|
|
|
func (x *DescribeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DescribeResponse.ProtoReflect.Descriptor instead.
|
|
func (*DescribeResponse) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *DescribeResponse) GetContract() string {
|
|
if x != nil {
|
|
return x.Contract
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DescribeResponse) GetEvents() []*EventType {
|
|
if x != nil {
|
|
return x.Events
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DescribeResponse) GetActions() []*ActionType {
|
|
if x != nil {
|
|
return x.Actions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DescribeResponse) GetLookups() []*LookupType {
|
|
if x != nil {
|
|
return x.Lookups
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type EventType struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
// schema is the JSON Schema of the event's fields.
|
|
Schema []byte `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EventType) Reset() {
|
|
*x = EventType{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EventType) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EventType) ProtoMessage() {}
|
|
|
|
func (x *EventType) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EventType.ProtoReflect.Descriptor instead.
|
|
func (*EventType) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *EventType) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EventType) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EventType) GetSchema() []byte {
|
|
if x != nil {
|
|
return x.Schema
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ActionType struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
// input_schema is the JSON Schema of the action's input.
|
|
InputSchema []byte `protobuf:"bytes,3,opt,name=input_schema,json=inputSchema,proto3" json:"input_schema,omitempty"`
|
|
// effect is the static declaration; Resolve refines it per action.
|
|
Effect *Effect `protobuf:"bytes,4,opt,name=effect,proto3" json:"effect,omitempty"`
|
|
// idempotent declares that the connector honours idempotency keys. A
|
|
// connector that declares external effects without it has its actions
|
|
// refused.
|
|
Idempotent bool `protobuf:"varint,5,opt,name=idempotent,proto3" json:"idempotent,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ActionType) Reset() {
|
|
*x = ActionType{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ActionType) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ActionType) ProtoMessage() {}
|
|
|
|
func (x *ActionType) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ActionType.ProtoReflect.Descriptor instead.
|
|
func (*ActionType) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ActionType) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ActionType) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ActionType) GetInputSchema() []byte {
|
|
if x != nil {
|
|
return x.InputSchema
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ActionType) GetEffect() *Effect {
|
|
if x != nil {
|
|
return x.Effect
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ActionType) GetIdempotent() bool {
|
|
if x != nil {
|
|
return x.Idempotent
|
|
}
|
|
return false
|
|
}
|
|
|
|
type LookupType struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
InputSchema []byte `protobuf:"bytes,3,opt,name=input_schema,json=inputSchema,proto3" json:"input_schema,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LookupType) Reset() {
|
|
*x = LookupType{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LookupType) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LookupType) ProtoMessage() {}
|
|
|
|
func (x *LookupType) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use LookupType.ProtoReflect.Descriptor instead.
|
|
func (*LookupType) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *LookupType) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LookupType) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LookupType) GetInputSchema() []byte {
|
|
if x != nil {
|
|
return x.InputSchema
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Effect struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ReadOnly bool `protobuf:"varint,1,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
|
|
Reversibility Reversibility `protobuf:"varint,2,opt,name=reversibility,proto3,enum=connector.v1.Reversibility" json:"reversibility,omitempty"`
|
|
// summary says in plain words what the action does, for example "delete
|
|
// files older than 24h under /tmp/runner".
|
|
Summary string `protobuf:"bytes,3,opt,name=summary,proto3" json:"summary,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Effect) Reset() {
|
|
*x = Effect{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Effect) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Effect) ProtoMessage() {}
|
|
|
|
func (x *Effect) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Effect.ProtoReflect.Descriptor instead.
|
|
func (*Effect) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *Effect) GetReadOnly() bool {
|
|
if x != nil {
|
|
return x.ReadOnly
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Effect) GetReversibility() Reversibility {
|
|
if x != nil {
|
|
return x.Reversibility
|
|
}
|
|
return Reversibility_REVERSIBILITY_UNSPECIFIED
|
|
}
|
|
|
|
func (x *Effect) GetSummary() string {
|
|
if x != nil {
|
|
return x.Summary
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Target is what an action acts on. Connector, action, kind and environment
|
|
// together are the action class.
|
|
type Target struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
Environment string `protobuf:"bytes,3,opt,name=environment,proto3" json:"environment,omitempty"`
|
|
Disposable bool `protobuf:"varint,4,opt,name=disposable,proto3" json:"disposable,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Target) Reset() {
|
|
*x = Target{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Target) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Target) ProtoMessage() {}
|
|
|
|
func (x *Target) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Target.ProtoReflect.Descriptor instead.
|
|
func (*Target) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *Target) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Target) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Target) GetEnvironment() string {
|
|
if x != nil {
|
|
return x.Environment
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Target) GetDisposable() bool {
|
|
if x != nil {
|
|
return x.Disposable
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ParseRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
|
|
Headers map[string]string `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ParseRequest) Reset() {
|
|
*x = ParseRequest{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ParseRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ParseRequest) ProtoMessage() {}
|
|
|
|
func (x *ParseRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ParseRequest.ProtoReflect.Descriptor instead.
|
|
func (*ParseRequest) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *ParseRequest) GetBody() []byte {
|
|
if x != nil {
|
|
return x.Body
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ParseRequest) GetHeaders() map[string]string {
|
|
if x != nil {
|
|
return x.Headers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ParseResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ParseResponse) Reset() {
|
|
*x = ParseResponse{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ParseResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ParseResponse) ProtoMessage() {}
|
|
|
|
func (x *ParseResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ParseResponse.ProtoReflect.Descriptor instead.
|
|
func (*ParseResponse) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *ParseResponse) GetEvents() []*Event {
|
|
if x != nil {
|
|
return x.Events
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Event struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
// source_event_id is unique per source; a re-delivery repeats it.
|
|
SourceEventId string `protobuf:"bytes,2,opt,name=source_event_id,json=sourceEventId,proto3" json:"source_event_id,omitempty"`
|
|
// fields is the event's JSON, matching its type's schema.
|
|
Fields []byte `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"`
|
|
// link_key links this event to an earlier one it resolves or follows, such
|
|
// as Alertmanager's fingerprint.
|
|
LinkKey string `protobuf:"bytes,4,opt,name=link_key,json=linkKey,proto3" json:"link_key,omitempty"`
|
|
OccurredAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Event) Reset() {
|
|
*x = Event{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Event) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Event) ProtoMessage() {}
|
|
|
|
func (x *Event) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Event.ProtoReflect.Descriptor instead.
|
|
func (*Event) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *Event) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Event) GetSourceEventId() string {
|
|
if x != nil {
|
|
return x.SourceEventId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Event) GetFields() []byte {
|
|
if x != nil {
|
|
return x.Fields
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Event) GetLinkKey() string {
|
|
if x != nil {
|
|
return x.LinkKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Event) GetOccurredAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.OccurredAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ResolveRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
|
|
Input []byte `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResolveRequest) Reset() {
|
|
*x = ResolveRequest{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResolveRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResolveRequest) ProtoMessage() {}
|
|
|
|
func (x *ResolveRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ResolveRequest.ProtoReflect.Descriptor instead.
|
|
func (*ResolveRequest) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *ResolveRequest) GetAction() string {
|
|
if x != nil {
|
|
return x.Action
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResolveRequest) GetInput() []byte {
|
|
if x != nil {
|
|
return x.Input
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ResolveResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Target *Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
|
|
Effect *Effect `protobuf:"bytes,2,opt,name=effect,proto3" json:"effect,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResolveResponse) Reset() {
|
|
*x = ResolveResponse{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResolveResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResolveResponse) ProtoMessage() {}
|
|
|
|
func (x *ResolveResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ResolveResponse.ProtoReflect.Descriptor instead.
|
|
func (*ResolveResponse) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *ResolveResponse) GetTarget() *Target {
|
|
if x != nil {
|
|
return x.Target
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ResolveResponse) GetEffect() *Effect {
|
|
if x != nil {
|
|
return x.Effect
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type InvokeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
|
|
Input []byte `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
|
|
IdempotencyKey string `protobuf:"bytes,3,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"`
|
|
// digest is the host's digest of the judged action.
|
|
Digest string `protobuf:"bytes,4,opt,name=digest,proto3" json:"digest,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InvokeRequest) Reset() {
|
|
*x = InvokeRequest{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InvokeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InvokeRequest) ProtoMessage() {}
|
|
|
|
func (x *InvokeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use InvokeRequest.ProtoReflect.Descriptor instead.
|
|
func (*InvokeRequest) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *InvokeRequest) GetAction() string {
|
|
if x != nil {
|
|
return x.Action
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InvokeRequest) GetInput() []byte {
|
|
if x != nil {
|
|
return x.Input
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InvokeRequest) GetIdempotencyKey() string {
|
|
if x != nil {
|
|
return x.IdempotencyKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InvokeRequest) GetDigest() string {
|
|
if x != nil {
|
|
return x.Digest
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type InvokeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Output []byte `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
|
|
// executed_digest is the connector's digest of what it ran. A mismatch is a
|
|
// finding and tightens the action class.
|
|
ExecutedDigest string `protobuf:"bytes,2,opt,name=executed_digest,json=executedDigest,proto3" json:"executed_digest,omitempty"`
|
|
// outcome_unknown says the connector can't confirm what its effect did.
|
|
OutcomeUnknown bool `protobuf:"varint,3,opt,name=outcome_unknown,json=outcomeUnknown,proto3" json:"outcome_unknown,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InvokeResponse) Reset() {
|
|
*x = InvokeResponse{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InvokeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InvokeResponse) ProtoMessage() {}
|
|
|
|
func (x *InvokeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use InvokeResponse.ProtoReflect.Descriptor instead.
|
|
func (*InvokeResponse) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *InvokeResponse) GetOutput() []byte {
|
|
if x != nil {
|
|
return x.Output
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InvokeResponse) GetExecutedDigest() string {
|
|
if x != nil {
|
|
return x.ExecutedDigest
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InvokeResponse) GetOutcomeUnknown() bool {
|
|
if x != nil {
|
|
return x.OutcomeUnknown
|
|
}
|
|
return false
|
|
}
|
|
|
|
type LookupRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Lookup string `protobuf:"bytes,1,opt,name=lookup,proto3" json:"lookup,omitempty"`
|
|
Input []byte `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LookupRequest) Reset() {
|
|
*x = LookupRequest{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LookupRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LookupRequest) ProtoMessage() {}
|
|
|
|
func (x *LookupRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use LookupRequest.ProtoReflect.Descriptor instead.
|
|
func (*LookupRequest) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *LookupRequest) GetLookup() string {
|
|
if x != nil {
|
|
return x.Lookup
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LookupRequest) GetInput() []byte {
|
|
if x != nil {
|
|
return x.Input
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type LookupResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Output []byte `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
|
|
Found bool `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LookupResponse) Reset() {
|
|
*x = LookupResponse{}
|
|
mi := &file_connector_v1_connector_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LookupResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LookupResponse) ProtoMessage() {}
|
|
|
|
func (x *LookupResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_connector_v1_connector_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use LookupResponse.ProtoReflect.Descriptor instead.
|
|
func (*LookupResponse) Descriptor() ([]byte, []int) {
|
|
return file_connector_v1_connector_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *LookupResponse) GetOutput() []byte {
|
|
if x != nil {
|
|
return x.Output
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *LookupResponse) GetFound() bool {
|
|
if x != nil {
|
|
return x.Found
|
|
}
|
|
return false
|
|
}
|
|
|
|
var File_connector_v1_connector_proto protoreflect.FileDescriptor
|
|
|
|
const file_connector_v1_connector_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1cconnector/v1/connector.proto\x12\fconnector.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9c\x02\n" +
|
|
"\x10ConfigureRequest\x12H\n" +
|
|
"\bsettings\x18\x01 \x03(\v2,.connector.v1.ConfigureRequest.SettingsEntryR\bsettings\x12E\n" +
|
|
"\asecrets\x18\x02 \x03(\v2+.connector.v1.ConfigureRequest.SecretsEntryR\asecrets\x1a;\n" +
|
|
"\rSettingsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a:\n" +
|
|
"\fSecretsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x13\n" +
|
|
"\x11ConfigureResponse\"\x11\n" +
|
|
"\x0fDescribeRequest\"\xc7\x01\n" +
|
|
"\x10DescribeResponse\x12\x1a\n" +
|
|
"\bcontract\x18\x01 \x01(\tR\bcontract\x12/\n" +
|
|
"\x06events\x18\x02 \x03(\v2\x17.connector.v1.EventTypeR\x06events\x122\n" +
|
|
"\aactions\x18\x03 \x03(\v2\x18.connector.v1.ActionTypeR\aactions\x122\n" +
|
|
"\alookups\x18\x04 \x03(\v2\x18.connector.v1.LookupTypeR\alookups\"Y\n" +
|
|
"\tEventType\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
|
|
"\vdescription\x18\x02 \x01(\tR\vdescription\x12\x16\n" +
|
|
"\x06schema\x18\x03 \x01(\fR\x06schema\"\xb3\x01\n" +
|
|
"\n" +
|
|
"ActionType\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
|
|
"\vdescription\x18\x02 \x01(\tR\vdescription\x12!\n" +
|
|
"\finput_schema\x18\x03 \x01(\fR\vinputSchema\x12,\n" +
|
|
"\x06effect\x18\x04 \x01(\v2\x14.connector.v1.EffectR\x06effect\x12\x1e\n" +
|
|
"\n" +
|
|
"idempotent\x18\x05 \x01(\bR\n" +
|
|
"idempotent\"e\n" +
|
|
"\n" +
|
|
"LookupType\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
|
|
"\vdescription\x18\x02 \x01(\tR\vdescription\x12!\n" +
|
|
"\finput_schema\x18\x03 \x01(\fR\vinputSchema\"\x82\x01\n" +
|
|
"\x06Effect\x12\x1b\n" +
|
|
"\tread_only\x18\x01 \x01(\bR\breadOnly\x12A\n" +
|
|
"\rreversibility\x18\x02 \x01(\x0e2\x1b.connector.v1.ReversibilityR\rreversibility\x12\x18\n" +
|
|
"\asummary\x18\x03 \x01(\tR\asummary\"n\n" +
|
|
"\x06Target\x12\x12\n" +
|
|
"\x04kind\x18\x01 \x01(\tR\x04kind\x12\x0e\n" +
|
|
"\x02id\x18\x02 \x01(\tR\x02id\x12 \n" +
|
|
"\venvironment\x18\x03 \x01(\tR\venvironment\x12\x1e\n" +
|
|
"\n" +
|
|
"disposable\x18\x04 \x01(\bR\n" +
|
|
"disposable\"\xa1\x01\n" +
|
|
"\fParseRequest\x12\x12\n" +
|
|
"\x04body\x18\x01 \x01(\fR\x04body\x12A\n" +
|
|
"\aheaders\x18\x02 \x03(\v2'.connector.v1.ParseRequest.HeadersEntryR\aheaders\x1a:\n" +
|
|
"\fHeadersEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"<\n" +
|
|
"\rParseResponse\x12+\n" +
|
|
"\x06events\x18\x01 \x03(\v2\x13.connector.v1.EventR\x06events\"\xb3\x01\n" +
|
|
"\x05Event\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x12&\n" +
|
|
"\x0fsource_event_id\x18\x02 \x01(\tR\rsourceEventId\x12\x16\n" +
|
|
"\x06fields\x18\x03 \x01(\fR\x06fields\x12\x19\n" +
|
|
"\blink_key\x18\x04 \x01(\tR\alinkKey\x12;\n" +
|
|
"\voccurred_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
|
|
"occurredAt\">\n" +
|
|
"\x0eResolveRequest\x12\x16\n" +
|
|
"\x06action\x18\x01 \x01(\tR\x06action\x12\x14\n" +
|
|
"\x05input\x18\x02 \x01(\fR\x05input\"m\n" +
|
|
"\x0fResolveResponse\x12,\n" +
|
|
"\x06target\x18\x01 \x01(\v2\x14.connector.v1.TargetR\x06target\x12,\n" +
|
|
"\x06effect\x18\x02 \x01(\v2\x14.connector.v1.EffectR\x06effect\"~\n" +
|
|
"\rInvokeRequest\x12\x16\n" +
|
|
"\x06action\x18\x01 \x01(\tR\x06action\x12\x14\n" +
|
|
"\x05input\x18\x02 \x01(\fR\x05input\x12'\n" +
|
|
"\x0fidempotency_key\x18\x03 \x01(\tR\x0eidempotencyKey\x12\x16\n" +
|
|
"\x06digest\x18\x04 \x01(\tR\x06digest\"z\n" +
|
|
"\x0eInvokeResponse\x12\x16\n" +
|
|
"\x06output\x18\x01 \x01(\fR\x06output\x12'\n" +
|
|
"\x0fexecuted_digest\x18\x02 \x01(\tR\x0eexecutedDigest\x12'\n" +
|
|
"\x0foutcome_unknown\x18\x03 \x01(\bR\x0eoutcomeUnknown\"=\n" +
|
|
"\rLookupRequest\x12\x16\n" +
|
|
"\x06lookup\x18\x01 \x01(\tR\x06lookup\x12\x14\n" +
|
|
"\x05input\x18\x02 \x01(\fR\x05input\">\n" +
|
|
"\x0eLookupResponse\x12\x16\n" +
|
|
"\x06output\x18\x01 \x01(\fR\x06output\x12\x14\n" +
|
|
"\x05found\x18\x02 \x01(\bR\x05found*\x95\x01\n" +
|
|
"\rReversibility\x12\x1d\n" +
|
|
"\x19REVERSIBILITY_UNSPECIFIED\x10\x00\x12&\n" +
|
|
"\"REVERSIBILITY_UNDONE_AUTOMATICALLY\x10\x01\x12\x1d\n" +
|
|
"\x19REVERSIBILITY_RECOVERABLE\x10\x02\x12\x1e\n" +
|
|
"\x1aREVERSIBILITY_IRREVERSIBLE\x10\x032\xbf\x03\n" +
|
|
"\x10ConnectorService\x12L\n" +
|
|
"\tConfigure\x12\x1e.connector.v1.ConfigureRequest\x1a\x1f.connector.v1.ConfigureResponse\x12I\n" +
|
|
"\bDescribe\x12\x1d.connector.v1.DescribeRequest\x1a\x1e.connector.v1.DescribeResponse\x12@\n" +
|
|
"\x05Parse\x12\x1a.connector.v1.ParseRequest\x1a\x1b.connector.v1.ParseResponse\x12F\n" +
|
|
"\aResolve\x12\x1c.connector.v1.ResolveRequest\x1a\x1d.connector.v1.ResolveResponse\x12C\n" +
|
|
"\x06Invoke\x12\x1b.connector.v1.InvokeRequest\x1a\x1c.connector.v1.InvokeResponse\x12C\n" +
|
|
"\x06Lookup\x12\x1b.connector.v1.LookupRequest\x1a\x1c.connector.v1.LookupResponseB\xc4\x01\n" +
|
|
"\x10com.connector.v1B\x0eConnectorProtoP\x01ZOgithub.com/samcharles93/archie-core/internal/contracts/connector/v1;connectorv1\xa2\x02\x03CXX\xaa\x02\fConnector.V1\xca\x02\fConnector\\V1\xe2\x02\x18Connector\\V1\\GPBMetadata\xea\x02\rConnector::V1b\x06proto3"
|
|
|
|
var (
|
|
file_connector_v1_connector_proto_rawDescOnce sync.Once
|
|
file_connector_v1_connector_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_connector_v1_connector_proto_rawDescGZIP() []byte {
|
|
file_connector_v1_connector_proto_rawDescOnce.Do(func() {
|
|
file_connector_v1_connector_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_connector_v1_connector_proto_rawDesc), len(file_connector_v1_connector_proto_rawDesc)))
|
|
})
|
|
return file_connector_v1_connector_proto_rawDescData
|
|
}
|
|
|
|
var file_connector_v1_connector_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_connector_v1_connector_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
|
|
var file_connector_v1_connector_proto_goTypes = []any{
|
|
(Reversibility)(0), // 0: connector.v1.Reversibility
|
|
(*ConfigureRequest)(nil), // 1: connector.v1.ConfigureRequest
|
|
(*ConfigureResponse)(nil), // 2: connector.v1.ConfigureResponse
|
|
(*DescribeRequest)(nil), // 3: connector.v1.DescribeRequest
|
|
(*DescribeResponse)(nil), // 4: connector.v1.DescribeResponse
|
|
(*EventType)(nil), // 5: connector.v1.EventType
|
|
(*ActionType)(nil), // 6: connector.v1.ActionType
|
|
(*LookupType)(nil), // 7: connector.v1.LookupType
|
|
(*Effect)(nil), // 8: connector.v1.Effect
|
|
(*Target)(nil), // 9: connector.v1.Target
|
|
(*ParseRequest)(nil), // 10: connector.v1.ParseRequest
|
|
(*ParseResponse)(nil), // 11: connector.v1.ParseResponse
|
|
(*Event)(nil), // 12: connector.v1.Event
|
|
(*ResolveRequest)(nil), // 13: connector.v1.ResolveRequest
|
|
(*ResolveResponse)(nil), // 14: connector.v1.ResolveResponse
|
|
(*InvokeRequest)(nil), // 15: connector.v1.InvokeRequest
|
|
(*InvokeResponse)(nil), // 16: connector.v1.InvokeResponse
|
|
(*LookupRequest)(nil), // 17: connector.v1.LookupRequest
|
|
(*LookupResponse)(nil), // 18: connector.v1.LookupResponse
|
|
nil, // 19: connector.v1.ConfigureRequest.SettingsEntry
|
|
nil, // 20: connector.v1.ConfigureRequest.SecretsEntry
|
|
nil, // 21: connector.v1.ParseRequest.HeadersEntry
|
|
(*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp
|
|
}
|
|
var file_connector_v1_connector_proto_depIdxs = []int32{
|
|
19, // 0: connector.v1.ConfigureRequest.settings:type_name -> connector.v1.ConfigureRequest.SettingsEntry
|
|
20, // 1: connector.v1.ConfigureRequest.secrets:type_name -> connector.v1.ConfigureRequest.SecretsEntry
|
|
5, // 2: connector.v1.DescribeResponse.events:type_name -> connector.v1.EventType
|
|
6, // 3: connector.v1.DescribeResponse.actions:type_name -> connector.v1.ActionType
|
|
7, // 4: connector.v1.DescribeResponse.lookups:type_name -> connector.v1.LookupType
|
|
8, // 5: connector.v1.ActionType.effect:type_name -> connector.v1.Effect
|
|
0, // 6: connector.v1.Effect.reversibility:type_name -> connector.v1.Reversibility
|
|
21, // 7: connector.v1.ParseRequest.headers:type_name -> connector.v1.ParseRequest.HeadersEntry
|
|
12, // 8: connector.v1.ParseResponse.events:type_name -> connector.v1.Event
|
|
22, // 9: connector.v1.Event.occurred_at:type_name -> google.protobuf.Timestamp
|
|
9, // 10: connector.v1.ResolveResponse.target:type_name -> connector.v1.Target
|
|
8, // 11: connector.v1.ResolveResponse.effect:type_name -> connector.v1.Effect
|
|
1, // 12: connector.v1.ConnectorService.Configure:input_type -> connector.v1.ConfigureRequest
|
|
3, // 13: connector.v1.ConnectorService.Describe:input_type -> connector.v1.DescribeRequest
|
|
10, // 14: connector.v1.ConnectorService.Parse:input_type -> connector.v1.ParseRequest
|
|
13, // 15: connector.v1.ConnectorService.Resolve:input_type -> connector.v1.ResolveRequest
|
|
15, // 16: connector.v1.ConnectorService.Invoke:input_type -> connector.v1.InvokeRequest
|
|
17, // 17: connector.v1.ConnectorService.Lookup:input_type -> connector.v1.LookupRequest
|
|
2, // 18: connector.v1.ConnectorService.Configure:output_type -> connector.v1.ConfigureResponse
|
|
4, // 19: connector.v1.ConnectorService.Describe:output_type -> connector.v1.DescribeResponse
|
|
11, // 20: connector.v1.ConnectorService.Parse:output_type -> connector.v1.ParseResponse
|
|
14, // 21: connector.v1.ConnectorService.Resolve:output_type -> connector.v1.ResolveResponse
|
|
16, // 22: connector.v1.ConnectorService.Invoke:output_type -> connector.v1.InvokeResponse
|
|
18, // 23: connector.v1.ConnectorService.Lookup:output_type -> connector.v1.LookupResponse
|
|
18, // [18:24] is the sub-list for method output_type
|
|
12, // [12:18] is the sub-list for method input_type
|
|
12, // [12:12] is the sub-list for extension type_name
|
|
12, // [12:12] is the sub-list for extension extendee
|
|
0, // [0:12] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_connector_v1_connector_proto_init() }
|
|
func file_connector_v1_connector_proto_init() {
|
|
if File_connector_v1_connector_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_connector_v1_connector_proto_rawDesc), len(file_connector_v1_connector_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 21,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_connector_v1_connector_proto_goTypes,
|
|
DependencyIndexes: file_connector_v1_connector_proto_depIdxs,
|
|
EnumInfos: file_connector_v1_connector_proto_enumTypes,
|
|
MessageInfos: file_connector_v1_connector_proto_msgTypes,
|
|
}.Build()
|
|
File_connector_v1_connector_proto = out.File
|
|
file_connector_v1_connector_proto_goTypes = nil
|
|
file_connector_v1_connector_proto_depIdxs = nil
|
|
}
|