pb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Destination_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Destination",
	HandlerType: (*DestinationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Configure",
			Handler:    _Destination_Configure_Handler,
		},
		{
			MethodName: "GetExampleConfig",
			Handler:    _Destination_GetExampleConfig_Handler,
		},
		{
			MethodName: "CreateTables",
			Handler:    _Destination_CreateTables_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Save",
			Handler:       _Destination_Save_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "internal/pb/destination.proto",
}

Destination_ServiceDesc is the grpc.ServiceDesc for Destination 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_internal_pb_base_proto protoreflect.FileDescriptor
View Source
var File_internal_pb_destination_proto protoreflect.FileDescriptor
View Source
var File_internal_pb_source_proto protoreflect.FileDescriptor
View Source
var Source_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Source",
	HandlerType: (*SourceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTables",
			Handler:    _Source_GetTables_Handler,
		},
		{
			MethodName: "GetExampleConfig",
			Handler:    _Source_GetExampleConfig_Handler,
		},
		{
			MethodName: "Configure",
			Handler:    _Source_Configure_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Fetch",
			Handler:       _Source_Fetch_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "internal/pb/source.proto",
}

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

Functions

func RegisterDestinationServer

func RegisterDestinationServer(s grpc.ServiceRegistrar, srv DestinationServer)

func RegisterSourceServer

func RegisterSourceServer(s grpc.ServiceRegistrar, srv SourceServer)

Types

type Configure

type Configure struct {
	// contains filtered or unexported fields
}

func (*Configure) Descriptor deprecated

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

Deprecated: Use Configure.ProtoReflect.Descriptor instead.

func (*Configure) ProtoMessage

func (*Configure) ProtoMessage()

func (*Configure) ProtoReflect

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

func (*Configure) Reset

func (x *Configure) Reset()

func (*Configure) String

func (x *Configure) String() string

type Configure_Request

type Configure_Request struct {

	// Holds information such as credentials, regions, accounts, etc'
	// Marshalled spec.SourceSpec or spec.DestinationSpec
	Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*Configure_Request) Descriptor deprecated

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

Deprecated: Use Configure_Request.ProtoReflect.Descriptor instead.

func (*Configure_Request) GetConfig

func (x *Configure_Request) GetConfig() []byte

func (*Configure_Request) ProtoMessage

func (*Configure_Request) ProtoMessage()

func (*Configure_Request) ProtoReflect

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

func (*Configure_Request) Reset

func (x *Configure_Request) Reset()

func (*Configure_Request) String

func (x *Configure_Request) String() string

type Configure_Response

type Configure_Response struct {
	Error            string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	JsonschemaResult []byte `protobuf:"bytes,2,opt,name=jsonschema_result,json=jsonschemaResult,proto3" json:"jsonschema_result,omitempty"`
	// contains filtered or unexported fields
}

func (*Configure_Response) Descriptor deprecated

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

Deprecated: Use Configure_Response.ProtoReflect.Descriptor instead.

func (*Configure_Response) GetError

func (x *Configure_Response) GetError() string

func (*Configure_Response) GetJsonschemaResult

func (x *Configure_Response) GetJsonschemaResult() []byte

func (*Configure_Response) ProtoMessage

func (*Configure_Response) ProtoMessage()

func (*Configure_Response) ProtoReflect

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

func (*Configure_Response) Reset

func (x *Configure_Response) Reset()

func (*Configure_Response) String

func (x *Configure_Response) String() string

type CreateTables

type CreateTables struct {
	// contains filtered or unexported fields
}

func (*CreateTables) Descriptor deprecated

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

Deprecated: Use CreateTables.ProtoReflect.Descriptor instead.

func (*CreateTables) ProtoMessage

func (*CreateTables) ProtoMessage()

func (*CreateTables) ProtoReflect

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

func (*CreateTables) Reset

func (x *CreateTables) Reset()

func (*CreateTables) String

func (x *CreateTables) String() string

type CreateTables_Request

