v1

package
v0.5.77 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 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 File_github_com_metaprov_modelaapi_services_modelcompilerrun_v1_modelcompilerrun_proto protoreflect.FileDescriptor
View Source
var ModelCompilerRunService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.modelcompilerrun.v1.ModelCompilerRunService",
	HandlerType: (*ModelCompilerRunServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListModelCompilerRuns",
			Handler:    _ModelCompilerRunService_ListModelCompilerRuns_Handler,
		},
		{
			MethodName: "CreateModelCompilerRun",
			Handler:    _ModelCompilerRunService_CreateModelCompilerRun_Handler,
		},
		{
			MethodName: "GetModelCompilerRun",
			Handler:    _ModelCompilerRunService_GetModelCompilerRun_Handler,
		},
		{
			MethodName: "UpdateModelCompilerRun",
			Handler:    _ModelCompilerRunService_UpdateModelCompilerRun_Handler,
		},
		{
			MethodName: "DeleteModelCompilerRun",
			Handler:    _ModelCompilerRunService_DeleteModelCompilerRun_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/modelcompilerrun/v1/modelcompilerrun.proto",
}

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

Functions

func RegisterModelCompilerRunServiceHandler added in v0.4.687

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

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

func RegisterModelCompilerRunServiceHandlerClient added in v0.4.687

func RegisterModelCompilerRunServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ModelCompilerRunServiceClient) error

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

func RegisterModelCompilerRunServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterModelCompilerRunServiceHandlerServer added in v0.4.687

func RegisterModelCompilerRunServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ModelCompilerRunServiceServer) error

RegisterModelCompilerRunServiceHandlerServer registers the http handlers for service ModelCompilerRunService to "mux". UnaryRPC :call ModelCompilerRunServiceServer 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 RegisterModelCompilerRunServiceHandlerFromEndpoint instead.

func RegisterModelCompilerRunServiceServer

func RegisterModelCompilerRunServiceServer(s grpc.ServiceRegistrar, srv ModelCompilerRunServiceServer)

Types

type CreateModelCompilerRunRequest

type CreateModelCompilerRunRequest struct {
	Modelcompilerrun *v1alpha1.ModelCompilerRun `protobuf:"bytes,1,opt,name=modelcompilerrun,proto3" json:"modelcompilerrun,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateModelCompilerRunRequest) Descriptor deprecated

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

Deprecated: Use CreateModelCompilerRunRequest.ProtoReflect.Descriptor instead.

func (*CreateModelCompilerRunRequest) GetModelcompilerrun added in v0.4.480

func (x *CreateModelCompilerRunRequest) GetModelcompilerrun() *v1alpha1.ModelCompilerRun

func (*CreateModelCompilerRunRequest) ProtoMessage

func (*CreateModelCompilerRunRequest) ProtoMessage()

func (*CreateModelCompilerRunRequest) ProtoReflect

func (*CreateModelCompilerRunRequest) Reset

func (x *CreateModelCompilerRunRequest) Reset()

func (*CreateModelCompilerRunRequest) String

type CreateModelCompilerRunResponse

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

func (*CreateModelCompilerRunResponse) Descriptor deprecated

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

Deprecated: Use CreateModelCompilerRunResponse.ProtoReflect.Descriptor instead.

func (*CreateModelCompilerRunResponse) ProtoMessage

func (*CreateModelCompilerRunResponse) ProtoMessage()

func (*CreateModelCompilerRunResponse) ProtoReflect

func (*CreateModelCompilerRunResponse) Reset

func (x *CreateModelCompilerRunResponse) Reset()

func (*CreateModelCompilerRunResponse) String

type DeleteModelCompilerRunRequest

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

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

Deprecated: Use DeleteModelCompilerRunRequest.ProtoReflect.Descriptor instead.

func (*DeleteModelCompilerRunRequest) GetName

func (*DeleteModelCompilerRunRequest) GetNamespace

func (x *DeleteModelCompilerRunRequest) GetNamespace() string

func (*DeleteModelCompilerRunRequest) ProtoMessage

func (*DeleteModelCompilerRunRequest) ProtoMessage()

func (*DeleteModelCompilerRunRequest) ProtoReflect

func (*DeleteModelCompilerRunRequest) Reset

func (x *DeleteModelCompilerRunRequest) Reset()

func (*DeleteModelCompilerRunRequest) String

type DeleteModelCompilerRunResponse

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

func (*DeleteModelCompilerRunResponse) Descriptor deprecated

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

Deprecated: Use DeleteModelCompilerRunResponse.ProtoReflect.Descriptor instead.

func (*DeleteModelCompilerRunResponse) ProtoMessage

func (*DeleteModelCompilerRunResponse) ProtoMessage()

func (*DeleteModelCompilerRunResponse) ProtoReflect

func (*DeleteModelCompilerRunResponse) Reset

func (x *DeleteModelCompilerRunResponse) Reset()

func (*DeleteModelCompilerRunResponse) String

type GetModelCompilerRunRequest

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

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

Deprecated: Use GetModelCompilerRunRequest.ProtoReflect.Descriptor instead.

func (*GetModelCompilerRunRequest) GetName

func (x *GetModelCompilerRunRequest) GetName() string

func (*GetModelCompilerRunRequest) GetNamespace

func (x *GetModelCompilerRunRequest) GetNamespace() string

func (*GetModelCompilerRunRequest) ProtoMessage

func (*GetModelCompilerRunRequest) ProtoMessage()

func (*GetModelCompilerRunRequest) ProtoReflect

func (*GetModelCompilerRunRequest) Reset

func (x *GetModelCompilerRunRequest) Reset()

func (*GetModelCompilerRunRequest) String

func (x *GetModelCompilerRunRequest) String() string

type GetModelCompilerRunResponse

type GetModelCompilerRunResponse struct {
	Modelcompilerrun *v1alpha1.ModelCompilerRun `protobuf:"bytes,1,opt,name=modelcompilerrun,proto3" json:"modelcompilerrun,omitempty"`
	Yaml             string                     `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*GetModelCompilerRunResponse) Descriptor deprecated

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

