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: 19 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_notebookrun_v1_notebookrun_proto protoreflect.FileDescriptor
View Source
var NotebookRunService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.notebookrun.v1.NotebookRunService",
	HandlerType: (*NotebookRunServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListNotebookRuns",
			Handler:    _NotebookRunService_ListNotebookRuns_Handler,
		},
		{
			MethodName: "CreateNotebookRun",
			Handler:    _NotebookRunService_CreateNotebookRun_Handler,
		},
		{
			MethodName: "GetNotebookRun",
			Handler:    _NotebookRunService_GetNotebookRun_Handler,
		},
		{
			MethodName: "UpdateNotebookRun",
			Handler:    _NotebookRunService_UpdateNotebookRun_Handler,
		},
		{
			MethodName: "DeleteNotebookRun",
			Handler:    _NotebookRunService_DeleteNotebookRun_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/notebookrun/v1/notebookrun.proto",
}

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

Functions

func RegisterNotebookRunServiceHandler added in v0.4.687

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

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

func RegisterNotebookRunServiceHandlerClient added in v0.4.687

func RegisterNotebookRunServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NotebookRunServiceClient) error

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

func RegisterNotebookRunServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterNotebookRunServiceHandlerServer added in v0.4.687

func RegisterNotebookRunServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NotebookRunServiceServer) error

RegisterNotebookRunServiceHandlerServer registers the http handlers for service NotebookRunService to "mux". UnaryRPC :call NotebookRunServiceServer 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 RegisterNotebookRunServiceHandlerFromEndpoint instead.

func RegisterNotebookRunServiceServer

func RegisterNotebookRunServiceServer(s grpc.ServiceRegistrar, srv NotebookRunServiceServer)

Types

type CreateNotebookRunRequest

type CreateNotebookRunRequest struct {
	Notebookrun *v1alpha1.NotebookRun `protobuf:"bytes,1,opt,name=notebookrun,proto3" json:"notebookrun,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateNotebookRunRequest) Descriptor deprecated

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

Deprecated: Use CreateNotebookRunRequest.ProtoReflect.Descriptor instead.

func (*CreateNotebookRunRequest) GetNotebookrun added in v0.4.472

func (x *CreateNotebookRunRequest) GetNotebookrun() *v1alpha1.NotebookRun

func (*CreateNotebookRunRequest) ProtoMessage

func (*CreateNotebookRunRequest) ProtoMessage()

func (*CreateNotebookRunRequest) ProtoReflect

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

func (*CreateNotebookRunRequest) Reset

func (x *CreateNotebookRunRequest) Reset()

func (*CreateNotebookRunRequest) String

func (x *CreateNotebookRunRequest) String() string

type CreateNotebookRunResponse

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

func (*CreateNotebookRunResponse) Descriptor deprecated

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

Deprecated: Use CreateNotebookRunResponse.ProtoReflect.Descriptor instead.

func (*CreateNotebookRunResponse) ProtoMessage

func (*CreateNotebookRunResponse) ProtoMessage()

func (*CreateNotebookRunResponse) ProtoReflect

func (*CreateNotebookRunResponse) Reset

func (x *CreateNotebookRunResponse) Reset()

func (*CreateNotebookRunResponse) String

func (x *CreateNotebookRunResponse) String() string

type DeleteNotebookRunRequest

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

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

Deprecated: Use DeleteNotebookRunRequest.ProtoReflect.Descriptor instead.

func (*DeleteNotebookRunRequest) GetName

func (x *DeleteNotebookRunRequest) GetName() string

func (*DeleteNotebookRunRequest) GetNamespace

func (x *DeleteNotebookRunRequest) GetNamespace() string

func (*DeleteNotebookRunRequest) ProtoMessage

func (*DeleteNotebookRunRequest) ProtoMessage()

func (*DeleteNotebookRunRequest) ProtoReflect

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

func (*DeleteNotebookRunRequest) Reset

func (x *DeleteNotebookRunRequest) Reset()

func (*DeleteNotebookRunRequest) String

func (x *DeleteNotebookRunRequest) String() string

type DeleteNotebookRunResponse

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

func (*DeleteNotebookRunResponse) Descriptor deprecated

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

Deprecated: Use DeleteNotebookRunResponse.ProtoReflect.Descriptor instead.

func (*DeleteNotebookRunResponse) ProtoMessage

func (*DeleteNotebookRunResponse) ProtoMessage()

func (*DeleteNotebookRunResponse) ProtoReflect

func (*DeleteNotebookRunResponse) Reset

func (x *DeleteNotebookRunResponse) Reset()

func (*DeleteNotebookRunResponse) String

func (x *DeleteNotebookRunResponse) String() string

type GetNotebookRunRequest

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

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

Deprecated: Use GetNotebookRunRequest.ProtoReflect.Descriptor instead.

func (*GetNotebookRunRequest) GetName

func (x *GetNotebookRunRequest) GetName() string

func (*GetNotebookRunRequest) GetNamespace

func (x *GetNotebookRunRequest) GetNamespace() string

func (*GetNotebookRunRequest) ProtoMessage

func (*GetNotebookRunRequest) ProtoMessage()

func (*GetNotebookRunRequest) ProtoReflect

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

func (*GetNotebookRunRequest) Reset

func (x *GetNotebookRunRequest) Reset()

func (*GetNotebookRunRequest) String

func (x *GetNotebookRunRequest) String() string

type GetNotebookRunResponse

type GetNotebookRunResponse struct {
	Notbookrun *v1alpha1.NotebookRun `protobuf:"bytes,1,opt,name=notbookrun,proto3" json:"notbookrun,omitempty"`
	Yaml       string                `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNotebookRunResponse) Descriptor deprecated

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