type CreateTables_Request struct {

	// marshalled []*schema.Table
	Tables []byte `protobuf:"bytes,1,opt,name=tables,proto3" json:"tables,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTables_Request) Descriptor deprecated

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

Deprecated: Use CreateTables_Request.ProtoReflect.Descriptor instead.

func (*CreateTables_Request) GetTables

func (x *CreateTables_Request) GetTables() []byte

func (*CreateTables_Request) ProtoMessage

func (*CreateTables_Request) ProtoMessage()

func (*CreateTables_Request) ProtoReflect

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

func (*CreateTables_Request) Reset

func (x *CreateTables_Request) Reset()

func (*CreateTables_Request) String

func (x *CreateTables_Request) String() string

type CreateTables_Response

type CreateTables_Response struct {
	// contains filtered or unexported fields
}

func (*CreateTables_Response) Descriptor deprecated

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

Deprecated: Use CreateTables_Response.ProtoReflect.Descriptor instead.

func (*CreateTables_Response) ProtoMessage

func (*CreateTables_Response) ProtoMessage()

func (*CreateTables_Response) ProtoReflect

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

func (*CreateTables_Response) Reset

func (x *CreateTables_Response) Reset()

func (*CreateTables_Response) String

func (x *CreateTables_Response) String() string

type DestinationClient

type DestinationClient interface {
	Configure(ctx context.Context, in *Configure_Request, opts ...grpc.CallOption) (*Configure_Response, error)
	// Get an example configuration for the source plugin
	GetExampleConfig(ctx context.Context, in *GetExampleConfig_Request, opts ...grpc.CallOption) (*GetExampleConfig_Response, error)
	// Save resources
	Save(ctx context.Context, opts ...grpc.CallOption) (Destination_SaveClient, error)
	// Create tables
	CreateTables(ctx context.Context, in *CreateTables_Request, opts ...grpc.CallOption) (*CreateTables_Response, error)
}

DestinationClient is the client API for Destination 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 DestinationServer

type DestinationServer interface {
	Configure(context.Context, *Configure_Request) (*Configure_Response, error)
	// Get an example configuration for the source plugin
	GetExampleConfig(context.Context, *GetExampleConfig_Request) (*GetExampleConfig_Response, error)
	// Save resources
	Save(Destination_SaveServer) error
	// Create tables
	CreateTables(context.Context, *CreateTables_Request) (*CreateTables_Response, error)
	// contains filtered or unexported methods
}

DestinationServer is the server API for Destination service. All implementations must embed UnimplementedDestinationServer for forward compatibility

type Destination_SaveClient

type Destination_SaveClient interface {
	Send(*Save_Request) error
	CloseAndRecv() (*Save_Response, error)
	grpc.ClientStream
}

type Destination_SaveServer

type Destination_SaveServer interface {
	SendAndClose(*Save_Response) error
	Recv() (*Save_Request, error)
	grpc.ServerStream
}

type Fetch

type Fetch struct {
	// contains filtered or unexported fields
}

func (*Fetch) Descriptor deprecated

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

Deprecated: Use Fetch.ProtoReflect.Descriptor instead.

func (*Fetch) ProtoMessage

func (*Fetch) ProtoMessage()

func (*Fetch) ProtoReflect

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

func (*Fetch) Reset

func (x *Fetch) Reset()

func (*Fetch) String

func (x *Fetch) String() string

type Fetch_Request

type Fetch_Request struct {
	// contains filtered or unexported fields
}

func (*Fetch_Request) Descriptor deprecated

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

Deprecated: Use Fetch_Request.ProtoReflect.Descriptor instead.

func (*Fetch_Request) ProtoMessage

func (*Fetch_Request) ProtoMessage()

func (*Fetch_Request) ProtoReflect

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

func (*Fetch_Request) Reset

func (x *Fetch_Request) Reset()

func (*Fetch_Request) String

func (x *Fetch_Request) String() string

type Fetch_Response

type Fetch_Response struct {

	// marshalled *schema.Resources
	Resource []byte `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*Fetch_Response) Descriptor deprecated

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

Deprecated: Use Fetch_Response.ProtoReflect.Descriptor instead.

func (*Fetch_Response) GetResource

func (x *Fetch_Response) GetResource() []byte

func (*Fetch_Response) ProtoMessage

func (*Fetch_Response) ProtoMessage()

