proto

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Authorize_PluginAction_FullMethodName = "/proto.Authorize/PluginAction"
)

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "CREATE",
		1: "GET",
		2: "CANCEL",
	}
	Type_value = map[string]int32{
		"CREATE": 0,
		"GET":    1,
		"CANCEL": 2,
	}
)

Enum value maps for Type.

View Source
var Authorize_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Authorize",
	HandlerType: (*AuthorizeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PluginAction",
			Handler:    _Authorize_PluginAction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugins/proto/plugin.proto",
}

Authorize_ServiceDesc is the grpc.ServiceDesc for Authorize 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_plugins_proto_plugin_proto protoreflect.FileDescriptor

Functions

func RegisterAuthorizeServer

func RegisterAuthorizeServer(s grpc.ServiceRegistrar, srv AuthorizeServer)

Types

type AuthorizeClient

type AuthorizeClient interface {
	PluginAction(ctx context.Context, in *Job, opts ...grpc.CallOption) (*JobResponse, error)
}

AuthorizeClient is the client API for Authorize 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 NewAuthorizeClient

func NewAuthorizeClient(cc grpc.ClientConnInterface) AuthorizeClient

type AuthorizeServer

type AuthorizeServer interface {
	PluginAction(context.Context, *Job) (*JobResponse, error)
}

AuthorizeServer is the server API for Authorize service. All implementations should embed UnimplementedAuthorizeServer for forward compatibility

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Job

type Job struct {
	Headers map[string]*StringList `` /* 141-byte string literal not displayed */
	Params  map[string]string      `` /* 139-byte string literal not displayed */
	Config  *config.Config         `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	Task    *tes.Task              `protobuf:"bytes,4,opt,name=task,proto3" json:"task,omitempty"`
	Type    Type                   `protobuf:"varint,5,opt,name=type,proto3,enum=proto.Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Job) Descriptor deprecated

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

Deprecated: Use Job.ProtoReflect.Descriptor instead.

func (*Job) GetConfig

func (x *Job) GetConfig() *config.Config

func (*Job) GetHeaders

func (x *Job) GetHeaders() map[string]*StringList

func (*Job) GetParams

func (x *Job) GetParams() map[string]string

func (*Job) GetTask

func (x *Job) GetTask() *tes.Task

func (*Job) GetType

func (x *Job) GetType() Type

func (*Job) ProtoMessage

func (*Job) ProtoMessage()

func (*Job) ProtoReflect

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

func (*Job) Reset

func (x *Job) Reset()

func (*Job) String

func (x *Job) String() string

type JobResponse

type JobResponse struct {
	Code    int64          `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string         `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Config  *config.Config `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	Task    *tes.Task      `protobuf:"bytes,4,opt,name=task,proto3" json:"task,omitempty"`
	UserId  string         `protobuf:"bytes,7,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*JobResponse) Descriptor deprecated

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

Deprecated: Use JobResponse.ProtoReflect.Descriptor instead.

func (*JobResponse) GetCode

func (x *JobResponse) GetCode() int64

func (*JobResponse) GetConfig

func (x *JobResponse) GetConfig() *config.Config

func (*JobResponse) GetMessage

func (x *JobResponse) GetMessage() string

func (*JobResponse) GetTask

func (x *JobResponse) GetTask() *tes.Task

func (*JobResponse) GetUserId

func (x *JobResponse) GetUserId() string

func (*JobResponse) ProtoMessage

func (*JobResponse) ProtoMessage()

func (*JobResponse) ProtoReflect

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

func (*JobResponse) Reset

func (x *JobResponse) Reset()

func (*JobResponse) String

func (x *JobResponse) String() string

type StringList

type StringList struct {
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*StringList) Descriptor deprecated

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

Deprecated: Use StringList.ProtoReflect.Descriptor instead.

func (*StringList) GetValues

func (x *StringList) GetValues() []string

func (*StringList) ProtoMessage

func (*StringList) ProtoMessage()

func (*StringList) ProtoReflect

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

func (*StringList) Reset

func (x *StringList) Reset()

func (*StringList) String

func (x *StringList) String() string

type Type

type Type int32
const (
	Type_CREATE Type = 0
	Type_GET    Type = 1
	Type_CANCEL Type = 2
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

func (Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

type UnimplementedAuthorizeServer

type UnimplementedAuthorizeServer struct {
}

UnimplementedAuthorizeServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthorizeServer) PluginAction

type UnsafeAuthorizeServer

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

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

Jump to

Keyboard shortcuts

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