Deprecated: Use GetModelCompilerRunResponse.ProtoReflect.Descriptor instead.

func (*GetModelCompilerRunResponse) GetModelcompilerrun added in v0.4.480

func (x *GetModelCompilerRunResponse) GetModelcompilerrun() *v1alpha1.ModelCompilerRun

func (*GetModelCompilerRunResponse) GetYaml

func (x *GetModelCompilerRunResponse) GetYaml() string

func (*GetModelCompilerRunResponse) ProtoMessage

func (*GetModelCompilerRunResponse) ProtoMessage()

func (*GetModelCompilerRunResponse) ProtoReflect

func (*GetModelCompilerRunResponse) Reset

func (x *GetModelCompilerRunResponse) Reset()

func (*GetModelCompilerRunResponse) String

func (x *GetModelCompilerRunResponse) String() string

type ListModelCompilerRunsRequest

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

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

Deprecated: Use ListModelCompilerRunsRequest.ProtoReflect.Descriptor instead.

func (*ListModelCompilerRunsRequest) GetLabels

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

func (*ListModelCompilerRunsRequest) GetNamespace

func (x *ListModelCompilerRunsRequest) GetNamespace() string

func (*ListModelCompilerRunsRequest) GetOrderBy added in v0.4.414

func (x *ListModelCompilerRunsRequest) GetOrderBy() string

func (*ListModelCompilerRunsRequest) GetPageSize added in v0.4.414

func (x *ListModelCompilerRunsRequest) GetPageSize() int32

func (*ListModelCompilerRunsRequest) GetPageToken added in v0.4.414

func (x *ListModelCompilerRunsRequest) GetPageToken() string

func (*ListModelCompilerRunsRequest) ProtoMessage

func (*ListModelCompilerRunsRequest) ProtoMessage()

func (*ListModelCompilerRunsRequest) ProtoReflect

func (*ListModelCompilerRunsRequest) Reset

func (x *ListModelCompilerRunsRequest) Reset()

func (*ListModelCompilerRunsRequest) String

type ListModelCompilerRunsResponse