func (*Fetch_Response) ProtoReflect

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

func (*Fetch_Response) Reset

func (x *Fetch_Response) Reset()

func (*Fetch_Response) String

func (x *Fetch_Response) String() string

type GetExampleConfig

type GetExampleConfig struct {
	// contains filtered or unexported fields
}

func (*GetExampleConfig) Descriptor deprecated

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

Deprecated: Use GetExampleConfig.ProtoReflect.Descriptor instead.

func (*GetExampleConfig) ProtoMessage

func (*GetExampleConfig) ProtoMessage()

func (*GetExampleConfig) ProtoReflect

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

func (*GetExampleConfig) Reset

func (x *GetExampleConfig) Reset()

func (*GetExampleConfig) String

func (x *GetExampleConfig) String() string

type GetExampleConfig_Request

type GetExampleConfig_Request struct {
	// contains filtered or unexported fields
}

func (*GetExampleConfig_Request) Descriptor deprecated

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

Deprecated: Use GetExampleConfig_Request.ProtoReflect.Descriptor instead.

func (*GetExampleConfig_Request) ProtoMessage

func (*GetExampleConfig_Request) ProtoMessage()

func (*GetExampleConfig_Request) ProtoReflect

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

func (*GetExampleConfig_Request) Reset

func (x *GetExampleConfig_Request) Reset()

func (*GetExampleConfig_Request) String

func (x *GetExampleConfig_Request) String() string

type GetExampleConfig_Response

type GetExampleConfig_Response struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Config  string `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*GetExampleConfig_Response) Descriptor deprecated

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

Deprecated: Use GetExampleConfig_Response.ProtoReflect.Descriptor instead.

func (*GetExampleConfig_Response) GetConfig

func (x *GetExampleConfig_Response) GetConfig() string

func (*GetExampleConfig_Response) GetName

func (x *GetExampleConfig_Response) GetName() string

func (*GetExampleConfig_Response) GetVersion

func (x *GetExampleConfig_Response) GetVersion() string

func (*GetExampleConfig_Response) ProtoMessage

func (*GetExampleConfig_Response) ProtoMessage()

func (*GetExampleConfig_Response) ProtoReflect

func (*GetExampleConfig_Response) Reset

func (x *GetExampleConfig_Response) Reset()

func (*GetExampleConfig_Response) String

func (x *GetExampleConfig_Response) String() string

type GetTables

type GetTables struct {
	// contains filtered or unexported fields
}

func (*GetTables) Descriptor deprecated

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

Deprecated: Use GetTables.ProtoReflect.Descriptor instead.

func (*GetTables) ProtoMessage

func (*GetTables) ProtoMessage()

func (*GetTables) ProtoReflect

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

func (*GetTables) Reset

func (x *GetTables) Reset()

func (*GetTables) String

func (x *GetTables) String() string

type GetTables_Request

type GetTables_Request struct {
	// contains filtered or unexported fields
}

func (*GetTables_Request) Descriptor deprecated

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

Deprecated: Use GetTables_Request.ProtoReflect.Descriptor instead.

func (*GetTables_Request) ProtoMessage

func (*GetTables_Request) ProtoMessage()

func (*GetTables_Request) ProtoReflect

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

func (*GetTables_Request) Reset

func (x *GetTables_Request) Reset()

func (*GetTables_Request) String

func (x *GetTables_Request) String() string

type GetTables_Response

type GetTables_Response struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Marshalled []*schema.Table
	Tables []byte `protobuf:"bytes,3,opt,name=tables,proto3" json:"tables,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTables_Response) Descriptor deprecated

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

Deprecated: Use GetTables_Response.ProtoReflect.Descriptor instead.

func (*GetTables_Response) GetName

func (x *GetTables_Response) GetName() string

func (*GetTables_Response) GetTables

func (x *GetTables_Response) GetTables() []byte

func (*GetTables_Response) GetVersion

func (x *GetTables_Response) GetVersion() string

func (*GetTables_Response) ProtoMessage

func (*GetTables_Response) ProtoMessage()

func (*GetTables_Response) ProtoReflect

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

func (*GetTables_Response) Reset

func (x *GetTables_Response) Reset()