Deprecated: Use GetNotebookRunResponse.ProtoReflect.Descriptor instead.

func (*GetNotebookRunResponse) GetNotbookrun added in v0.4.472

func (x *GetNotebookRunResponse) GetNotbookrun() *v1alpha1.NotebookRun

func (*GetNotebookRunResponse) GetYaml

func (x *GetNotebookRunResponse) GetYaml() string

func (*GetNotebookRunResponse) ProtoMessage

func (*GetNotebookRunResponse) ProtoMessage()

func (*GetNotebookRunResponse) ProtoReflect

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

func (*GetNotebookRunResponse) Reset

func (x *GetNotebookRunResponse) Reset()

func (*GetNotebookRunResponse) String

func (x *GetNotebookRunResponse) String() string

type ListNotebookRunsRequest

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

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

Deprecated: Use ListNotebookRunsRequest.ProtoReflect.Descriptor instead.

func (*ListNotebookRunsRequest) GetLabels

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

func (*ListNotebookRunsRequest) GetNamespace

func (x *ListNotebookRunsRequest) GetNamespace() string

func (*ListNotebookRunsRequest) GetOrderBy added in v0.4.414

func (x *ListNotebookRunsRequest) GetOrderBy() string

func (*ListNotebookRunsRequest) GetPageSize added in v0.4.414

func (x *ListNotebookRunsRequest) GetPageSize() int32

func (*ListNotebookRunsRequest) GetPageToken added in v0.4.414

func (x *ListNotebookRunsRequest) GetPageToken() string

func (*ListNotebookRunsRequest) ProtoMessage

func (*ListNotebookRunsRequest) ProtoMessage()

func (*ListNotebookRunsRequest) ProtoReflect

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

func (*ListNotebookRunsRequest) Reset

func (x *ListNotebookRunsRequest) Reset()

func (*ListNotebookRunsRequest) String

func (x *ListNotebookRunsRequest) String() string

type ListNotebookRunsResponse

