v1

package
v0.4.984 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 21 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 DataProductService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.dataproduct.v1.DataProductService",
	HandlerType: (*DataProductServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListDataProducts",
			Handler:    _DataProductService_ListDataProducts_Handler,
		},
		{
			MethodName: "CreateDataProduct",
			Handler:    _DataProductService_CreateDataProduct_Handler,
		},
		{
			MethodName: "GetDataProduct",
			Handler:    _DataProductService_GetDataProduct_Handler,
		},
		{
			MethodName: "UpdateDataProduct",
			Handler:    _DataProductService_UpdateDataProduct_Handler,
		},
		{
			MethodName: "DeleteDataProduct",
			Handler:    _DataProductService_DeleteDataProduct_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/dataproduct/v1/dataproduct.proto",
}

DataProductService_ServiceDesc is the grpc.ServiceDesc for DataProductService 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_dataproduct_v1_dataproduct_proto protoreflect.FileDescriptor

Functions

func RegisterDataProductServiceHandler added in v0.4.687

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

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

func RegisterDataProductServiceHandlerClient added in v0.4.687

func RegisterDataProductServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DataProductServiceClient) error

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

func RegisterDataProductServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterDataProductServiceHandlerServer added in v0.4.687

func RegisterDataProductServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DataProductServiceServer) error

RegisterDataProductServiceHandlerServer registers the http handlers for service DataProductService to "mux". UnaryRPC :call DataProductServiceServer 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 RegisterDataProductServiceHandlerFromEndpoint instead.

func RegisterDataProductServiceServer

func RegisterDataProductServiceServer(s grpc.ServiceRegistrar, srv DataProductServiceServer)

Types

type CreateDataProductRequest

