pluginv2

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginInfo_Get_FullMethodName         = "/pluginv2.PluginInfo/Get"
	PluginInfo_CheckHealth_FullMethodName = "/pluginv2.PluginInfo/CheckHealth"
)
View Source
const (
	Resource_CallResource_FullMethodName = "/pluginv2.Resource/CallResource"
)

Variables

View Source
var (
	CheckHealthResponse_HealthStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "OK",
		2: "ERROR",
	}
	CheckHealthResponse_HealthStatus_value = map[string]int32{
		"UNKNOWN": 0,
		"OK":      1,
		"ERROR":   2,
	}
)
View Source
var File_backend_proto protoreflect.FileDescriptor
View Source
var PluginInfo_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pluginv2.PluginInfo",
	HandlerType: (*PluginInfoServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _PluginInfo_Get_Handler,
		},
		{
			MethodName: "CheckHealth",
			Handler:    _PluginInfo_CheckHealth_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "backend.proto",
}
View Source
var Resource_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pluginv2.Resource",
	HandlerType: (*ResourceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "CallResource",
			Handler:       _Resource_CallResource_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "backend.proto",
}

Functions

func RegisterPluginInfoServer

func RegisterPluginInfoServer(s grpc.ServiceRegistrar, srv PluginInfoServer)

func RegisterResourceServer

func RegisterResourceServer(s grpc.ServiceRegistrar, srv ResourceServer)

Types

type AppInstanceSettings

type AppInstanceSettings struct {
	JsonData                []byte            `protobuf:"bytes,3,opt,name=jsonData,proto3" json:"jsonData,omitempty"`
	DecryptedSecureJsonData map[string]string `` /* 187-byte string literal not displayed */
	LastUpdatedMS           int64             `protobuf:"varint,5,opt,name=lastUpdatedMS,proto3" json:"lastUpdatedMS,omitempty"`
	// contains filtered or unexported fields
}

func (*AppInstanceSettings) Descriptor

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

func (*AppInstanceSettings) GetDecryptedSecureJsonData

func (x *AppInstanceSettings) GetDecryptedSecureJsonData() map[string]string

func (*AppInstanceSettings) GetJsonData

func (x *AppInstanceSettings) GetJsonData() []byte

func (*AppInstanceSettings) GetLastUpdatedMS

func (x *AppInstanceSettings) GetLastUpdatedMS() int64

func (*AppInstanceSettings) ProtoMessage

func (*AppInstanceSettings) ProtoMessage()

func (*AppInstanceSettings) ProtoReflect

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

func (*AppInstanceSettings) Reset

func (x *AppInstanceSettings) Reset()

func (*AppInstanceSettings) String

func (x *AppInstanceSettings) String() string

type CallResourceRequest

type CallResourceRequest struct {
	PluginContext *PluginContext         `protobuf:"bytes,1,opt,name=pluginContext,proto3" json:"pluginContext,omitempty"`
	Path          string                 `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Method        string                 `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	Url           string                 `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	Headers       map[string]*StringList `` /* 155-byte string literal not displayed */
	Body          []byte                 `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*CallResourceRequest) Descriptor

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

func (*CallResourceRequest) GetBody

func (x *CallResourceRequest) GetBody() []byte

func (*CallResourceRequest) GetHeaders

func (x *CallResourceRequest) GetHeaders() map[string]*StringList

func (*CallResourceRequest) GetMethod

func (x *CallResourceRequest) GetMethod() string

func (*CallResourceRequest) GetPath

func (x *CallResourceRequest) GetPath() string

func (*CallResourceRequest) GetPluginContext

func (x *CallResourceRequest) GetPluginContext() *PluginContext

func (*CallResourceRequest) GetUrl

func (x *CallResourceRequest) GetUrl() string

func (*CallResourceRequest) ProtoMessage

func (*CallResourceRequest) ProtoMessage()

func (*CallResourceRequest) ProtoReflect

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

func (*CallResourceRequest) Reset

func (x *CallResourceRequest) Reset()

func (*CallResourceRequest) String

