proto

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExportCommand_Export_FullMethodName = "/plugin.ExportCommand/Export"
	ExportCommand_Info_FullMethodName   = "/plugin.ExportCommand/Info"
	ExportCommand_Help_FullMethodName   = "/plugin.ExportCommand/Help"
)
View Source
const (
	ExportPlugin_Export_FullMethodName = "/plugin.ExportPlugin/Export"
	ExportPlugin_Help_FullMethodName   = "/plugin.ExportPlugin/Help"
	ExportPlugin_Info_FullMethodName   = "/plugin.ExportPlugin/Info"
)

Variables

View Source
var ExportCommand_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "plugin.ExportCommand",
	HandlerType: (*ExportCommandServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Export",
			Handler:    _ExportCommand_Export_Handler,
		},
		{
			MethodName: "Info",
			Handler:    _ExportCommand_Info_Handler,
		},
		{
			MethodName: "Help",
			Handler:    _ExportCommand_Help_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin.proto",
}

ExportCommand_ServiceDesc is the grpc.ServiceDesc for ExportCommand 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 ExportPlugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "plugin.ExportPlugin",
	HandlerType: (*ExportPluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Export",
			Handler:    _ExportPlugin_Export_Handler,
		},
		{
			MethodName: "Help",
			Handler:    _ExportPlugin_Help_Handler,
		},
		{
			MethodName: "Info",
			Handler:    _ExportPlugin_Info_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin.proto",
}

ExportPlugin_ServiceDesc is the grpc.ServiceDesc for ExportPlugin 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_plugin_proto protoreflect.FileDescriptor

Functions

func RegisterExportCommandServer

func RegisterExportCommandServer(s grpc.ServiceRegistrar, srv ExportCommandServer)

func RegisterExportPluginServer

func RegisterExportPluginServer(s grpc.ServiceRegistrar, srv ExportPluginServer)

Types

type CommandInfo

type CommandInfo struct {
	Name        string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Description string   `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
	Summary     string   `protobuf:"bytes,3,opt,name=Summary,proto3" json:"Summary,omitempty"`
	Version     *Version `protobuf:"bytes,4,opt,name=Version,proto3" json:"Version,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandInfo) Descriptor deprecated

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

Deprecated: Use CommandInfo.ProtoReflect.Descriptor instead.

func (*CommandInfo) GetDescription

func (x *CommandInfo) GetDescription() string

func (*CommandInfo) GetName

func (x *CommandInfo) GetName() string

func (*CommandInfo) GetSummary

func (x *CommandInfo) GetSummary() string

func (*CommandInfo) GetVersion

func (x *CommandInfo) GetVersion() *Version

func (*CommandInfo) ProtoMessage

func (*CommandInfo) ProtoMessage()

func (*CommandInfo) ProtoReflect

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

func (*CommandInfo) Reset

func (x *CommandInfo) Reset()

func (*CommandInfo) String

func (x *CommandInfo) String() string

type ExportCommandClient

type ExportCommandClient interface {
	Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ExportResponse, error)
	Info(ctx context.Context, in *NoArgs, opts ...grpc.CallOption) (*CommandInfo, error)
	Help(ctx context.Context, in *NoArgs, opts ...grpc.CallOption) (*SingleString, error)
}

ExportCommandClient is the client API for ExportCommand service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ExportCommandServer

type ExportCommandServer interface {
	Export(context.Context, *ExportRequest) (*ExportResponse, error)
	Info(context.Context, *NoArgs) (*CommandInfo, error)
	Help(context.Context, *NoArgs) (*SingleString, error)
	// contains filtered or unexported methods
}

ExportCommandServer is the server API for ExportCommand service. All implementations must embed UnimplementedExportCommandServer for forward compatibility

type ExportPluginClient

type ExportPluginClient interface {
	Export(ctx context.Context, in *PluginRequest, opts ...grpc.CallOption) (*ExportResponse, error)
	Help(ctx context.Context, in *SingleString, opts ...grpc.CallOption) (*SingleString, error)
	Info(ctx context.Context, in *NoArgs, opts ...grpc.CallOption) (*PluginInfo, error)
}

ExportPluginClient is the client API for ExportPlugin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ExportPluginServer

type ExportPluginServer interface {
	Export(context.Context, *PluginRequest) (*ExportResponse, error)
	Help(context.Context, *SingleString) (*SingleString, error)
	Info(context.Context, *NoArgs) (*PluginInfo, error)
	// contains filtered or unexported methods
}

ExportPluginServer is the server API for ExportPlugin service. All implementations must embed UnimplementedExportPluginServer for forward compatibility

type ExportRequest

type ExportRequest struct {
	OutputDirectory    string   `protobuf:"bytes,1,opt,name=OutputDirectory,proto3" json:"OutputDirectory,omitempty"`
	SkipProviderOutput bool     `protobuf:"varint,2,opt,name=SkipProviderOutput,proto3" json:"SkipProviderOutput,omitempty"`
	PluginArgs         []string `protobuf:"bytes,3,rep,name=PluginArgs,proto3" json:"PluginArgs,omitempty"`
	// contains filtered or unexported fields
}

func (*ExportRequest) Descriptor deprecated

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

Deprecated: Use ExportRequest.ProtoReflect.Descriptor instead.

func (*ExportRequest) GetOutputDirectory

func (x *ExportRequest) GetOutputDirectory() string

func (*ExportRequest) GetPluginArgs

func (x *ExportRequest) GetPluginArgs() []string

func (*ExportRequest) GetSkipProviderOutput

func (x *ExportRequest) GetSkipProviderOutput() bool

func (*ExportRequest) ProtoMessage

func (*ExportRequest) ProtoMessage()

func (*ExportRequest) ProtoReflect

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

func (*ExportRequest) Reset

