Some checks failed
Docs Deploy / build_and_deploy (push) Has been cancelled
Generate Docs / cli (push) Has been cancelled
Generate Config Doc / cli (push) Has been cancelled
Go formatting / go-formatting (push) Has been cancelled
Check links / markdown-link-check (push) Has been cancelled
Integration / pre-test (push) Has been cancelled
Integration / test on (push) Has been cancelled
Integration / status (push) Has been cancelled
Lint / Lint Go code (push) Has been cancelled
Test / test (ubuntu-latest) (push) Has been cancelled
728 lines
24 KiB
Go
728 lines
24 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc (unknown)
|
|
// source: ignite/services/plugin/grpc/v1/interface.proto
|
|
|
|
package v1
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
)
|
|
|
|
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 represents the flag type.
|
|
type Flag_Type int32
|
|
|
|
const (
|
|
Flag_TYPE_FLAG_STRING_UNSPECIFIED Flag_Type = 0
|
|
Flag_TYPE_FLAG_INT Flag_Type = 1
|
|
Flag_TYPE_FLAG_UINT Flag_Type = 2
|
|
Flag_TYPE_FLAG_INT64 Flag_Type = 3
|
|
Flag_TYPE_FLAG_UINT64 Flag_Type = 4
|
|
Flag_TYPE_FLAG_BOOL Flag_Type = 5
|
|
Flag_TYPE_FLAG_STRING_SLICE Flag_Type = 6
|
|
)
|
|
|
|
// Enum value maps for Flag_Type.
|
|
var (
|
|
Flag_Type_name = map[int32]string{
|
|
0: "TYPE_FLAG_STRING_UNSPECIFIED",
|
|
1: "TYPE_FLAG_INT",
|
|
2: "TYPE_FLAG_UINT",
|
|
3: "TYPE_FLAG_INT64",
|
|
4: "TYPE_FLAG_UINT64",
|
|
5: "TYPE_FLAG_BOOL",
|
|
6: "TYPE_FLAG_STRING_SLICE",
|
|
}
|
|
Flag_Type_value = map[string]int32{
|
|
"TYPE_FLAG_STRING_UNSPECIFIED": 0,
|
|
"TYPE_FLAG_INT": 1,
|
|
"TYPE_FLAG_UINT": 2,
|
|
"TYPE_FLAG_INT64": 3,
|
|
"TYPE_FLAG_UINT64": 4,
|
|
"TYPE_FLAG_BOOL": 5,
|
|
"TYPE_FLAG_STRING_SLICE": 6,
|
|
}
|
|
)
|
|
|
|
func (x Flag_Type) Enum() *Flag_Type {
|
|
p := new(Flag_Type)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Flag_Type) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Flag_Type) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_ignite_services_plugin_grpc_v1_interface_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (Flag_Type) Type() protoreflect.EnumType {
|
|
return &file_ignite_services_plugin_grpc_v1_interface_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x Flag_Type) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Flag_Type.Descriptor instead.
|
|
func (Flag_Type) EnumDescriptor() ([]byte, []int) {
|
|
return file_ignite_services_plugin_grpc_v1_interface_proto_rawDescGZIP(), []int{4, 0}
|
|
}
|
|
|
|
// ExecutedCommand represents a plugin command under execution.
|
|
type ExecutedCommand struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Use is the one-line usage message.
|
|
Use string `protobuf:"bytes,1,opt,name=use,proto3" json:"use,omitempty"`
|
|
// Path contains the command path, e.g. `ignite scaffold foo`.
|
|
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
|
|
// Args are the command arguments.
|
|
Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
|
|
// Full list of args taken from the command line.
|
|
OsArgs []string `protobuf:"bytes,4,rep,name=os_args,json=osArgs,proto3" json:"os_args,omitempty"`
|
|
// With contains the plugin config parameters.
|
|
With map[string]string `protobuf:"bytes,5,rep,name=with,proto3" json:"with,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
// Flags holds the list of command flags.
|
|
Flags []*Flag `protobuf:"bytes,6,rep,name=flags,proto3" json:"flags,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ExecutedCommand) Reset() {
|
|
*x = ExecutedCommand{}
|
|
mi := &file_ignite_services_plugin_grpc_v1_interface_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ExecutedCommand) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ExecutedCommand) ProtoMessage() {}
|
|
|
|
func (x *ExecutedCommand) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ignite_services_plugin_grpc_v1_interface_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 ExecutedCommand.ProtoReflect.Descriptor instead.
|
|
func (*ExecutedCommand) Descriptor() ([]byte, []int) {
|
|
return file_ignite_services_plugin_grpc_v1_interface_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ExecutedCommand) GetUse() string {
|
|
if x != nil {
|
|
return x.Use
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ExecutedCommand) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ExecutedCommand) GetArgs() []string {
|
|
if x != nil {
|
|
return x.Args
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ExecutedCommand) GetOsArgs() []string {
|
|
if x != nil {
|
|
return x.OsArgs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ExecutedCommand) GetWith() map[string]string {
|
|
if x != nil {
|
|
return x.With
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ExecutedCommand) GetFlags() []*Flag {
|
|
if x != nil {
|
|
return x.Flags
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ExecutedHook represents a plugin hook under execution.
|
|
type ExecutedHook struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Hook is a copy of the original Hook defined in the Manifest.
|
|
Hook *Hook `protobuf:"bytes,1,opt,name=hook,proto3" json:"hook,omitempty"`
|
|
// ExecutedCommand gives access to the command attached by the hook.
|
|
ExecutedCommand *ExecutedCommand `protobuf:"bytes,2,opt,name=executed_command,json=executedCommand,proto3" json:"executed_command,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ExecutedHook) Reset() {
|
|
*x = ExecutedHook{}
|
|
mi := &file_ignite_services_plugin_grpc_v1_interface_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ExecutedHook) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ExecutedHook) ProtoMessage() {}
|
|
|
|
func (x *ExecutedHook) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ignite_services_plugin_grpc_v1_interface_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 ExecutedHook.ProtoReflect.Descriptor instead.
|
|
func (*ExecutedHook) Descriptor() ([]byte, []int) {
|
|
return file_ignite_services_plugin_grpc_v1_interface_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ExecutedHook) GetHook() *Hook {
|
|
if x != nil {
|
|
return x.Hook
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ExecutedHook) GetExecutedCommand() *ExecutedCommand {
|
|
if x != nil {
|
|
return x.ExecutedCommand
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Manifest represents the plugin behavior.
|
|
type Manifest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Plugin name.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// Commands contains the commands that will be added to the list of ignite commands.
|
|
// Each commands are independent, for nested commands use the inner Commands field.
|
|
SharedHost bool `protobuf:"varint,2,opt,name=shared_host,json=sharedHost,proto3" json:"shared_host,omitempty"`
|
|
// Hooks contains the hooks that will be attached to the existing ignite commands.
|
|
Commands []*Command `protobuf:"bytes,3,rep,name=commands,proto3" json:"commands,omitempty"`
|
|
// Enables sharing a single plugin server across all running instances of a plugin.
|
|
// Useful if a plugin adds or extends long running commands.
|
|
//
|
|
// Example: if a plugin defines a hook on `ignite chain serve`, a plugin server is
|
|
// instanciated when the command is run. Now if you want to interact with that instance
|
|
// from commands defined in that plugin, you need to enable shared host, or else the
|
|
// commands will just instantiate separate plugin servers.
|
|
//
|
|
// When enabled, all plugins of the same path loaded from the same configuration will
|
|
// attach it's RPC client to a an existing RPC server.
|
|
//
|
|
// If a plugin instance has no other running plugin servers, it will create one and it
|
|
// will be the host.
|
|
Hooks []*Hook `protobuf:"bytes,4,rep,name=hooks,proto3" json:"hooks,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Manifest) Reset() {
|
|
*x = Manifest{}
|
|
mi := &file_ignite_services_plugin_grpc_v1_interface_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Manifest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Manifest) ProtoMessage() {}
|
|
|
|
func (x *Manifest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ignite_services_plugin_grpc_v1_interface_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 Manifest.ProtoReflect.Descriptor instead.
|
|
func (*Manifest) Descriptor() ([]byte, []int) {
|
|
return file_ignite_services_plugin_grpc_v1_interface_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *Manifest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Manifest) GetSharedHost() bool {
|
|
if x != nil {
|
|
return x.SharedHost
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Manifest) GetCommands() []*Command {
|
|
if x != nil {
|
|
return x.Commands
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Manifest) GetHooks() []*Hook {
|
|
if x != nil {
|
|
return x.Hooks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Command represents a plugin command.
|
|
type Command struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Use is the one-line usage message.
|
|
//
|
|
// Recommended syntax is as follow:
|
|
//
|
|
// [ ] identifies an optional argument. Arguments that are not enclosed in brackets are required.
|
|
// ... indicates that you can specify multiple values for the previous argument.
|
|
// | indicates mutually exclusive information. You can use the argument to the left of the separator or the
|
|
// argument to the right of the separator. You cannot use both arguments in a single use of the command.
|
|
// { } delimits a set of mutually exclusive arguments when one of the arguments is required. If the arguments are
|
|
// optional, they are enclosed in brackets ([ ]).
|
|
//
|
|
// Example: add [-F file | -D dir]... [-f format] profile
|
|
Use string `protobuf:"bytes,1,opt,name=use,proto3" json:"use,omitempty"`
|
|
// Aliases is an array of aliases that can be used instead of the first word in Use.
|
|
// Note: Aliases have no effect on runnable commands.
|
|
Aliases []string `protobuf:"bytes,2,rep,name=aliases,proto3" json:"aliases,omitempty"`
|
|
// Short is the short description shown in the 'help' output.
|
|
Short string `protobuf:"bytes,3,opt,name=short,proto3" json:"short,omitempty"`
|
|
// Long is the long message shown in the 'help <this-command>' output.
|
|
Long string `protobuf:"bytes,4,opt,name=long,proto3" json:"long,omitempty"`
|
|
// Hidden defines, if this command is hidden and should NOT show up in the list of available commands.
|
|
Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"`
|
|
// Flags holds the list of command flags.
|
|
Flags []*Flag `protobuf:"bytes,6,rep,name=flags,proto3" json:"flags,omitempty"`
|
|
// Indicates where the command should be placed.
|
|
// For instance `ignite scaffold` will place the command at the `scaffold` command.
|
|
// An empty value is interpreted as `ignite` (==root).
|
|
PlaceCommandUnder string `protobuf:"bytes,7,opt,name=place_command_under,json=placeCommandUnder,proto3" json:"place_command_under,omitempty"`
|
|
// List of sub commands.
|
|
Commands []*Command `protobuf:"bytes,8,rep,name=commands,proto3" json:"commands,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Command) Reset() {
|
|
*x = Command{}
|
|
mi := &file_ignite_services_plugin_grpc_v1_interface_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Command) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Command) ProtoMessage() {}
|
|
|
|
func (x *Command) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ignite_services_plugin_grpc_v1_interface_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 Command.ProtoReflect.Descriptor instead.
|
|
func (*Command) Descriptor() ([]byte, []int) {
|
|
return file_ignite_services_plugin_grpc_v1_interface_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Command) GetUse() string {
|
|
if x != nil {
|
|
return x.Use
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Command) GetAliases() []string {
|
|
if x != nil {
|
|
return x.Aliases
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetShort() string {
|
|
if x != nil {
|
|
return x.Short
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Command) GetLong() string {
|
|
if x != nil {
|
|
return x.Long
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Command) GetHidden() bool {
|
|
if x != nil {
|
|
return x.Hidden
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Command) GetFlags() []*Flag {
|
|
if x != nil {
|
|
return x.Flags
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetPlaceCommandUnder() string {
|
|
if x != nil {
|
|
return x.PlaceCommandUnder
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Command) GetCommands() []*Command {
|
|
if x != nil {
|
|
return x.Commands
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Flag represents of a command line flag.
|
|
type Flag struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Name as it appears in the command line.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// One letter abbreviation of the flag.
|
|
Shorthand string `protobuf:"bytes,2,opt,name=shorthand,proto3" json:"shorthand,omitempty"`
|
|
// Help message.
|
|
Usage string `protobuf:"bytes,3,opt,name=usage,proto3" json:"usage,omitempty"`
|
|
// Default flag value.
|
|
DefaultValue string `protobuf:"bytes,4,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
|
|
// Flag type.
|
|
Type Flag_Type `protobuf:"varint,5,opt,name=type,proto3,enum=ignite.services.plugin.grpc.v1.Flag_Type" json:"type,omitempty"`
|
|
// Flag value.
|
|
Value string `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"`
|
|
// Indicates wether or not the flag is propagated on children commands.
|
|
Persistent bool `protobuf:"varint,7,opt,name=persistent,proto3" json:"persistent,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Flag) Reset() {
|
|
*x = Flag{}
|
|
mi := &file_ignite_services_plugin_grpc_v1_interface_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Flag) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Flag) ProtoMessage() {}
|
|
|
|
func (x *Flag) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ignite_services_plugin_grpc_v1_interface_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 Flag.ProtoReflect.Descriptor instead.
|
|
func (*Flag) Descriptor() ([]byte, []int) {
|
|
return file_ignite_services_plugin_grpc_v1_interface_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *Flag) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Flag) GetShorthand() string {
|
|
if x != nil {
|
|
return x.Shorthand
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Flag) GetUsage() string {
|
|
if x != nil {
|
|
return x.Usage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Flag) GetDefaultValue() string {
|
|
if x != nil {
|
|
return x.DefaultValue
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Flag) GetType() Flag_Type {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return Flag_TYPE_FLAG_STRING_UNSPECIFIED
|
|
}
|
|
|
|
func (x *Flag) GetValue() string {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Flag) GetPersistent() bool {
|
|
if x != nil {
|
|
return x.Persistent
|
|
}
|
|
return false
|
|
}
|
|
|
|
// Hook represents a user defined action within a plugin.
|
|
type Hook struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Identifies the hook for the client to invoke the correct hook.
|
|
// It must be unique.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// Indicates the command where to register the hooks.
|
|
PlaceHookOn string `protobuf:"bytes,2,opt,name=place_hook_on,json=placeHookOn,proto3" json:"place_hook_on,omitempty"`
|
|
// Flags holds the list of command flags.
|
|
Flags []*Flag `protobuf:"bytes,3,rep,name=flags,proto3" json:"flags,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Hook) Reset() {
|
|
*x = Hook{}
|
|
mi := &file_ignite_services_plugin_grpc_v1_interface_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Hook) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Hook) ProtoMessage() {}
|
|
|
|
func (x *Hook) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ignite_services_plugin_grpc_v1_interface_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 Hook.ProtoReflect.Descriptor instead.
|
|
func (*Hook) Descriptor() ([]byte, []int) {
|
|
return file_ignite_services_plugin_grpc_v1_interface_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *Hook) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Hook) GetPlaceHookOn() string {
|
|
if x != nil {
|
|
return x.PlaceHookOn
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Hook) GetFlags() []*Flag {
|
|
if x != nil {
|
|
return x.Flags
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_ignite_services_plugin_grpc_v1_interface_proto protoreflect.FileDescriptor
|
|
|
|
const file_ignite_services_plugin_grpc_v1_interface_proto_rawDesc = "" +
|
|
"\n" +
|
|
".ignite/services/plugin/grpc/v1/interface.proto\x12\x1eignite.services.plugin.grpc.v1\"\xa8\x02\n" +
|
|
"\x0fExecutedCommand\x12\x10\n" +
|
|
"\x03use\x18\x01 \x01(\tR\x03use\x12\x12\n" +
|
|
"\x04path\x18\x02 \x01(\tR\x04path\x12\x12\n" +
|
|
"\x04args\x18\x03 \x03(\tR\x04args\x12\x17\n" +
|
|
"\aos_args\x18\x04 \x03(\tR\x06osArgs\x12M\n" +
|
|
"\x04with\x18\x05 \x03(\v29.ignite.services.plugin.grpc.v1.ExecutedCommand.WithEntryR\x04with\x12:\n" +
|
|
"\x05flags\x18\x06 \x03(\v2$.ignite.services.plugin.grpc.v1.FlagR\x05flags\x1a7\n" +
|
|
"\tWithEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xa4\x01\n" +
|
|
"\fExecutedHook\x128\n" +
|
|
"\x04hook\x18\x01 \x01(\v2$.ignite.services.plugin.grpc.v1.HookR\x04hook\x12Z\n" +
|
|
"\x10executed_command\x18\x02 \x01(\v2/.ignite.services.plugin.grpc.v1.ExecutedCommandR\x0fexecutedCommand\"\xc0\x01\n" +
|
|
"\bManifest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n" +
|
|
"\vshared_host\x18\x02 \x01(\bR\n" +
|
|
"sharedHost\x12C\n" +
|
|
"\bcommands\x18\x03 \x03(\v2'.ignite.services.plugin.grpc.v1.CommandR\bcommands\x12:\n" +
|
|
"\x05hooks\x18\x04 \x03(\v2$.ignite.services.plugin.grpc.v1.HookR\x05hooks\"\xa8\x02\n" +
|
|
"\aCommand\x12\x10\n" +
|
|
"\x03use\x18\x01 \x01(\tR\x03use\x12\x18\n" +
|
|
"\aaliases\x18\x02 \x03(\tR\aaliases\x12\x14\n" +
|
|
"\x05short\x18\x03 \x01(\tR\x05short\x12\x12\n" +
|
|
"\x04long\x18\x04 \x01(\tR\x04long\x12\x16\n" +
|
|
"\x06hidden\x18\x05 \x01(\bR\x06hidden\x12:\n" +
|
|
"\x05flags\x18\x06 \x03(\v2$.ignite.services.plugin.grpc.v1.FlagR\x05flags\x12.\n" +
|
|
"\x13place_command_under\x18\a \x01(\tR\x11placeCommandUnder\x12C\n" +
|
|
"\bcommands\x18\b \x03(\v2'.ignite.services.plugin.grpc.v1.CommandR\bcommands\"\x95\x03\n" +
|
|
"\x04Flag\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" +
|
|
"\tshorthand\x18\x02 \x01(\tR\tshorthand\x12\x14\n" +
|
|
"\x05usage\x18\x03 \x01(\tR\x05usage\x12#\n" +
|
|
"\rdefault_value\x18\x04 \x01(\tR\fdefaultValue\x12=\n" +
|
|
"\x04type\x18\x05 \x01(\x0e2).ignite.services.plugin.grpc.v1.Flag.TypeR\x04type\x12\x14\n" +
|
|
"\x05value\x18\x06 \x01(\tR\x05value\x12\x1e\n" +
|
|
"\n" +
|
|
"persistent\x18\a \x01(\bR\n" +
|
|
"persistent\"\xaa\x01\n" +
|
|
"\x04Type\x12 \n" +
|
|
"\x1cTYPE_FLAG_STRING_UNSPECIFIED\x10\x00\x12\x11\n" +
|
|
"\rTYPE_FLAG_INT\x10\x01\x12\x12\n" +
|
|
"\x0eTYPE_FLAG_UINT\x10\x02\x12\x13\n" +
|
|
"\x0fTYPE_FLAG_INT64\x10\x03\x12\x14\n" +
|
|
"\x10TYPE_FLAG_UINT64\x10\x04\x12\x12\n" +
|
|
"\x0eTYPE_FLAG_BOOL\x10\x05\x12\x1a\n" +
|
|
"\x16TYPE_FLAG_STRING_SLICE\x10\x06\"z\n" +
|
|
"\x04Hook\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\"\n" +
|
|
"\rplace_hook_on\x18\x02 \x01(\tR\vplaceHookOn\x12:\n" +
|
|
"\x05flags\x18\x03 \x03(\v2$.ignite.services.plugin.grpc.v1.FlagR\x05flagsB:Z8git.cw.tr/mukan-network/mukan-ignite/ignite/services/plugin/grpc/v1b\x06proto3"
|
|
|
|
var (
|
|
file_ignite_services_plugin_grpc_v1_interface_proto_rawDescOnce sync.Once
|
|
file_ignite_services_plugin_grpc_v1_interface_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_ignite_services_plugin_grpc_v1_interface_proto_rawDescGZIP() []byte {
|
|
file_ignite_services_plugin_grpc_v1_interface_proto_rawDescOnce.Do(func() {
|
|
file_ignite_services_plugin_grpc_v1_interface_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ignite_services_plugin_grpc_v1_interface_proto_rawDesc), len(file_ignite_services_plugin_grpc_v1_interface_proto_rawDesc)))
|
|
})
|
|
return file_ignite_services_plugin_grpc_v1_interface_proto_rawDescData
|
|
}
|
|
|
|
var file_ignite_services_plugin_grpc_v1_interface_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_ignite_services_plugin_grpc_v1_interface_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
var file_ignite_services_plugin_grpc_v1_interface_proto_goTypes = []any{
|
|
(Flag_Type)(0), // 0: ignite.services.plugin.grpc.v1.Flag.Type
|
|
(*ExecutedCommand)(nil), // 1: ignite.services.plugin.grpc.v1.ExecutedCommand
|
|
(*ExecutedHook)(nil), // 2: ignite.services.plugin.grpc.v1.ExecutedHook
|
|
(*Manifest)(nil), // 3: ignite.services.plugin.grpc.v1.Manifest
|
|
(*Command)(nil), // 4: ignite.services.plugin.grpc.v1.Command
|
|
(*Flag)(nil), // 5: ignite.services.plugin.grpc.v1.Flag
|
|
(*Hook)(nil), // 6: ignite.services.plugin.grpc.v1.Hook
|
|
nil, // 7: ignite.services.plugin.grpc.v1.ExecutedCommand.WithEntry
|
|
}
|
|
var file_ignite_services_plugin_grpc_v1_interface_proto_depIdxs = []int32{
|
|
7, // 0: ignite.services.plugin.grpc.v1.ExecutedCommand.with:type_name -> ignite.services.plugin.grpc.v1.ExecutedCommand.WithEntry
|
|
5, // 1: ignite.services.plugin.grpc.v1.ExecutedCommand.flags:type_name -> ignite.services.plugin.grpc.v1.Flag
|
|
6, // 2: ignite.services.plugin.grpc.v1.ExecutedHook.hook:type_name -> ignite.services.plugin.grpc.v1.Hook
|
|
1, // 3: ignite.services.plugin.grpc.v1.ExecutedHook.executed_command:type_name -> ignite.services.plugin.grpc.v1.ExecutedCommand
|
|
4, // 4: ignite.services.plugin.grpc.v1.Manifest.commands:type_name -> ignite.services.plugin.grpc.v1.Command
|
|
6, // 5: ignite.services.plugin.grpc.v1.Manifest.hooks:type_name -> ignite.services.plugin.grpc.v1.Hook
|
|
5, // 6: ignite.services.plugin.grpc.v1.Command.flags:type_name -> ignite.services.plugin.grpc.v1.Flag
|
|
4, // 7: ignite.services.plugin.grpc.v1.Command.commands:type_name -> ignite.services.plugin.grpc.v1.Command
|
|
0, // 8: ignite.services.plugin.grpc.v1.Flag.type:type_name -> ignite.services.plugin.grpc.v1.Flag.Type
|
|
5, // 9: ignite.services.plugin.grpc.v1.Hook.flags:type_name -> ignite.services.plugin.grpc.v1.Flag
|
|
10, // [10:10] is the sub-list for method output_type
|
|
10, // [10:10] is the sub-list for method input_type
|
|
10, // [10:10] is the sub-list for extension type_name
|
|
10, // [10:10] is the sub-list for extension extendee
|
|
0, // [0:10] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_ignite_services_plugin_grpc_v1_interface_proto_init() }
|
|
func file_ignite_services_plugin_grpc_v1_interface_proto_init() {
|
|
if File_ignite_services_plugin_grpc_v1_interface_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_ignite_services_plugin_grpc_v1_interface_proto_rawDesc), len(file_ignite_services_plugin_grpc_v1_interface_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 7,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_ignite_services_plugin_grpc_v1_interface_proto_goTypes,
|
|
DependencyIndexes: file_ignite_services_plugin_grpc_v1_interface_proto_depIdxs,
|
|
EnumInfos: file_ignite_services_plugin_grpc_v1_interface_proto_enumTypes,
|
|
MessageInfos: file_ignite_services_plugin_grpc_v1_interface_proto_msgTypes,
|
|
}.Build()
|
|
File_ignite_services_plugin_grpc_v1_interface_proto = out.File
|
|
file_ignite_services_plugin_grpc_v1_interface_proto_goTypes = nil
|
|
file_ignite_services_plugin_grpc_v1_interface_proto_depIdxs = nil
|
|
}
|