func (x *CallResourceRequest) String() string

type CallResourceResponse

type CallResourceResponse struct {
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`

	Headers map[string]*StringList `` /* 155-byte string literal not displayed */

	Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*CallResourceResponse) Descriptor

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

func (*CallResourceResponse) GetBody

func (x *CallResourceResponse) GetBody() []byte

func (*CallResourceResponse) GetCode

func (x *CallResourceResponse) GetCode() int32

func (*CallResourceResponse) GetHeaders

func (x *CallResourceResponse) GetHeaders() map[string]*StringList

func (*CallResourceResponse) ProtoMessage

func (*CallResourceResponse) ProtoMessage()

func (*CallResourceResponse) ProtoReflect

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

func (*CallResourceResponse) Reset

func (x *CallResourceResponse) Reset()

func (*CallResourceResponse) String

func (x *CallResourceResponse) String() string

type CheckHealthRequest

type CheckHealthRequest struct {
	PluginContext *PluginContext `protobuf:"bytes,1,opt,name=pluginContext,proto3" json:"pluginContext,omitempty"`

	Headers map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CheckHealthRequest) Descriptor

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

func (*CheckHealthRequest) GetHeaders

func (x *CheckHealthRequest) GetHeaders() map[string]string

func (*CheckHealthRequest) GetPluginContext

func (x *CheckHealthRequest) GetPluginContext() *PluginContext

func (*CheckHealthRequest) ProtoMessage

func (*CheckHealthRequest) ProtoMessage()

func (*CheckHealthRequest) ProtoReflect

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

func (*CheckHealthRequest) Reset

func (x *CheckHealthRequest) Reset()

func (*CheckHealthRequest) String

func (x *CheckHealthRequest) String() string

type CheckHealthResponse

type CheckHealthResponse struct {
	Status      CheckHealthResponse_HealthStatus `protobuf:"varint,1,opt,name=status,proto3,enum=pluginv2.CheckHealthResponse_HealthStatus" json:"status,omitempty"`
	Message     string                           `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	JsonDetails []byte                           `protobuf:"bytes,3,opt,name=jsonDetails,proto3" json:"jsonDetails,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckHealthResponse) Descriptor

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

func (*CheckHealthResponse) GetJsonDetails

func (x *CheckHealthResponse) GetJsonDetails() []byte

func (*CheckHealthResponse) GetMessage

func (x *CheckHealthResponse) GetMessage() string

func (*CheckHealthResponse) GetStatus

func (*CheckHealthResponse) ProtoMessage

func (*CheckHealthResponse) ProtoMessage()

func (*CheckHealthResponse) ProtoReflect

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

func (*CheckHealthResponse) Reset

func (x *CheckHealthResponse) Reset()

func (*CheckHealthResponse) String

func (x *CheckHealthResponse) String() string

type CheckHealthResponse_HealthStatus

type CheckHealthResponse_HealthStatus int32
const (
	CheckHealthResponse_UNKNOWN CheckHealthResponse_HealthStatus = 0
	CheckHealthResponse_OK      CheckHealthResponse_HealthStatus = 1
	CheckHealthResponse_ERROR   CheckHealthResponse_HealthStatus = 2
)

func (CheckHealthResponse_HealthStatus) Descriptor

func (CheckHealthResponse_HealthStatus) Enum

func (CheckHealthResponse_HealthStatus) EnumDescriptor

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

func (CheckHealthResponse_HealthStatus) Number

func (CheckHealthResponse_HealthStatus) String

func (CheckHealthResponse_HealthStatus) Type

type DataSourceInstanceSettings

type DataSourceInstanceSettings struct {
	Id                      int64             `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                    string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Url                     string            `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	User                    string            `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
	Database                string            `protobuf:"bytes,5,opt,name=database,proto3" json:"database,omitempty"`
	BasicAuthEnabled        bool              `protobuf:"varint,6,opt,name=basicAuthEnabled,proto3" json:"basicAuthEnabled,omitempty"`
	BasicAuthUser           string            `protobuf:"bytes,7,opt,name=basicAuthUser,proto3" json:"basicAuthUser,omitempty"`
	JsonData                []byte            `protobuf:"bytes,8,opt,name=jsonData,proto3" json:"jsonData,omitempty"`
	DecryptedSecureJsonData map[string]string `` /* 187-byte string literal not displayed */
	LastUpdatedMS           int64             `protobuf:"varint,10,opt,name=lastUpdatedMS,proto3" json:"lastUpdatedMS,omitempty"`
	Uid                     string            `protobuf:"bytes,11,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*DataSourceInstanceSettings) Descriptor

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

func (*DataSourceInstanceSettings) GetBasicAuthEnabled

func (x *DataSourceInstanceSettings) GetBasicAuthEnabled() bool

func (*DataSourceInstanceSettings) GetBasicAuthUser

func (x *DataSourceInstanceSettings) GetBasicAuthUser() string

func (*DataSourceInstanceSettings) GetDatabase

func (x *DataSourceInstanceSettings) GetDatabase() string

func (*DataSourceInstanceSettings) GetDecryptedSecureJsonData

func (x *DataSourceInstanceSettings) GetDecryptedSecureJsonData() map[string]string

func (*DataSourceInstanceSettings) GetId

func (x *DataSourceInstanceSettings) GetId() int64

func (*DataSourceInstanceSettings) GetJsonData

func (x *DataSourceInstanceSettings) GetJsonData() []byte

func (*DataSourceInstanceSettings) GetLastUpdatedMS

func (x *DataSourceInstanceSettings) GetLastUpdatedMS() int64

func (*DataSourceInstanceSettings) GetName

func (x *DataSourceInstanceSettings) GetName() string

func (*DataSourceInstanceSettings) GetUid

func (x *DataSourceInstanceSettings) GetUid() string

func (*DataSourceInstanceSettings) GetUrl

func (x *DataSourceInstanceSettings) GetUrl() string

func (*DataSourceInstanceSettings) GetUser

func (x *DataSourceInstanceSettings) GetUser() string

func (*DataSourceInstanceSettings) ProtoMessage

func (*DataSourceInstanceSettings) ProtoMessage()

func (*DataSourceInstanceSettings) ProtoReflect

func (*DataSourceInstanceSettings) Reset

func (x *DataSourceInstanceSettings) Reset()

func (*DataSourceInstanceSettings) String

func (x *DataSourceInstanceSettings) String() string

type PluginContext

type PluginContext struct {
	OrgId int64 `protobuf:"varint,1,opt,name=orgId,proto3" json:"orgId,omitempty"`

	PluginId string `protobuf:"bytes,2,opt,name=pluginId,proto3" json:"pluginId,omitempty"`

	User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`

	AppInstanceSettings *AppInstanceSettings `protobuf:"bytes,4,opt,name=appInstanceSettings,proto3" json:"appInstanceSettings,omitempty"`

	DataSourceInstanceSettings *DataSourceInstanceSettings `protobuf:"bytes,5,opt,name=dataSourceInstanceSettings,proto3" json:"dataSourceInstanceSettings,omitempty"`
	// contains filtered or unexported fields
}