func (x *ExportRequest) Reset()

func (*ExportRequest) String

func (x *ExportRequest) String() string

type ExportResponse

type ExportResponse struct {
	Directives []*ImportDirective `protobuf:"bytes,1,rep,name=Directives,proto3" json:"Directives,omitempty"`
	// contains filtered or unexported fields
}

func (*ExportResponse) Descriptor deprecated

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

Deprecated: Use ExportResponse.ProtoReflect.Descriptor instead.

func (*ExportResponse) GetDirectives

func (x *ExportResponse) GetDirectives() []*ImportDirective

func (*ExportResponse) ProtoMessage

func (*ExportResponse) ProtoMessage()

func (*ExportResponse) ProtoReflect

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

func (*ExportResponse) Reset

func (x *ExportResponse) Reset()

func (*ExportResponse) String

func (x *ExportResponse) String() string

type ImportDirective

type ImportDirective struct {
	Resource string `protobuf:"bytes,1,opt,name=Resource,proto3" json:"Resource,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	ID       string `protobuf:"bytes,3,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportDirective) Descriptor deprecated

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

Deprecated: Use ImportDirective.ProtoReflect.Descriptor instead.

func (*ImportDirective) GetID

func (x *ImportDirective) GetID() string

func (*ImportDirective) GetName

func (x *ImportDirective) GetName() string

func (*ImportDirective) GetResource

func (x *ImportDirective) GetResource() string

func (*ImportDirective) ProtoMessage

func (*ImportDirective) ProtoMessage()

func (*ImportDirective) ProtoReflect

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

func (*ImportDirective) Reset

func (x *ImportDirective) Reset()

func (*ImportDirective) String

func (x *ImportDirective) String() string

type NoArgs

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

func (*NoArgs) Descriptor deprecated

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

Deprecated: Use NoArgs.ProtoReflect.Descriptor instead.

func (*NoArgs) ProtoMessage

func (*NoArgs) ProtoMessage()

func (*NoArgs) ProtoReflect

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

func (*NoArgs) Reset

func (x *NoArgs) Reset()

func (*NoArgs) String

func (x *NoArgs) String() string

type PluginInfo

type PluginInfo struct {
	Version  *Version       `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"`
	Provides []*CommandInfo `protobuf:"bytes,2,rep,name=Provides,proto3" json:"Provides,omitempty"`
	// contains filtered or unexported fields
}

func (*PluginInfo) Descriptor deprecated

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

Deprecated: Use PluginInfo.ProtoReflect.Descriptor instead.

func (*PluginInfo) GetProvides

func (x *PluginInfo) GetProvides() []*CommandInfo

func (*PluginInfo) GetVersion

func (x *PluginInfo) GetVersion() *Version

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 PluginRequest

type PluginRequest struct {
	Name    string         `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Request *ExportRequest `protobuf:"bytes,2,opt,name=Request,proto3" json:"Request,omitempty"`
	// contains filtered or unexported fields
}

func (*PluginRequest) Descriptor deprecated

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

Deprecated: Use PluginRequest.ProtoReflect.Descriptor instead.

func (*PluginRequest) GetName

func (x *PluginRequest) GetName() string

func (*PluginRequest) GetRequest

func (x *PluginRequest) GetRequest() *ExportRequest

func (*PluginRequest) ProtoMessage

func (*PluginRequest) ProtoMessage()

func (*PluginRequest) ProtoReflect

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

func (*PluginRequest) Reset

func (x *PluginRequest) Reset()

func (*PluginRequest) String

func (x *PluginRequest) String() string

type SingleString

type SingleString struct {
	Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*SingleString) Descriptor deprecated

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

Deprecated: Use SingleString.ProtoReflect.Descriptor instead.

func (*SingleString) GetValue

func (x *SingleString) GetValue() string

func (*SingleString) ProtoMessage

func (*SingleString) ProtoMessage()

func (*SingleString) ProtoReflect

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

func (*SingleString) Reset

func (x *SingleString) Reset()

func (*SingleString) String

func (x *SingleString) String() string

type UnimplementedExportCommandServer

type UnimplementedExportCommandServer struct {
}

UnimplementedExportCommandServer must be embedded to have forward compatible implementations.

func (UnimplementedExportCommandServer) Export

func (UnimplementedExportCommandServer) Help

func (UnimplementedExportCommandServer) Info

type UnimplementedExportPluginServer

type UnimplementedExportPluginServer struct {
}

UnimplementedExportPluginServer must be embedded to have forward compatible implementations.

func (UnimplementedExportPluginServer) Export

func (UnimplementedExportPluginServer) Help

func (UnimplementedExportPluginServer) Info

type UnsafeExportCommandServer

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

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

type UnsafeExportPluginServer

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

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

type Version

type Version struct {
	Major         uint64  `protobuf:"varint,1,opt,name=Major,proto3" json:"Major,omitempty"`
	Minor         uint64  `protobuf:"varint,2,opt,name=Minor,proto3" json:"Minor,omitempty"`
	Patch         uint64  `protobuf:"varint,3,opt,name=Patch,proto3" json:"Patch,omitempty"`
	Pre           *string `protobuf:"bytes,4,opt,name=Pre,proto3,oneof" json:"Pre,omitempty"`
	BuildMetadata *string `protobuf:"bytes,5,opt,name=BuildMetadata,proto3,oneof" json:"BuildMetadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetBuildMetadata

func (x *Version) GetBuildMetadata() string

func (*Version) GetMajor

func (x *Version) GetMajor() uint64

func (*Version) GetMinor

func (x *Version) GetMinor() uint64

func (*Version) GetPatch

func (x *Version) GetPatch() uint64

func (*Version) GetPre

func (x *Version) GetPre() string

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

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

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

Jump to

Keyboard shortcuts

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