type ListModelCompilerRunsResponse struct {
	Modelcompilerruns *v1alpha1.ModelCompilerRunList `protobuf:"bytes,1,opt,name=modelcompilerruns,proto3" json:"modelcompilerruns,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 (*ListModelCompilerRunsResponse) Descriptor deprecated

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

Deprecated: Use ListModelCompilerRunsResponse.ProtoReflect.Descriptor instead.

func (*ListModelCompilerRunsResponse) GetModelcompilerruns added in v0.4.480

func (x *ListModelCompilerRunsResponse) GetModelcompilerruns() *v1alpha1.ModelCompilerRunList

func (*ListModelCompilerRunsResponse) GetNextPageToken added in v0.4.472

func (x *ListModelCompilerRunsResponse) GetNextPageToken() string

func (*ListModelCompilerRunsResponse) ProtoMessage

func (*ListModelCompilerRunsResponse) ProtoMessage()

func (*ListModelCompilerRunsResponse) ProtoReflect

func (*ListModelCompilerRunsResponse) Reset

func (x *ListModelCompilerRunsResponse) Reset()

func (*ListModelCompilerRunsResponse) String

type ModelCompilerRunResponse

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

func (*ModelCompilerRunResponse) Descriptor deprecated

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

Deprecated: Use ModelCompilerRunResponse.ProtoReflect.Descriptor instead.

func (*ModelCompilerRunResponse) ProtoMessage

func (*ModelCompilerRunResponse) ProtoMessage()

func (*ModelCompilerRunResponse) ProtoReflect

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

func (*ModelCompilerRunResponse) Reset

func (x *ModelCompilerRunResponse) Reset()

func (*ModelCompilerRunResponse) String

func (x *ModelCompilerRunResponse) String() string

type ModelCompilerRunServiceClient

type ModelCompilerRunServiceClient interface {
	ListModelCompilerRuns(ctx context.Context, in *ListModelCompilerRunsRequest, opts ...grpc.CallOption) (*ListModelCompilerRunsResponse, error)
	CreateModelCompilerRun(ctx context.Context, in *CreateModelCompilerRunRequest, opts ...grpc.CallOption) (*CreateModelCompilerRunResponse, error)
	GetModelCompilerRun(ctx context.Context, in *GetModelCompilerRunRequest, opts ...grpc.CallOption) (*GetModelCompilerRunResponse, error)
	UpdateModelCompilerRun(ctx context.Context, in *UpdateModelCompilerRunRequest, opts ...grpc.CallOption) (*UpdateModelCompilerRunResponse, error)
	DeleteModelCompilerRun(ctx context.Context, in *DeleteModelCompilerRunRequest, opts ...grpc.CallOption) (*DeleteModelCompilerRunResponse, error)
}

ModelCompilerRunServiceClient is the client API for ModelCompilerRunService 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 ModelCompilerRunServiceServer

type ModelCompilerRunServiceServer interface {
	ListModelCompilerRuns(context.Context, *ListModelCompilerRunsRequest) (*ListModelCompilerRunsResponse, error)
	CreateModelCompilerRun(context.Context, *CreateModelCompilerRunRequest) (*CreateModelCompilerRunResponse, error)
	GetModelCompilerRun(context.Context, *GetModelCompilerRunRequest) (*GetModelCompilerRunResponse, error)
	UpdateModelCompilerRun(context.Context, *UpdateModelCompilerRunRequest) (*UpdateModelCompilerRunResponse, error)
	DeleteModelCompilerRun(context.Context, *DeleteModelCompilerRunRequest) (*DeleteModelCompilerRunResponse, error)
	// contains filtered or unexported methods
}

ModelCompilerRunServiceServer is the server API for ModelCompilerRunService service. All implementations must embed UnimplementedModelCompilerRunServiceServer for forward compatibility

type UnimplementedModelCompilerRunServiceServer

type UnimplementedModelCompilerRunServiceServer struct {
}

UnimplementedModelCompilerRunServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedModelCompilerRunServiceServer) CreateModelCompilerRun

func (UnimplementedModelCompilerRunServiceServer) DeleteModelCompilerRun

func (UnimplementedModelCompilerRunServiceServer) GetModelCompilerRun

func (UnimplementedModelCompilerRunServiceServer) ListModelCompilerRuns

func (UnimplementedModelCompilerRunServiceServer) UpdateModelCompilerRun

type UnsafeModelCompilerRunServiceServer added in v0.4.687

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

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

type UpdateModelCompilerRunRequest

type UpdateModelCompilerRunRequest struct {
	Modelcompilerrun *v1alpha1.ModelCompilerRun `protobuf:"bytes,1,opt,name=modelcompilerrun,proto3" json:"modelcompilerrun,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 (*UpdateModelCompilerRunRequest) Descriptor deprecated

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

Deprecated: Use UpdateModelCompilerRunRequest.ProtoReflect.Descriptor instead.

func (*UpdateModelCompilerRunRequest) GetFieldMask added in v0.4.422

func (*UpdateModelCompilerRunRequest) GetModelcompilerrun added in v0.4.480

func (x *UpdateModelCompilerRunRequest) GetModelcompilerrun() *v1alpha1.ModelCompilerRun

func (*UpdateModelCompilerRunRequest) ProtoMessage

func (*UpdateModelCompilerRunRequest) ProtoMessage()

func (*UpdateModelCompilerRunRequest) ProtoReflect

func (*UpdateModelCompilerRunRequest) Reset

func (x *UpdateModelCompilerRunRequest) Reset()

func (*UpdateModelCompilerRunRequest) String

type UpdateModelCompilerRunResponse

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

func (*UpdateModelCompilerRunResponse) Descriptor deprecated

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

Deprecated: Use UpdateModelCompilerRunResponse.ProtoReflect.Descriptor instead.

func (*UpdateModelCompilerRunResponse) ProtoMessage

func (*UpdateModelCompilerRunResponse) ProtoMessage()

func (*UpdateModelCompilerRunResponse) ProtoReflect

func (*UpdateModelCompilerRunResponse) Reset

func (x *UpdateModelCompilerRunResponse) Reset()

func (*UpdateModelCompilerRunResponse) String

Jump to

Keyboard shortcuts

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