proto

package
v1.501.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_plugin_sdk_v1alpha2_proto_plugin_proto protoreflect.FileDescriptor

Functions

func RegisterPluginServer

func RegisterPluginServer(s *grpc.Server, srv PluginServer)

func RegisterPrompterServer

func RegisterPrompterServer(s *grpc.Server, srv PrompterServer)

Types

type BEPEventCallbackReq

type BEPEventCallbackReq struct {
	Event *buildeventstream.BuildEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*BEPEventCallbackReq) Descriptor deprecated

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

Deprecated: Use BEPEventCallbackReq.ProtoReflect.Descriptor instead.

func (*BEPEventCallbackReq) GetEvent

func (*BEPEventCallbackReq) ProtoMessage

func (*BEPEventCallbackReq) ProtoMessage()

func (*BEPEventCallbackReq) ProtoReflect

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

func (*BEPEventCallbackReq) Reset

func (x *BEPEventCallbackReq) Reset()

func (*BEPEventCallbackReq) String

func (x *BEPEventCallbackReq) String() string

type BEPEventCallbackRes

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

func (*BEPEventCallbackRes) Descriptor deprecated

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

Deprecated: Use BEPEventCallbackRes.ProtoReflect.Descriptor instead.

func (*BEPEventCallbackRes) ProtoMessage

func (*BEPEventCallbackRes) ProtoMessage()

func (*BEPEventCallbackRes) ProtoReflect

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

func (*BEPEventCallbackRes) Reset

func (x *BEPEventCallbackRes) Reset()

func (*BEPEventCallbackRes) String

func (x *BEPEventCallbackRes) String() string

type Command

type Command struct {
	Use       string `protobuf:"bytes,1,opt,name=use,proto3" json:"use,omitempty"`
	ShortDesc string `protobuf:"bytes,2,opt,name=short_desc,json=shortDesc,proto3" json:"short_desc,omitempty"`
	LongDesc  string `protobuf:"bytes,3,opt,name=long_desc,json=longDesc,proto3" json:"long_desc,omitempty"`
	// contains filtered or unexported fields
}

func (*Command) Descriptor deprecated

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

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetLongDesc

func (x *Command) GetLongDesc() string

func (*Command) GetShortDesc

func (x *Command) GetShortDesc() string

func (*Command) GetUse

func (x *Command) GetUse() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

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

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type Context

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

func (*Context) Descriptor deprecated

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

Deprecated: Use Context.ProtoReflect.Descriptor instead.

func (*Context) GetWorkspaceRoot

func (x *Context) GetWorkspaceRoot() string

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) ProtoReflect

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

func (*Context) Reset

func (x *Context) Reset()

func (*Context) String

func (x *Context) String() string

type CustomCommandsReq

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

func (*CustomCommandsReq) Descriptor deprecated

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

Deprecated: Use CustomCommandsReq.ProtoReflect.Descriptor instead.

func (*CustomCommandsReq) ProtoMessage

func (*CustomCommandsReq) ProtoMessage()

func (*CustomCommandsReq) ProtoReflect

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

func (*CustomCommandsReq) Reset

func (x *CustomCommandsReq) Reset()

func (*CustomCommandsReq) String

func (x *CustomCommandsReq) String() string

type CustomCommandsRes

type CustomCommandsRes struct {
	Commands []*Command `protobuf:"bytes,1,rep,name=commands,proto3" json:"commands,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomCommandsRes) Descriptor deprecated

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

Deprecated: Use CustomCommandsRes.ProtoReflect.Descriptor instead.

func (*CustomCommandsRes) GetCommands

func (x *CustomCommandsRes) GetCommands() []*Command

func (*CustomCommandsRes) ProtoMessage

func (*CustomCommandsRes) ProtoMessage()

func (*CustomCommandsRes) ProtoReflect

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

func (*CustomCommandsRes) Reset

func (x *CustomCommandsRes) Reset()

func (*CustomCommandsRes) String

func (x *CustomCommandsRes) String() string

type ExecuteCustomCommandReq

type ExecuteCustomCommandReq struct {
	CustomCommand string   `protobuf:"bytes,1,opt,name=customCommand,proto3" json:"customCommand,omitempty"`
	Ctx           *Context `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"`
	Args          []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteCustomCommandReq) Descriptor deprecated

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

Deprecated: Use ExecuteCustomCommandReq.ProtoReflect.Descriptor instead.

