v1

package
v0.4.769 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var CronPredictionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.cronprediction.v1.CronPredictionService",
	HandlerType: (*CronPredictionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListCronPredictions",
			Handler:    _CronPredictionService_ListCronPredictions_Handler,
		},
		{
			MethodName: "CreateCronPrediction",
			Handler:    _CronPredictionService_CreateCronPrediction_Handler,
		},
		{
			MethodName: "GetCronPrediction",
			Handler:    _CronPredictionService_GetCronPrediction_Handler,
		},
		{
			MethodName: "UpdateCronPrediction",
			Handler:    _CronPredictionService_UpdateCronPrediction_Handler,
		},
		{
			MethodName: "DeleteCronPrediction",
			Handler:    _CronPredictionService_DeleteCronPrediction_Handler,
		},
		{
			MethodName: "PauseCronPrediction",
			Handler:    _CronPredictionService_PauseCronPrediction_Handler,
		},
		{
			MethodName: "ResumeCronPrediction",
			Handler:    _CronPredictionService_ResumeCronPrediction_Handler,
		},
		{
			MethodName: "RunPrediction",
			Handler:    _CronPredictionService_RunPrediction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/cronprediction/v1/cronprediction.proto",
}

CronPredictionService_ServiceDesc is the grpc.ServiceDesc for CronPredictionService 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_github_com_metaprov_modelaapi_services_cronprediction_v1_cronprediction_proto protoreflect.FileDescriptor

Functions

func RegisterCronPredictionServiceHandler added in v0.4.687

func RegisterCronPredictionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCronPredictionServiceHandler registers the http handlers for service CronPredictionService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCronPredictionServiceHandlerClient added in v0.4.687

func RegisterCronPredictionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CronPredictionServiceClient) error

RegisterCronPredictionServiceHandlerClient registers the http handlers for service CronPredictionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CronPredictionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CronPredictionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CronPredictionServiceClient" to call the correct interceptors.

func RegisterCronPredictionServiceHandlerFromEndpoint added in v0.4.687

func RegisterCronPredictionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCronPredictionServiceHandlerFromEndpoint is same as RegisterCronPredictionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCronPredictionServiceHandlerServer added in v0.4.687

func RegisterCronPredictionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CronPredictionServiceServer) error

RegisterCronPredictionServiceHandlerServer registers the http handlers for service CronPredictionService to "mux". UnaryRPC :call CronPredictionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCronPredictionServiceHandlerFromEndpoint instead.

func RegisterCronPredictionServiceServer

func RegisterCronPredictionServiceServer(s grpc.ServiceRegistrar, srv CronPredictionServiceServer)

Types

type CreateCronPredictionRequest