func (*PluginContext) Descriptor

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

func (*PluginContext) GetAppInstanceSettings

func (x *PluginContext) GetAppInstanceSettings() *AppInstanceSettings

func (*PluginContext) GetDataSourceInstanceSettings

func (x *PluginContext) GetDataSourceInstanceSettings() *DataSourceInstanceSettings

func (*PluginContext) GetOrgId

func (x *PluginContext) GetOrgId() int64

func (*PluginContext) GetPluginId

func (x *PluginContext) GetPluginId() string

func (*PluginContext) GetUser

func (x *PluginContext) GetUser() *User

func (*PluginContext) ProtoMessage

func (*PluginContext) ProtoMessage()

func (*PluginContext) ProtoReflect

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

func (*PluginContext) Reset

func (x *PluginContext) Reset()

func (*PluginContext) String

func (x *PluginContext) String() string

type PluginInfoClient

type PluginInfoClient interface {
	Get(ctx context.Context, in *PluginInfoGetReq, opts ...grpc.CallOption) (*PluginInfoGetRes, error)
	CheckHealth(ctx context.Context, in *CheckHealthRequest, opts ...grpc.CallOption) (*CheckHealthResponse, error)
}

func NewPluginInfoClient

func NewPluginInfoClient(cc grpc.ClientConnInterface) PluginInfoClient