func (*ExecuteCustomCommandReq) GetArgs

func (x *ExecuteCustomCommandReq) GetArgs() []string

func (*ExecuteCustomCommandReq) GetCtx

func (x *ExecuteCustomCommandReq) GetCtx() *Context

func (*ExecuteCustomCommandReq) GetCustomCommand

func (x *ExecuteCustomCommandReq) GetCustomCommand() string

func (*ExecuteCustomCommandReq) ProtoMessage

func (*ExecuteCustomCommandReq) ProtoMessage()

func (*ExecuteCustomCommandReq) ProtoReflect

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

func (*ExecuteCustomCommandReq) Reset

func (x *ExecuteCustomCommandReq) Reset()

func (*ExecuteCustomCommandReq) String

func (x *ExecuteCustomCommandReq) String() string

type ExecuteCustomCommandRes

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

func (*ExecuteCustomCommandRes) Descriptor deprecated

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

Deprecated: Use ExecuteCustomCommandRes.ProtoReflect.Descriptor instead.

func (*ExecuteCustomCommandRes) ProtoMessage

func (*ExecuteCustomCommandRes) ProtoMessage()

func (*ExecuteCustomCommandRes) ProtoReflect

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

func (*ExecuteCustomCommandRes) Reset

func (x *ExecuteCustomCommandRes) Reset()

func (*ExecuteCustomCommandRes) String

func (x *ExecuteCustomCommandRes) String() string

type PluginClient

type PluginClient interface {
	BEPEventCallback(ctx context.Context, in *BEPEventCallbackReq, opts ...grpc.CallOption) (*BEPEventCallbackRes, error)
	CustomCommands(ctx context.Context, in *CustomCommandsReq, opts ...grpc.CallOption) (*CustomCommandsRes, error)
	ExecuteCustomCommand(ctx context.Context, in *ExecuteCustomCommandReq, opts ...grpc.CallOption) (*ExecuteCustomCommandRes, error)
	PostBuildHook(ctx context.Context, in *PostBuildHookReq, opts ...grpc.CallOption) (*PostBuildHookRes, error)
	PostTestHook(ctx context.Context, in *PostTestHookReq, opts ...grpc.CallOption) (*PostTestHookRes, error)
	PostRunHook(ctx context.Context, in *PostRunHookReq, opts ...grpc.CallOption) (*PostRunHookRes, error)
	Setup(ctx context.Context, in *SetupReq, opts ...grpc.CallOption) (*SetupRes, error)
}

PluginClient is the client API for Plugin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPluginClient

func NewPluginClient(cc grpc.ClientConnInterface) PluginClient

type PluginServer

PluginServer is the server API for Plugin service.

type PostBuildHookReq