type CreateCronPredictionRequest struct {
	Cronprediction *v1alpha1.CronPrediction `protobuf:"bytes,1,opt,name=cronprediction,proto3" json:"cronprediction,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCronPredictionRequest) Descriptor deprecated

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

Deprecated: Use CreateCronPredictionRequest.ProtoReflect.Descriptor instead.

func (*CreateCronPredictionRequest) GetCronprediction added in v0.4.480

func (x *CreateCronPredictionRequest) GetCronprediction() *v1alpha1.CronPrediction

func (*CreateCronPredictionRequest) ProtoMessage

func (*CreateCronPredictionRequest) ProtoMessage()

func (*CreateCronPredictionRequest) ProtoReflect

func (*CreateCronPredictionRequest) Reset

func (x *CreateCronPredictionRequest) Reset()

func (*CreateCronPredictionRequest) String

func (x *CreateCronPredictionRequest) String() string

type CreateCronPredictionResponse

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

func (*CreateCronPredictionResponse) Descriptor deprecated

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

Deprecated: Use CreateCronPredictionResponse.ProtoReflect.Descriptor instead.

func (*CreateCronPredictionResponse) ProtoMessage

func (*CreateCronPredictionResponse) ProtoMessage()

func (*CreateCronPredictionResponse) ProtoReflect

func (*CreateCronPredictionResponse) Reset

func (x *CreateCronPredictionResponse) Reset()

func (*CreateCronPredictionResponse) String

type CronPredictionServiceClient

CronPredictionServiceClient is the client API for CronPredictionService 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 CronPredictionServiceServer

CronPredictionServiceServer is the server API for CronPredictionService service. All implementations must embed UnimplementedCronPredictionServiceServer for forward compatibility

type DeleteCronPredictionRequest

type DeleteCronPredictionRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCronPredictionRequest) Descriptor deprecated

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

Deprecated: Use DeleteCronPredictionRequest.ProtoReflect.Descriptor instead.

func (*DeleteCronPredictionRequest) GetName

func (x *DeleteCronPredictionRequest) GetName() string

func (*DeleteCronPredictionRequest) GetNamespace

func (x *DeleteCronPredictionRequest) GetNamespace() string

func (*DeleteCronPredictionRequest) ProtoMessage

func (*DeleteCronPredictionRequest) ProtoMessage()

func (*DeleteCronPredictionRequest) ProtoReflect

func (*DeleteCronPredictionRequest) Reset

func (x *DeleteCronPredictionRequest) Reset()

func (*DeleteCronPredictionRequest) String

func (x *DeleteCronPredictionRequest) String() string

type DeleteCronPredictionResponse

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

func (*DeleteCronPredictionResponse) Descriptor deprecated

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

Deprecated: Use DeleteCronPredictionResponse.ProtoReflect.Descriptor instead.

func (*DeleteCronPredictionResponse) ProtoMessage

func (*DeleteCronPredictionResponse) ProtoMessage()

func (*DeleteCronPredictionResponse) ProtoReflect

func (*DeleteCronPredictionResponse) Reset

func (x *DeleteCronPredictionResponse) Reset()

func (*DeleteCronPredictionResponse) String

type GetCronPredictionRequest

type GetCronPredictionRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCronPredictionRequest) Descriptor deprecated

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

Deprecated: Use GetCronPredictionRequest.ProtoReflect.Descriptor instead.

func (*GetCronPredictionRequest) GetName

func (x *GetCronPredictionRequest) GetName() string

func (*GetCronPredictionRequest) GetNamespace

func (x *GetCronPredictionRequest) GetNamespace() string

func (*GetCronPredictionRequest) ProtoMessage

func (*GetCronPredictionRequest) ProtoMessage()

func (*GetCronPredictionRequest) ProtoReflect

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

func (*GetCronPredictionRequest) Reset

func (x *GetCronPredictionRequest) Reset()

func (*GetCronPredictionRequest) String

func (x *GetCronPredictionRequest) String() string

type GetCronPredictionResponse

type GetCronPredictionResponse struct {
	Cronprediction *v1alpha1.CronPrediction `protobuf:"bytes,1,opt,name=cronprediction,proto3" json:"cronprediction,omitempty"`
	Yaml           string                   `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCronPredictionResponse) Descriptor deprecated

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

Deprecated: Use GetCronPredictionResponse.ProtoReflect.Descriptor instead.

func (*GetCronPredictionResponse) GetCronprediction added in v0.4.480

func (x *GetCronPredictionResponse) GetCronprediction() *v1alpha1.CronPrediction

func (*GetCronPredictionResponse) GetYaml

func (x *GetCronPredictionResponse) GetYaml() string

func (*GetCronPredictionResponse) ProtoMessage

func (*GetCronPredictionResponse) ProtoMessage()

func (*GetCronPredictionResponse) ProtoReflect

func (*GetCronPredictionResponse) Reset

func (x *GetCronPredictionResponse) Reset()

func (*GetCronPredictionResponse) String

func (x *GetCronPredictionResponse) String() string

type ListCronPredictionsRequest

type ListCronPredictionsRequest struct {
	Namespace string            `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Labels    map[string]string `` /* 153-byte string literal not displayed */
	PageSize  int32             `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string            `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	OrderBy   string            `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCronPredictionsRequest) Descriptor deprecated

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

Deprecated: Use ListCronPredictionsRequest.ProtoReflect.Descriptor instead.

func (*ListCronPredictionsRequest) GetLabels

func (x *ListCronPredictionsRequest) GetLabels() map[string]string

func (*ListCronPredictionsRequest) GetNamespace

func (x *ListCronPredictionsRequest) GetNamespace() string

func (*ListCronPredictionsRequest) GetOrderBy added in v0.4.414

func (x *ListCronPredictionsRequest) GetOrderBy() string

func (*ListCronPredictionsRequest) GetPageSize added in v0.4.414

func (x *ListCronPredictionsRequest) GetPageSize() int32