func (*GetTables_Response) String

func (x *GetTables_Response) String() string

type Save

type Save struct {
	// contains filtered or unexported fields
}

func (*Save) Descriptor deprecated

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

Deprecated: Use Save.ProtoReflect.Descriptor instead.

func (*Save) ProtoMessage

func (*Save) ProtoMessage()

func (*Save) ProtoReflect

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

func (*Save) Reset

func (x *Save) Reset()

func (*Save) String

func (x *Save) String() string

type Save_Request

type Save_Request struct {

	// marshalled []*schema.Resources
	Resources []byte `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*Save_Request) Descriptor deprecated

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

Deprecated: Use Save_Request.ProtoReflect.Descriptor instead.

func (*Save_Request) GetResources

func (x *Save_Request) GetResources() []byte

func (*Save_Request) ProtoMessage

func (*Save_Request) ProtoMessage()

func (*Save_Request) ProtoReflect

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

func (*Save_Request) Reset

func (x *Save_Request) Reset()

func (*Save_Request) String

func (x *Save_Request) String() string

type Save_Response

type Save_Response struct {

	// marshalled goschemajson.Result
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*Save_Response) Descriptor deprecated

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

Deprecated: Use Save_Response.ProtoReflect.Descriptor instead.

func (*Save_Response) GetError

func (x *Save_Response) GetError() string

func (*Save_Response) ProtoMessage

func (*Save_Response) ProtoMessage()

func (*Save_Response) ProtoReflect

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

func (*Save_Response) Reset

func (x *Save_Response) Reset()

func (*Save_Response) String

func (x *Save_Response) String() string

type SourceClient

type SourceClient interface {
	// Get all tables the source plugin supports
	GetTables(ctx context.Context, in *GetTables_Request, opts ...grpc.CallOption) (*GetTables_Response, error)
	// Get an example configuration for the source plugin
	GetExampleConfig(ctx context.Context, in *GetExampleConfig_Request, opts ...grpc.CallOption) (*GetExampleConfig_Response, error)
	// Configure the source plugin with the given spec
	Configure(ctx context.Context, in *Configure_Request, opts ...grpc.CallOption) (*Configure_Response, error)
	// Fetch resources
	Fetch(ctx context.Context, in *Fetch_Request, opts ...grpc.CallOption) (Source_FetchClient, error)
}

SourceClient is the client API for Source 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 NewSourceClient

func NewSourceClient(cc grpc.ClientConnInterface) SourceClient

type SourceServer

type SourceServer interface {
	// Get all tables the source plugin supports
	GetTables(context.Context, *GetTables_Request) (*GetTables_Response, error)
	// Get an example configuration for the source plugin
	GetExampleConfig(context.Context, *GetExampleConfig_Request) (*GetExampleConfig_Response, error)
	// Configure the source plugin with the given spec
	Configure(context.Context, *Configure_Request) (*Configure_Response, error)
	// Fetch resources
	Fetch(*Fetch_Request, Source_FetchServer) error
	// contains filtered or unexported methods
}

SourceServer is the server API for Source service. All implementations must embed UnimplementedSourceServer for forward compatibility

type Source_FetchClient

type Source_FetchClient interface {
	Recv() (*Fetch_Response, error)
	grpc.ClientStream
}

type Source_FetchServer

type Source_FetchServer interface {
	Send(*Fetch_Response) error
	grpc.ServerStream
}

type UnimplementedDestinationServer

type UnimplementedDestinationServer struct {
}

UnimplementedDestinationServer must be embedded to have forward compatible implementations.

func (UnimplementedDestinationServer) Configure

func (UnimplementedDestinationServer) CreateTables

func (UnimplementedDestinationServer) GetExampleConfig

func (UnimplementedDestinationServer) Save

type UnimplementedSourceServer

type UnimplementedSourceServer struct {
}

UnimplementedSourceServer must be embedded to have forward compatible implementations.

func (UnimplementedSourceServer) Configure

func (UnimplementedSourceServer) Fetch

func (UnimplementedSourceServer) GetTables

type UnsafeDestinationServer

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

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

type UnsafeSourceServer

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

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

Jump to

Keyboard shortcuts

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