Documentation ¶
Index ¶
- Variables
- func RegisterFunctionEvaluatorServer(s grpc.ServiceRegistrar, srv FunctionEvaluatorServer)
- type ConfigMap
- type EvaluateFunctionRequest
- func (*EvaluateFunctionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluateFunctionRequest) GetImage() string
- func (x *EvaluateFunctionRequest) GetResourceList() []byte
- func (*EvaluateFunctionRequest) ProtoMessage()
- func (x *EvaluateFunctionRequest) ProtoReflect() protoreflect.Message
- func (x *EvaluateFunctionRequest) Reset()
- func (x *EvaluateFunctionRequest) String() string
- type EvaluateFunctionResponse
- func (*EvaluateFunctionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluateFunctionResponse) GetLog() []byte
- func (x *EvaluateFunctionResponse) GetResourceList() []byte
- func (*EvaluateFunctionResponse) ProtoMessage()
- func (x *EvaluateFunctionResponse) ProtoReflect() protoreflect.Message
- func (x *EvaluateFunctionResponse) Reset()
- func (x *EvaluateFunctionResponse) String() string
- type FunctionEvaluatorClient
- type FunctionEvaluatorServer
- type UnimplementedFunctionEvaluatorServer
- type UnsafeFunctionEvaluatorServer
Constants ¶
This section is empty.
Variables ¶
var File_evaluator_proto protoreflect.FileDescriptor
var FunctionEvaluator_ServiceDesc = grpc.ServiceDesc{ ServiceName: "evaluator.FunctionEvaluator", HandlerType: (*FunctionEvaluatorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EvaluateFunction", Handler: _FunctionEvaluator_EvaluateFunction_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "evaluator.proto", }
FunctionEvaluator_ServiceDesc is the grpc.ServiceDesc for FunctionEvaluator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFunctionEvaluatorServer ¶
func RegisterFunctionEvaluatorServer(s grpc.ServiceRegistrar, srv FunctionEvaluatorServer)
Types ¶
type ConfigMap ¶
type ConfigMap struct { Data map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
ConfigMap wraps a map<string, string> for use in oneof clause.
func (*ConfigMap) Descriptor
deprecated
func (*ConfigMap) ProtoMessage ¶
func (*ConfigMap) ProtoMessage()
func (*ConfigMap) ProtoReflect ¶
func (x *ConfigMap) ProtoReflect() protoreflect.Message
type EvaluateFunctionRequest ¶
type EvaluateFunctionRequest struct { // Serialized ResourceList (https://kpt.dev/reference/schema/resource-list/) ResourceList []byte `protobuf:"bytes,1,opt,name=resource_list,json=resourceList,proto3" json:"resource_list,omitempty"` // kpt image identifying the function to evaluate Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*EvaluateFunctionRequest) Descriptor
deprecated
func (*EvaluateFunctionRequest) Descriptor() ([]byte, []int)
Deprecated: Use EvaluateFunctionRequest.ProtoReflect.Descriptor instead.
func (*EvaluateFunctionRequest) GetImage ¶
func (x *EvaluateFunctionRequest) GetImage() string
func (*EvaluateFunctionRequest) GetResourceList ¶
func (x *EvaluateFunctionRequest) GetResourceList() []byte
func (*EvaluateFunctionRequest) ProtoMessage ¶
func (*EvaluateFunctionRequest) ProtoMessage()
func (*EvaluateFunctionRequest) ProtoReflect ¶
func (x *EvaluateFunctionRequest) ProtoReflect() protoreflect.Message
func (*EvaluateFunctionRequest) Reset ¶
func (x *EvaluateFunctionRequest) Reset()
func (*EvaluateFunctionRequest) String ¶
func (x *EvaluateFunctionRequest) String() string
type EvaluateFunctionResponse ¶
type EvaluateFunctionResponse struct { // Serialized ResourceList (https://kpt.dev/reference/schema/resource-list/), // including structured function results. ResourceList []byte `protobuf:"bytes,1,opt,name=resource_list,json=resourceList,proto3" json:"resource_list,omitempty"` // Additional log produced by the function (if any). Log []byte `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"` // contains filtered or unexported fields }
func (*EvaluateFunctionResponse) Descriptor
deprecated
func (*EvaluateFunctionResponse) Descriptor() ([]byte, []int)
Deprecated: Use EvaluateFunctionResponse.ProtoReflect.Descriptor instead.
func (*EvaluateFunctionResponse) GetLog ¶
func (x *EvaluateFunctionResponse) GetLog() []byte
func (*EvaluateFunctionResponse) GetResourceList ¶
func (x *EvaluateFunctionResponse) GetResourceList() []byte
func (*EvaluateFunctionResponse) ProtoMessage ¶
func (*EvaluateFunctionResponse) ProtoMessage()
func (*EvaluateFunctionResponse) ProtoReflect ¶
func (x *EvaluateFunctionResponse) ProtoReflect() protoreflect.Message
func (*EvaluateFunctionResponse) Reset ¶
func (x *EvaluateFunctionResponse) Reset()
func (*EvaluateFunctionResponse) String ¶
func (x *EvaluateFunctionResponse) String() string
type FunctionEvaluatorClient ¶
type FunctionEvaluatorClient interface { // Evaluates a kpt function on the provided package EvaluateFunction(ctx context.Context, in *EvaluateFunctionRequest, opts ...grpc.CallOption) (*EvaluateFunctionResponse, error) }
FunctionEvaluatorClient is the client API for FunctionEvaluator 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 NewFunctionEvaluatorClient ¶
func NewFunctionEvaluatorClient(cc grpc.ClientConnInterface) FunctionEvaluatorClient
type FunctionEvaluatorServer ¶
type FunctionEvaluatorServer interface { // Evaluates a kpt function on the provided package EvaluateFunction(context.Context, *EvaluateFunctionRequest) (*EvaluateFunctionResponse, error) // contains filtered or unexported methods }
FunctionEvaluatorServer is the server API for FunctionEvaluator service. All implementations must embed UnimplementedFunctionEvaluatorServer for forward compatibility
type UnimplementedFunctionEvaluatorServer ¶
type UnimplementedFunctionEvaluatorServer struct { }
UnimplementedFunctionEvaluatorServer must be embedded to have forward compatible implementations.
func (UnimplementedFunctionEvaluatorServer) EvaluateFunction ¶
func (UnimplementedFunctionEvaluatorServer) EvaluateFunction(context.Context, *EvaluateFunctionRequest) (*EvaluateFunctionResponse, error)
type UnsafeFunctionEvaluatorServer ¶
type UnsafeFunctionEvaluatorServer interface {
// contains filtered or unexported methods
}
UnsafeFunctionEvaluatorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FunctionEvaluatorServer will result in compilation errors.