plugin

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExecuteResponse_State_name = map[int32]string{
		0: "NONE",
		1: "PENDING",
		2: "INPROGRESS",
		3: "SUCCESS",
		4: "FAILURE",
		5: "TIMEOUT",
	}
	ExecuteResponse_State_value = map[string]int32{
		"NONE":       0,
		"PENDING":    1,
		"INPROGRESS": 2,
		"SUCCESS":    3,
		"FAILURE":    4,
		"TIMEOUT":    5,
	}
)

Enum value maps for ExecuteResponse_State.

View Source
var File_proto_dsrv_api_node_manager_plugin_manager_plugin_proto protoreflect.FileDescriptor
View Source
var ManagerPlugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pilot.plugin.ManagerPlugin",
	HandlerType: (*ManagerPluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "init",
			Handler:    _ManagerPlugin_Init_Handler,
		},
		{
			MethodName: "verify",
			Handler:    _ManagerPlugin_Verify_Handler,
		},
		{
			MethodName: "execute",
			Handler:    _ManagerPlugin_Execute_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/dsrv/api/node_manager/plugin/manager_plugin.proto",
}

ManagerPlugin_ServiceDesc is the grpc.ServiceDesc for ManagerPlugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterManagerPluginServer

func RegisterManagerPluginServer(s grpc.ServiceRegistrar, srv ManagerPluginServer)

Types

type CollectorVerifyInfo

type CollectorVerifyInfo struct {
	Options *structpb.Struct `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectorVerifyInfo) Descriptor deprecated

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

Deprecated: Use CollectorVerifyInfo.ProtoReflect.Descriptor instead.

func (*CollectorVerifyInfo) GetOptions

func (x *CollectorVerifyInfo) GetOptions() *structpb.Struct

func (*CollectorVerifyInfo) ProtoMessage

func (*CollectorVerifyInfo) ProtoMessage()

func (*CollectorVerifyInfo) ProtoReflect

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

func (*CollectorVerifyInfo) Reset

func (x *CollectorVerifyInfo) Reset()

func (*CollectorVerifyInfo) String

func (x *CollectorVerifyInfo) String() string

type ExecuteRequest

type ExecuteRequest struct {

	// is_required: true
	ExecuteInfo *structpb.Struct `protobuf:"bytes,1,opt,name=execute_info,json=executeInfo,proto3" json:"execute_info,omitempty"`
	// is_required: true
	Options *structpb.Struct `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteRequest) Descriptor deprecated

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

Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead.

func (*ExecuteRequest) GetExecuteInfo

func (x *ExecuteRequest) GetExecuteInfo() *structpb.Struct

func (*ExecuteRequest) GetOptions

func (x *ExecuteRequest) GetOptions() *structpb.Struct

func (*ExecuteRequest) ProtoMessage

func (*ExecuteRequest) ProtoMessage()

func (*ExecuteRequest) ProtoReflect

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

func (*ExecuteRequest) Reset

func (x *ExecuteRequest) Reset()

func (*ExecuteRequest) String

func (x *ExecuteRequest) String() string

type ExecuteResponse

type ExecuteResponse struct {
	State        ExecuteResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=pilot.plugin.ExecuteResponse_State" json:"state,omitempty"`
	Message      string                `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	ResourceType string                `protobuf:"bytes,3,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteResponse) Descriptor deprecated

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

Deprecated: Use ExecuteResponse.ProtoReflect.Descriptor instead.

func (*ExecuteResponse) GetMessage

func (x *ExecuteResponse) GetMessage() string

func (*ExecuteResponse) GetResourceType

func (x *ExecuteResponse) GetResourceType() string

func (*ExecuteResponse) GetState

func (x *ExecuteResponse) GetState() ExecuteResponse_State

func (*ExecuteResponse) ProtoMessage

func (*ExecuteResponse) ProtoMessage()

func (*ExecuteResponse) ProtoReflect

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

func (*ExecuteResponse) Reset

func (x *ExecuteResponse) Reset()

func (*ExecuteResponse) String

func (x *ExecuteResponse) String() string

type ExecuteResponse_State

type ExecuteResponse_State int32
const (
	ExecuteResponse_NONE       ExecuteResponse_State = 0
	ExecuteResponse_PENDING    ExecuteResponse_State = 1
	ExecuteResponse_INPROGRESS ExecuteResponse_State = 2
	ExecuteResponse_SUCCESS    ExecuteResponse_State = 3
	ExecuteResponse_FAILURE    ExecuteResponse_State = 4
	ExecuteResponse_TIMEOUT    ExecuteResponse_State = 5
)

func (ExecuteResponse_State) Descriptor

func (ExecuteResponse_State) Enum

func (ExecuteResponse_State) EnumDescriptor deprecated

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

Deprecated: Use ExecuteResponse_State.Descriptor instead.

func (ExecuteResponse_State) Number

func (ExecuteResponse_State) String

func (x ExecuteResponse_State) String() string

func (ExecuteResponse_State) Type

type ManagerPluginClient

type ManagerPluginClient interface {
	Init(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PluginInfo, error)
	Verify(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VerifyInfo, error)
	Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error)
}

ManagerPluginClient is the client API for ManagerPlugin 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.

type ManagerPluginServer

type ManagerPluginServer interface {
	Init(context.Context, *emptypb.Empty) (*PluginInfo, error)
	Verify(context.Context, *emptypb.Empty) (*VerifyInfo, error)
	Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error)
	// contains filtered or unexported methods
}

ManagerPluginServer is the server API for ManagerPlugin service. All implementations must embed UnimplementedManagerPluginServer for forward compatibility

type PluginInfo

type PluginInfo struct {
	Metadata *structpb.Struct `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*PluginInfo) Descriptor deprecated

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

Deprecated: Use PluginInfo.ProtoReflect.Descriptor instead.

func (*PluginInfo) GetMetadata

func (x *PluginInfo) GetMetadata() *structpb.Struct

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 UnimplementedManagerPluginServer

type UnimplementedManagerPluginServer struct {
}

UnimplementedManagerPluginServer must be embedded to have forward compatible implementations.

func (UnimplementedManagerPluginServer) Execute

func (UnimplementedManagerPluginServer) Init

func (UnimplementedManagerPluginServer) Verify

type UnsafeManagerPluginServer

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

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

type VerifyInfo

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

func (*VerifyInfo) Descriptor deprecated

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

Deprecated: Use VerifyInfo.ProtoReflect.Descriptor instead.

func (*VerifyInfo) GetVerifyMsg

func (x *VerifyInfo) GetVerifyMsg() string

func (*VerifyInfo) ProtoMessage

func (*VerifyInfo) ProtoMessage()

func (*VerifyInfo) ProtoReflect

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

func (*VerifyInfo) Reset

func (x *VerifyInfo) Reset()

func (*VerifyInfo) String

func (x *VerifyInfo) String() string

Jump to

Keyboard shortcuts

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