type PostBuildHookReq struct {
	BrokerId          uint32 `protobuf:"varint,1,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"`
	IsInteractiveMode bool   `protobuf:"varint,2,opt,name=is_interactive_mode,json=isInteractiveMode,proto3" json:"is_interactive_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*PostBuildHookReq) Descriptor deprecated

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

Deprecated: Use PostBuildHookReq.ProtoReflect.Descriptor instead.

func (*PostBuildHookReq) GetBrokerId

func (x *PostBuildHookReq) GetBrokerId() uint32

func (*PostBuildHookReq) GetIsInteractiveMode

func (x *PostBuildHookReq) GetIsInteractiveMode() bool

func (*PostBuildHookReq) ProtoMessage

func (*PostBuildHookReq) ProtoMessage()

func (*PostBuildHookReq) ProtoReflect

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

func (*PostBuildHookReq) Reset

func (x *PostBuildHookReq) Reset()

func (*PostBuildHookReq) String

func (x *PostBuildHookReq) String() string

type PostBuildHookRes

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

func (*PostBuildHookRes) Descriptor deprecated

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

Deprecated: Use PostBuildHookRes.ProtoReflect.Descriptor instead.

func (*PostBuildHookRes) ProtoMessage

func (*PostBuildHookRes) ProtoMessage()

func (*PostBuildHookRes) ProtoReflect

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

func (*PostBuildHookRes) Reset

func (x *PostBuildHookRes) Reset()

func (*PostBuildHookRes) String

func (x *PostBuildHookRes) String() string

type PostRunHookReq

type PostRunHookReq struct {
	BrokerId          uint32 `protobuf:"varint,1,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"`
	IsInteractiveMode bool   `protobuf:"varint,2,opt,name=is_interactive_mode,json=isInteractiveMode,proto3" json:"is_interactive_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*PostRunHookReq) Descriptor deprecated

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

Deprecated: Use PostRunHookReq.ProtoReflect.Descriptor instead.

func (*PostRunHookReq) GetBrokerId

func (x *PostRunHookReq) GetBrokerId() uint32

func (*PostRunHookReq) GetIsInteractiveMode

func (x *PostRunHookReq) GetIsInteractiveMode() bool

func (*PostRunHookReq) ProtoMessage

func (*PostRunHookReq) ProtoMessage()

func (*PostRunHookReq) ProtoReflect

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

func (*PostRunHookReq) Reset

func (x *PostRunHookReq) Reset()

func (*PostRunHookReq) String

func (x *PostRunHookReq) String() string

type PostRunHookRes

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

func (*PostRunHookRes) Descriptor deprecated

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

Deprecated: Use PostRunHookRes.ProtoReflect.Descriptor instead.

func (*PostRunHookRes) ProtoMessage

func (*PostRunHookRes) ProtoMessage()

func (*PostRunHookRes) ProtoReflect

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

func (*PostRunHookRes) Reset

func (x *PostRunHookRes) Reset()

func (*PostRunHookRes) String

func (x *PostRunHookRes) String() string

type PostTestHookReq

type PostTestHookReq struct {
	BrokerId          uint32 `protobuf:"varint,1,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"`
	IsInteractiveMode bool   `protobuf:"varint,2,opt,name=is_interactive_mode,json=isInteractiveMode,proto3" json:"is_interactive_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*PostTestHookReq) Descriptor deprecated

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

Deprecated: Use PostTestHookReq.ProtoReflect.Descriptor instead.

func (*PostTestHookReq) GetBrokerId

func (x *PostTestHookReq) GetBrokerId() uint32

func (*PostTestHookReq) GetIsInteractiveMode

func (x *PostTestHookReq) GetIsInteractiveMode() bool

func (*PostTestHookReq) ProtoMessage

func (*PostTestHookReq) ProtoMessage()

func (*PostTestHookReq) ProtoReflect

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

func (*PostTestHookReq) Reset

func (x *PostTestHookReq) Reset()

func (*PostTestHookReq) String

func (x *PostTestHookReq) String() string

type PostTestHookRes

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

func (*PostTestHookRes) Descriptor deprecated

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

Deprecated: Use PostTestHookRes.ProtoReflect.Descriptor instead.

func (*PostTestHookRes) ProtoMessage

func (*PostTestHookRes) ProtoMessage()

func (*PostTestHookRes) ProtoReflect

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

func (*PostTestHookRes) Reset

func (x *PostTestHookRes) Reset()

func (*PostTestHookRes) String

func (x *PostTestHookRes) String() string

type PromptRunReq

type PromptRunReq struct {
	Label       string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Default     string `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
	AllowEdit   bool   `protobuf:"varint,3,opt,name=allow_edit,json=allowEdit,proto3" json:"allow_edit,omitempty"`
	Mask        string `protobuf:"bytes,5,opt,name=mask,proto3" json:"mask,omitempty"`
	HideEntered bool   `protobuf:"varint,6,opt,name=hide_entered,json=hideEntered,proto3" json:"hide_entered,omitempty"`
	IsConfirm   bool   `protobuf:"varint,8,opt,name=is_confirm,json=isConfirm,proto3" json:"is_confirm,omitempty"`
	IsVimMode   bool   `protobuf:"varint,9,opt,name=is_vim_mode,json=isVimMode,proto3" json:"is_vim_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptRunReq) Descriptor deprecated

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

Deprecated: Use PromptRunReq.ProtoReflect.Descriptor instead.

func (*PromptRunReq) GetAllowEdit

func (x *PromptRunReq) GetAllowEdit() bool

func (*PromptRunReq) GetDefault

func (x *PromptRunReq) GetDefault() string

func (*PromptRunReq) GetHideEntered

func (x *PromptRunReq) GetHideEntered() bool

func (*PromptRunReq) GetIsConfirm

func (x *PromptRunReq) GetIsConfirm() bool

func (*PromptRunReq) GetIsVimMode

func (x *PromptRunReq) GetIsVimMode() bool

func (*PromptRunReq) GetLabel

func (x *PromptRunReq) GetLabel() string

func (*PromptRunReq) GetMask

func (x *PromptRunReq) GetMask() string

func (*PromptRunReq) ProtoMessage

func (*PromptRunReq) ProtoMessage()

func (*PromptRunReq) ProtoReflect

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

func (*PromptRunReq) Reset

func (x *PromptRunReq) Reset()

func (*PromptRunReq) String

func (x *PromptRunReq) String() string

type PromptRunRes

type PromptRunRes struct {
	Result string              `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	Error  *PromptRunRes_Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptRunRes) Descriptor deprecated

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

Deprecated: Use PromptRunRes.ProtoReflect.Descriptor instead.

func (*PromptRunRes) GetError

func (x *PromptRunRes) GetError() *PromptRunRes_Error

func (*PromptRunRes) GetResult

func (x *PromptRunRes) GetResult() string

func (*PromptRunRes) ProtoMessage

func (*PromptRunRes) ProtoMessage()

func (*PromptRunRes) ProtoReflect

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

func (*PromptRunRes) Reset

func (x *PromptRunRes) Reset()

func (*PromptRunRes) String

func (x *PromptRunRes) String() string

type PromptRunRes_Error

type PromptRunRes_Error struct {
	Happened bool   `protobuf:"varint,1,opt,name=happened,proto3" json:"happened,omitempty"`
	Message  string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptRunRes_Error) Descriptor deprecated

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

Deprecated: Use PromptRunRes_Error.ProtoReflect.Descriptor instead.

func (*PromptRunRes_Error) GetHappened

func (x *PromptRunRes_Error) GetHappened() bool

func (*PromptRunRes_Error) GetMessage

func (x *PromptRunRes_Error) GetMessage() string

func (*PromptRunRes_Error) ProtoMessage

func (*PromptRunRes_Error) ProtoMessage()

func (*PromptRunRes_Error) ProtoReflect

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

func (*PromptRunRes_Error) Reset

func (x *PromptRunRes_Error) Reset()

func (*PromptRunRes_Error) String

func (x *PromptRunRes_Error) String() string

type PrompterClient

type PrompterClient interface {
	Run(ctx context.Context, in *PromptRunReq, opts ...grpc.CallOption) (*PromptRunRes, error)
}

PrompterClient is the client API for Prompter service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPrompterClient

func NewPrompterClient(cc grpc.ClientConnInterface) PrompterClient

type PrompterServer

type PrompterServer interface {
	Run(context.Context, *PromptRunReq) (*PromptRunRes, error)
}

PrompterServer is the server API for Prompter service.

type SetupReq

type SetupReq struct {
	Properties []byte `protobuf:"bytes,1,opt,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*SetupReq) Descriptor deprecated

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

Deprecated: Use SetupReq.ProtoReflect.Descriptor instead.

func (*SetupReq) GetProperties

func (x *SetupReq) GetProperties() []byte

func (*SetupReq) ProtoMessage

func (*SetupReq) ProtoMessage()

func (*SetupReq) ProtoReflect

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

func (*SetupReq) Reset

func (x *SetupReq) Reset()

func (*SetupReq) String

func (x *SetupReq) String() string

type SetupRes

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

func (*SetupRes) Descriptor deprecated

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

Deprecated: Use SetupRes.ProtoReflect.Descriptor instead.

func (*SetupRes) ProtoMessage

func (*SetupRes) ProtoMessage()

func (*SetupRes) ProtoReflect

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

func (*SetupRes) Reset

func (x *SetupRes) Reset()

func (*SetupRes) String

func (x *SetupRes) String() string

type UnimplementedPluginServer

type UnimplementedPluginServer struct {
}

UnimplementedPluginServer can be embedded to have forward compatible implementations.

func (*UnimplementedPluginServer) BEPEventCallback

func (*UnimplementedPluginServer) CustomCommands

func (*UnimplementedPluginServer) ExecuteCustomCommand

func (*UnimplementedPluginServer) PostBuildHook

func (*UnimplementedPluginServer) PostRunHook

func (*UnimplementedPluginServer) PostTestHook

func (*UnimplementedPluginServer) Setup

type UnimplementedPrompterServer

type UnimplementedPrompterServer struct {
}

UnimplementedPrompterServer can be embedded to have forward compatible implementations.

func (*UnimplementedPrompterServer) Run

Jump to

Keyboard shortcuts

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