type ListNotebookRunsResponse struct {
	Notebookruns  *v1alpha1.NotebookRunList `protobuf:"bytes,1,opt,name=notebookruns,proto3" json:"notebookruns,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 (*ListNotebookRunsResponse) Descriptor deprecated

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

Deprecated: Use ListNotebookRunsResponse.ProtoReflect.Descriptor instead.

func (*ListNotebookRunsResponse) GetNextPageToken added in v0.4.472

func (x *ListNotebookRunsResponse) GetNextPageToken() string

func (*ListNotebookRunsResponse) GetNotebookruns added in v0.4.472

func (x *ListNotebookRunsResponse) GetNotebookruns() *v1alpha1.NotebookRunList

func (*ListNotebookRunsResponse) ProtoMessage

func (*ListNotebookRunsResponse) ProtoMessage()

func (*ListNotebookRunsResponse) ProtoReflect

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

func (*ListNotebookRunsResponse) Reset

func (x *ListNotebookRunsResponse) Reset()

func (*ListNotebookRunsResponse) String

func (x *ListNotebookRunsResponse) String() string

type NotebookRunResponse

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

func (*NotebookRunResponse) Descriptor deprecated

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

Deprecated: Use NotebookRunResponse.ProtoReflect.Descriptor instead.

func (*NotebookRunResponse) ProtoMessage

func (*NotebookRunResponse) ProtoMessage()

func (*NotebookRunResponse) ProtoReflect

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

func (*NotebookRunResponse) Reset

func (x *NotebookRunResponse) Reset()

func (*NotebookRunResponse) String

func (x *NotebookRunResponse) String() string

type NotebookRunServiceClient

type NotebookRunServiceClient interface {
	ListNotebookRuns(ctx context.Context, in *ListNotebookRunsRequest, opts ...grpc.CallOption) (*ListNotebookRunsResponse, error)
	CreateNotebookRun(ctx context.Context, in *CreateNotebookRunRequest, opts ...grpc.CallOption) (*CreateNotebookRunResponse, error)
	GetNotebookRun(ctx context.Context, in *GetNotebookRunRequest, opts ...grpc.CallOption) (*GetNotebookRunResponse, error)
	UpdateNotebookRun(ctx context.Context, in *UpdateNotebookRunRequest, opts ...grpc.CallOption) (*UpdateNotebookRunResponse, error)
	DeleteNotebookRun(ctx context.Context, in *DeleteNotebookRunRequest, opts ...grpc.CallOption) (*DeleteNotebookRunResponse, error)
}

NotebookRunServiceClient is the client API for NotebookRunService 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 NotebookRunServiceServer

type NotebookRunServiceServer interface {
	ListNotebookRuns(context.Context, *ListNotebookRunsRequest) (*ListNotebookRunsResponse, error)
	CreateNotebookRun(context.Context, *CreateNotebookRunRequest) (*CreateNotebookRunResponse, error)
	GetNotebookRun(context.Context, *GetNotebookRunRequest) (*GetNotebookRunResponse, error)
	UpdateNotebookRun(context.Context, *UpdateNotebookRunRequest) (*UpdateNotebookRunResponse, error)
	DeleteNotebookRun(context.Context, *DeleteNotebookRunRequest) (*DeleteNotebookRunResponse, error)
	// contains filtered or unexported methods
}

NotebookRunServiceServer is the server API for NotebookRunService service. All implementations must embed UnimplementedNotebookRunServiceServer for forward compatibility

type UnimplementedNotebookRunServiceServer

type UnimplementedNotebookRunServiceServer struct {
}

UnimplementedNotebookRunServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNotebookRunServiceServer) CreateNotebookRun

func (UnimplementedNotebookRunServiceServer) DeleteNotebookRun

func (UnimplementedNotebookRunServiceServer) GetNotebookRun

func (UnimplementedNotebookRunServiceServer) ListNotebookRuns

func (UnimplementedNotebookRunServiceServer) UpdateNotebookRun

type UnsafeNotebookRunServiceServer added in v0.4.687

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

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

type UpdateNotebookRunRequest

type UpdateNotebookRunRequest struct {
	Notebookrun *v1alpha1.NotebookRun `protobuf:"bytes,1,opt,name=notebookrun,proto3" json:"notebookrun,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 (*UpdateNotebookRunRequest) Descriptor deprecated

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

Deprecated: Use UpdateNotebookRunRequest.ProtoReflect.Descriptor instead.

func (*UpdateNotebookRunRequest) GetFieldMask added in v0.4.422

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

func (*UpdateNotebookRunRequest) GetNotebookrun added in v0.4.487

func (x *UpdateNotebookRunRequest) GetNotebookrun() *v1alpha1.NotebookRun

func (*UpdateNotebookRunRequest) ProtoMessage

func (*UpdateNotebookRunRequest) ProtoMessage()

func (*UpdateNotebookRunRequest) ProtoReflect

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

func (*UpdateNotebookRunRequest) Reset

func (x *UpdateNotebookRunRequest) Reset()

func (*UpdateNotebookRunRequest) String

func (x *UpdateNotebookRunRequest) String() string

type UpdateNotebookRunResponse

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

func (*UpdateNotebookRunResponse) Descriptor deprecated

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

Deprecated: Use UpdateNotebookRunResponse.ProtoReflect.Descriptor instead.

func (*UpdateNotebookRunResponse) ProtoMessage

func (*UpdateNotebookRunResponse) ProtoMessage()

func (*UpdateNotebookRunResponse) ProtoReflect

func (*UpdateNotebookRunResponse) Reset

func (x *UpdateNotebookRunResponse) Reset()

func (*UpdateNotebookRunResponse) String

func (x *UpdateNotebookRunResponse) String() string

Jump to

Keyboard shortcuts

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