proto

package
v1.509.25 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_plugin_sdk_v1alpha1_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 PluginClient

type PluginClient interface {
	BEPEventCallback(ctx context.Context, in *BEPEventCallbackReq, opts ...grpc.CallOption) (*BEPEventCallbackRes, error)
	PostBuildHook(ctx context.Context, in *PostBuildHookReq, opts ...grpc.CallOption) (*PostBuildHookRes, 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

type PluginServer interface {
	BEPEventCallback(context.Context, *BEPEventCallbackReq) (*BEPEventCallbackRes, error)
	PostBuildHook(context.Context, *PostBuildHookReq) (*PostBuildHookRes, error)
}

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 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 UnimplementedPluginServer

type UnimplementedPluginServer struct {
}

UnimplementedPluginServer can be embedded to have forward compatible implementations.

func (*UnimplementedPluginServer) BEPEventCallback

func (*UnimplementedPluginServer) PostBuildHook

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