type CreateDataProductRequest struct {
	Dataproduct *v1alpha1.DataProduct `protobuf:"bytes,1,opt,name=dataproduct,proto3" json:"dataproduct,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDataProductRequest) Descriptor deprecated

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

Deprecated: Use CreateDataProductRequest.ProtoReflect.Descriptor instead.

func (*CreateDataProductRequest) GetDataproduct added in v0.4.472

func (x *CreateDataProductRequest) GetDataproduct() *v1alpha1.DataProduct

func (*CreateDataProductRequest) ProtoMessage

func (*CreateDataProductRequest) ProtoMessage()

func (*CreateDataProductRequest) ProtoReflect

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

func (*CreateDataProductRequest) Reset

func (x *CreateDataProductRequest) Reset()

func (*CreateDataProductRequest) String

func (x *CreateDataProductRequest) String() string

type CreateDataProductResponse

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

func (*CreateDataProductResponse) Descriptor deprecated

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

Deprecated: Use CreateDataProductResponse.ProtoReflect.Descriptor instead.

func (*CreateDataProductResponse) ProtoMessage

func (*CreateDataProductResponse) ProtoMessage()

func (*CreateDataProductResponse) ProtoReflect

func (*CreateDataProductResponse) Reset

func (x *CreateDataProductResponse) Reset()

func (*CreateDataProductResponse) String

func (x *CreateDataProductResponse) String() string

type DataProductServiceClient

type DataProductServiceClient interface {
	ListDataProducts(ctx context.Context, in *ListDataProductsRequest, opts ...grpc.CallOption) (*ListDataProductsResponse, error)
	CreateDataProduct(ctx context.Context, in *CreateDataProductRequest, opts ...grpc.CallOption) (*CreateDataProductResponse, error)
	GetDataProduct(ctx context.Context, in *GetDataProductRequest, opts ...grpc.CallOption) (*GetDataProductResponse, error)
	UpdateDataProduct(ctx context.Context, in *UpdateDataProductRequest, opts ...grpc.CallOption) (*UpdateDataProductResponse, error)
	DeleteDataProduct(ctx context.Context, in *DeleteDataProductRequest, opts ...grpc.CallOption) (*DeleteDataProductResponse, error)
}

DataProductServiceClient is the client API for DataProductService 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 DataProductServiceServer

type DataProductServiceServer interface {
	ListDataProducts(context.Context, *ListDataProductsRequest) (*ListDataProductsResponse, error)
	CreateDataProduct(context.Context, *CreateDataProductRequest) (*CreateDataProductResponse, error)
	GetDataProduct(context.Context, *GetDataProductRequest) (*GetDataProductResponse, error)
	UpdateDataProduct(context.Context, *UpdateDataProductRequest) (*UpdateDataProductResponse, error)
	DeleteDataProduct(context.Context, *DeleteDataProductRequest) (*DeleteDataProductResponse, error)
	// contains filtered or unexported methods
}

DataProductServiceServer is the server API for DataProductService service. All implementations must embed UnimplementedDataProductServiceServer for forward compatibility

type DeleteDataProductRequest

type DeleteDataProductRequest 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 (*DeleteDataProductRequest) Descriptor deprecated

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

Deprecated: Use DeleteDataProductRequest.ProtoReflect.Descriptor instead.

func (*DeleteDataProductRequest) GetName

func (x *DeleteDataProductRequest) GetName() string

func (*DeleteDataProductRequest) GetNamespace

func (x *DeleteDataProductRequest) GetNamespace() string

func (*DeleteDataProductRequest) ProtoMessage

func (*DeleteDataProductRequest) ProtoMessage()

func (*DeleteDataProductRequest) ProtoReflect

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

func (*DeleteDataProductRequest) Reset

func (x *DeleteDataProductRequest) Reset()

func (*DeleteDataProductRequest) String

func (x *DeleteDataProductRequest) String() string

type DeleteDataProductResponse

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

func (*DeleteDataProductResponse) Descriptor deprecated

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

Deprecated: Use DeleteDataProductResponse.ProtoReflect.Descriptor instead.

func (*DeleteDataProductResponse) ProtoMessage

func (*DeleteDataProductResponse) ProtoMessage()

func (*DeleteDataProductResponse) ProtoReflect

func (*DeleteDataProductResponse) Reset

func (x *DeleteDataProductResponse) Reset()

func (*DeleteDataProductResponse) String

func (x *DeleteDataProductResponse) String() string

type GetDataProductRequest

type GetDataProductRequest 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 (*GetDataProductRequest) Descriptor deprecated

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

Deprecated: Use GetDataProductRequest.ProtoReflect.Descriptor instead.

func (*GetDataProductRequest) GetName

func (x *GetDataProductRequest) GetName() string

func (*GetDataProductRequest) GetNamespace

func (x *GetDataProductRequest) GetNamespace() string

func (*GetDataProductRequest) ProtoMessage

func (*GetDataProductRequest) ProtoMessage()

func (*GetDataProductRequest) ProtoReflect

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

func (*GetDataProductRequest) Reset

func (x *GetDataProductRequest) Reset()

func (*GetDataProductRequest) String

func (x *GetDataProductRequest) String() string

type GetDataProductResponse

type GetDataProductResponse struct {
	Dataproduct *v1alpha1.DataProduct  `protobuf:"bytes,1,opt,name=dataproduct,proto3" json:"dataproduct,omitempty"`
	Alerts      []*v1alpha11.Alert     `protobuf:"bytes,2,rep,name=alerts,proto3" json:"alerts,omitempty"`
	Datasets    []*v1alpha1.Dataset    `protobuf:"bytes,3,rep,name=datasets,proto3" json:"datasets,omitempty"`
	Studies     []*v1alpha12.Study     `protobuf:"bytes,4,rep,name=studies,proto3" json:"studies,omitempty"`
	Models      []*v1alpha12.Model     `protobuf:"bytes,5,rep,name=models,proto3" json:"models,omitempty"`
	Predictors  []*v1alpha13.Predictor `protobuf:"bytes,6,rep,name=predictors,proto3" json:"predictors,omitempty"`
	Yaml        string                 `protobuf:"bytes,7,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDataProductResponse) Descriptor deprecated

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

Deprecated: Use GetDataProductResponse.ProtoReflect.Descriptor instead.

func (*GetDataProductResponse) GetAlerts

func (x *GetDataProductResponse) GetAlerts() []*v1alpha11.Alert

func (*GetDataProductResponse) GetDataproduct added in v0.4.479

func (x *GetDataProductResponse) GetDataproduct() *v1alpha1.DataProduct

func (*GetDataProductResponse) GetDatasets

func (x *GetDataProductResponse) GetDatasets() []*v1alpha1.Dataset

func (*GetDataProductResponse) GetModels

func (x *GetDataProductResponse) GetModels() []*v1alpha12.Model

func (*GetDataProductResponse) GetPredictors

func (x *GetDataProductResponse) GetPredictors() []*v1alpha13.Predictor

func (*GetDataProductResponse) GetStudies

func (x *GetDataProductResponse) GetStudies() []*v1alpha12.Study

func (*GetDataProductResponse) GetYaml

func (x *GetDataProductResponse) GetYaml() string

func (*GetDataProductResponse) ProtoMessage

func (*GetDataProductResponse) ProtoMessage()

func (*GetDataProductResponse) ProtoReflect

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

func (*GetDataProductResponse) Reset

func (x *GetDataProductResponse) Reset()

func (*GetDataProductResponse) String

func (x *GetDataProductResponse) String() string

type ListDataProductsRequest

type ListDataProductsRequest 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 (*ListDataProductsRequest) Descriptor deprecated

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

Deprecated: Use ListDataProductsRequest.ProtoReflect.Descriptor instead.

func (*ListDataProductsRequest) GetLabels

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

func (*ListDataProductsRequest) GetNamespace

func (x *ListDataProductsRequest) GetNamespace() string

func (*ListDataProductsRequest) GetOrderBy added in v0.4.414

func (x *ListDataProductsRequest) GetOrderBy() string

func (*ListDataProductsRequest) GetPageSize added in v0.4.414

func (x *ListDataProductsRequest) GetPageSize() int32

func (*ListDataProductsRequest) GetPageToken added in v0.4.414

func (x *ListDataProductsRequest) GetPageToken() string

func (*ListDataProductsRequest) ProtoMessage

func (*ListDataProductsRequest) ProtoMessage()

func (*ListDataProductsRequest) ProtoReflect

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

func (*ListDataProductsRequest) Reset

func (x *ListDataProductsRequest) Reset()

func (*ListDataProductsRequest) String

func (x *ListDataProductsRequest) String() string

type ListDataProductsResponse

type ListDataProductsResponse struct {
	Dataproducts  *v1alpha1.DataProductList `protobuf:"bytes,1,opt,name=dataproducts,proto3" json:"dataproducts,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 (*ListDataProductsResponse) Descriptor deprecated

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

Deprecated: Use ListDataProductsResponse.ProtoReflect.Descriptor instead.

func (*ListDataProductsResponse) GetDataproducts added in v0.4.472

func (x *ListDataProductsResponse) GetDataproducts() *v1alpha1.DataProductList

func (*ListDataProductsResponse) GetNextPageToken added in v0.4.472

func (x *ListDataProductsResponse) GetNextPageToken() string

func (*ListDataProductsResponse) ProtoMessage

func (*ListDataProductsResponse) ProtoMessage()

func (*ListDataProductsResponse) ProtoReflect

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

func (*ListDataProductsResponse) Reset

func (x *ListDataProductsResponse) Reset()

func (*ListDataProductsResponse) String

func (x *ListDataProductsResponse) String() string

type UnimplementedDataProductServiceServer

type UnimplementedDataProductServiceServer struct {
}

UnimplementedDataProductServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDataProductServiceServer) CreateDataProduct

func (UnimplementedDataProductServiceServer) DeleteDataProduct

func (UnimplementedDataProductServiceServer) GetDataProduct

func (UnimplementedDataProductServiceServer) ListDataProducts

func (UnimplementedDataProductServiceServer) UpdateDataProduct

type UnsafeDataProductServiceServer added in v0.4.687

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

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

type UpdateDataProductRequest

type UpdateDataProductRequest struct {
	Dataproduct *v1alpha1.DataProduct `protobuf:"bytes,1,opt,name=dataproduct,proto3" json:"dataproduct,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 (*UpdateDataProductRequest) Descriptor deprecated

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

Deprecated: Use UpdateDataProductRequest.ProtoReflect.Descriptor instead.

func (*UpdateDataProductRequest) GetDataproduct added in v0.4.475

func (x *UpdateDataProductRequest) GetDataproduct() *v1alpha1.DataProduct

func (*UpdateDataProductRequest) GetFieldMask added in v0.4.422

func (x *UpdateDataProductRequest) GetFieldMask() *field_mask.FieldMask

func (*UpdateDataProductRequest) ProtoMessage

func (*UpdateDataProductRequest) ProtoMessage()

func (*UpdateDataProductRequest) ProtoReflect

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

func (*UpdateDataProductRequest) Reset

func (x *UpdateDataProductRequest) Reset()

func (*UpdateDataProductRequest) String

func (x *UpdateDataProductRequest) String() string

type UpdateDataProductResponse

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

func (*UpdateDataProductResponse) Descriptor deprecated

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

Deprecated: Use UpdateDataProductResponse.ProtoReflect.Descriptor instead.

func (*UpdateDataProductResponse) ProtoMessage

func (*UpdateDataProductResponse) ProtoMessage()

func (*UpdateDataProductResponse) ProtoReflect

func (*UpdateDataProductResponse) Reset

func (x *UpdateDataProductResponse) Reset()

func (*UpdateDataProductResponse) String

func (x *UpdateDataProductResponse) String() string

Jump to

Keyboard shortcuts

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