type PluginInfoGetReq

type PluginInfoGetReq struct {
	PluginContext *PluginContext `protobuf:"bytes,1,opt,name=pluginContext,proto3" json:"pluginContext,omitempty"`
	// contains filtered or unexported fields
}

func (*PluginInfoGetReq) Descriptor

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

func (*PluginInfoGetReq) GetPluginContext

func (x *PluginInfoGetReq) GetPluginContext() *PluginContext

func (*PluginInfoGetReq) ProtoMessage

func (*PluginInfoGetReq) ProtoMessage()

func (*PluginInfoGetReq) ProtoReflect

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

func (*PluginInfoGetReq) Reset

func (x *PluginInfoGetReq) Reset()

func (*PluginInfoGetReq) String

func (x *PluginInfoGetReq) String() string

type PluginInfoGetRes

type PluginInfoGetRes struct {
	PluginID      string `protobuf:"bytes,1,opt,name=pluginID,proto3" json:"pluginID,omitempty"`
	PluginVersion string `protobuf:"bytes,2,opt,name=pluginVersion,proto3" json:"pluginVersion,omitempty"`
	// contains filtered or unexported fields
}

func (*PluginInfoGetRes) Descriptor

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

func (*PluginInfoGetRes) GetPluginID

func (x *PluginInfoGetRes) GetPluginID() string

func (*PluginInfoGetRes) GetPluginVersion

func (x *PluginInfoGetRes) GetPluginVersion() string

func (*PluginInfoGetRes) ProtoMessage

func (*PluginInfoGetRes) ProtoMessage()

func (*PluginInfoGetRes) ProtoReflect

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

func (*PluginInfoGetRes) Reset

func (x *PluginInfoGetRes) Reset()

func (*PluginInfoGetRes) String

func (x *PluginInfoGetRes) String() string

type PluginInfoServer

type PluginInfoServer interface {
	Get(context.Context, *PluginInfoGetReq) (*PluginInfoGetRes, error)
	CheckHealth(context.Context, *CheckHealthRequest) (*CheckHealthResponse, error)
}

type ResourceClient

type ResourceClient interface {
	CallResource(ctx context.Context, in *CallResourceRequest, opts ...grpc.CallOption) (Resource_CallResourceClient, error)
}

func NewResourceClient

func NewResourceClient(cc grpc.ClientConnInterface) ResourceClient

type ResourceServer

type ResourceServer interface {
	CallResource(*CallResourceRequest, Resource_CallResourceServer) error
}

type Resource_CallResourceClient

type Resource_CallResourceClient interface {
	Recv() (*CallResourceResponse, error)
	grpc.ClientStream
}

type Resource_CallResourceServer

type Resource_CallResourceServer interface {
	Send(*CallResourceResponse) error
	grpc.ServerStream
}

type StringList

type StringList struct {
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*StringList) Descriptor

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

func (*StringList) GetValues

func (x *StringList) GetValues() []string

func (*StringList) ProtoMessage

func (*StringList) ProtoMessage()

func (*StringList) ProtoReflect

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

func (*StringList) Reset

func (x *StringList) Reset()

func (*StringList) String

func (x *StringList) String() string

type UnimplementedPluginInfoServer

type UnimplementedPluginInfoServer struct {
}

func (UnimplementedPluginInfoServer) CheckHealth

func (UnimplementedPluginInfoServer) Get

type UnimplementedResourceServer

type UnimplementedResourceServer struct {
}

func (UnimplementedResourceServer) CallResource

type UnsafePluginInfoServer

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

type UnsafeResourceServer

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

type User

type User struct {
	Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Role  string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor

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

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetLogin

func (x *User) GetLogin() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetRole

func (x *User) GetRole() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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