func (*ListCronPredictionsRequest) GetPageToken added in v0.4.414

func (x *ListCronPredictionsRequest) GetPageToken() string

func (*ListCronPredictionsRequest) ProtoMessage

func (*ListCronPredictionsRequest) ProtoMessage()

func (*ListCronPredictionsRequest) ProtoReflect

func (*ListCronPredictionsRequest) Reset

func (x *ListCronPredictionsRequest) Reset()

func (*ListCronPredictionsRequest) String

func (x *ListCronPredictionsRequest) String() string

type ListCronPredictionsResponse

type ListCronPredictionsResponse struct {
	Cronpredictions *v1alpha1.CronPredictionList `protobuf:"bytes,1,opt,name=cronpredictions,proto3" json:"cronpredictions,omitempty"`
	NextPageToken   string                       `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCronPredictionsResponse) Descriptor deprecated

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

Deprecated: Use ListCronPredictionsResponse.ProtoReflect.Descriptor instead.

func (*ListCronPredictionsResponse) GetCronpredictions added in v0.4.480

func (x *ListCronPredictionsResponse) GetCronpredictions() *v1alpha1.CronPredictionList

func (*ListCronPredictionsResponse) GetNextPageToken added in v0.4.471

func (x *ListCronPredictionsResponse) GetNextPageToken() string

func (*ListCronPredictionsResponse) ProtoMessage

func (*ListCronPredictionsResponse) ProtoMessage()

func (*ListCronPredictionsResponse) ProtoReflect

func (*ListCronPredictionsResponse) Reset

func (x *ListCronPredictionsResponse) Reset()

func (*ListCronPredictionsResponse) String

func (x *ListCronPredictionsResponse) String() string

type PauseCronPredictionRequest

type PauseCronPredictionRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*PauseCronPredictionRequest) Descriptor deprecated

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

Deprecated: Use PauseCronPredictionRequest.ProtoReflect.Descriptor instead.

func (*PauseCronPredictionRequest) GetName

func (x *PauseCronPredictionRequest) GetName() string

func (*PauseCronPredictionRequest) GetNamespace

func (x *PauseCronPredictionRequest) GetNamespace() string

func (*PauseCronPredictionRequest) ProtoMessage

func (*PauseCronPredictionRequest) ProtoMessage()

func (*PauseCronPredictionRequest) ProtoReflect

func (*PauseCronPredictionRequest) Reset

func (x *PauseCronPredictionRequest) Reset()

func (*PauseCronPredictionRequest) String

func (x *PauseCronPredictionRequest) String() string

type PauseCronPredictionResponse

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

func (*PauseCronPredictionResponse) Descriptor deprecated

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

Deprecated: Use PauseCronPredictionResponse.ProtoReflect.Descriptor instead.

func (*PauseCronPredictionResponse) ProtoMessage

func (*PauseCronPredictionResponse) ProtoMessage()

func (*PauseCronPredictionResponse) ProtoReflect

func (*PauseCronPredictionResponse) Reset

func (x *PauseCronPredictionResponse) Reset()

func (*PauseCronPredictionResponse) String

func (x *PauseCronPredictionResponse) String() string

type ResumeCronPredictionRequest

type ResumeCronPredictionRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ResumeCronPredictionRequest) Descriptor deprecated

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

Deprecated: Use ResumeCronPredictionRequest.ProtoReflect.Descriptor instead.

func (*ResumeCronPredictionRequest) GetName

func (x *ResumeCronPredictionRequest) GetName() string

func (*ResumeCronPredictionRequest) GetNamespace

func (x *ResumeCronPredictionRequest) GetNamespace() string

func (*ResumeCronPredictionRequest) ProtoMessage

func (*ResumeCronPredictionRequest) ProtoMessage()

func (*ResumeCronPredictionRequest) ProtoReflect

func (*ResumeCronPredictionRequest) Reset

func (x *ResumeCronPredictionRequest) Reset()

func (*ResumeCronPredictionRequest) String

func (x *ResumeCronPredictionRequest) String() string

type ResumeCronPredictionResponse

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

func (*ResumeCronPredictionResponse) Descriptor deprecated

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

Deprecated: Use ResumeCronPredictionResponse.ProtoReflect.Descriptor instead.

func (*ResumeCronPredictionResponse) ProtoMessage

func (*ResumeCronPredictionResponse) ProtoMessage()

func (*ResumeCronPredictionResponse) ProtoReflect

func (*ResumeCronPredictionResponse) Reset

func (x *ResumeCronPredictionResponse) Reset()

func (*ResumeCronPredictionResponse) String

type RunCronPredictionRequest

type RunCronPredictionRequest struct {
	Cronprediction *v1alpha1.CronPrediction `protobuf:"bytes,1,opt,name=cronprediction,proto3" json:"cronprediction,omitempty"`
	// contains filtered or unexported fields
}

func (*RunCronPredictionRequest) Descriptor deprecated

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

Deprecated: Use RunCronPredictionRequest.ProtoReflect.Descriptor instead.

func (*RunCronPredictionRequest) GetCronprediction added in v0.4.480

func (x *RunCronPredictionRequest) GetCronprediction() *v1alpha1.CronPrediction

func (*RunCronPredictionRequest) ProtoMessage

func (*RunCronPredictionRequest) ProtoMessage()

func (*RunCronPredictionRequest) ProtoReflect

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

func (*RunCronPredictionRequest) Reset

func (x *RunCronPredictionRequest) Reset()

func (*RunCronPredictionRequest) String

func (x *RunCronPredictionRequest) String() string

type RunCronPredictionResponse

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

func (*RunCronPredictionResponse) Descriptor deprecated

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

Deprecated: Use RunCronPredictionResponse.ProtoReflect.Descriptor instead.

func (*RunCronPredictionResponse) ProtoMessage

func (*RunCronPredictionResponse) ProtoMessage()

func (*RunCronPredictionResponse) ProtoReflect

func (*RunCronPredictionResponse) Reset

func (x *RunCronPredictionResponse) Reset()

func (*RunCronPredictionResponse) String

func (x *RunCronPredictionResponse) String() string

type UnimplementedCronPredictionServiceServer

type UnimplementedCronPredictionServiceServer struct {
}

UnimplementedCronPredictionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCronPredictionServiceServer) CreateCronPrediction

func (UnimplementedCronPredictionServiceServer) DeleteCronPrediction

func (UnimplementedCronPredictionServiceServer) GetCronPrediction

func (UnimplementedCronPredictionServiceServer) ListCronPredictions

func (UnimplementedCronPredictionServiceServer) PauseCronPrediction

func (UnimplementedCronPredictionServiceServer) ResumeCronPrediction

func (UnimplementedCronPredictionServiceServer) RunPrediction

func (UnimplementedCronPredictionServiceServer) UpdateCronPrediction

type UnsafeCronPredictionServiceServer added in v0.4.687

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

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

type UpdateCronPredictionRequest

type UpdateCronPredictionRequest struct {
	Cronprediction *v1alpha1.CronPrediction `protobuf:"bytes,1,opt,name=cronprediction,proto3" json:"cronprediction,omitempty"`
	FieldMask      *field_mask.FieldMask    `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCronPredictionRequest) Descriptor deprecated

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

