evaluator

package
v0.0.0-...-5006c1f Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_evaluator_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use ConfigMap.ProtoReflect.Descriptor instead.

func (*ConfigMap) GetData

func (x *ConfigMap) GetData() map[string]string

func (*ConfigMap) ProtoMessage

func (*ConfigMap) ProtoMessage()

func (*ConfigMap) ProtoReflect

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

func (*ConfigMap) Reset

func (x *ConfigMap) Reset()

func (*ConfigMap) String

func (x *ConfigMap) String() string

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.

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

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.

Jump to

Keyboard shortcuts

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