Deprecated: Use UpdateCronPredictionRequest.ProtoReflect.Descriptor instead.

func (*UpdateCronPredictionRequest) GetCronprediction added in v0.4.480

func (x *UpdateCronPredictionRequest) GetCronprediction() *v1alpha1.CronPrediction

func (*UpdateCronPredictionRequest) GetFieldMask added in v0.4.422

func (*UpdateCronPredictionRequest) ProtoMessage

func (*UpdateCronPredictionRequest) ProtoMessage()

func (*UpdateCronPredictionRequest) ProtoReflect

func (*UpdateCronPredictionRequest) Reset

func (x *UpdateCronPredictionRequest) Reset()

func (*UpdateCronPredictionRequest) String

func (x *UpdateCronPredictionRequest) String() string

type UpdateCronPredictionResponse

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

func (*UpdateCronPredictionResponse) Descriptor deprecated

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

Deprecated: Use UpdateCronPredictionResponse.ProtoReflect.Descriptor instead.

func (*UpdateCronPredictionResponse) ProtoMessage

func (*UpdateCronPredictionResponse) ProtoMessage()

func (*UpdateCronPredictionResponse) ProtoReflect

func (*UpdateCronPredictionResponse) Reset

func (x *UpdateCronPredictionResponse) Reset()

func (*UpdateCronPredictionResponse) String

Jump to

Keyboard shortcuts

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