proto

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotebookServerService_CreateNotebookServer_FullMethodName         = "/proto.NotebookServerService/CreateNotebookServer"
	NotebookServerService_GetNotebookServer_FullMethodName            = "/proto.NotebookServerService/GetNotebookServer"
	NotebookServerService_UpdateNotebookServerSettings_FullMethodName = "/proto.NotebookServerService/UpdateNotebookServerSettings"
	NotebookServerService_DeleteNotebookServer_FullMethodName         = "/proto.NotebookServerService/DeleteNotebookServer"
	NotebookServerService_SwitchNotebookServer_FullMethodName         = "/proto.NotebookServerService/SwitchNotebookServer"
	NotebookServerService_ListNotebookServers_FullMethodName          = "/proto.NotebookServerService/ListNotebookServers"
)

Variables

View Source
var (
	NotebookServerErrorReason_name = map[int32]string{
		0: "NOTEBOOKSERVER_NOT_FOUND",
		1: "NOTEBOOKSERVER_VALIDATE_ERROR",
	}
	NotebookServerErrorReason_value = map[string]int32{
		"NOTEBOOKSERVER_NOT_FOUND":      0,
		"NOTEBOOKSERVER_VALIDATE_ERROR": 1,
	}
)

Enum value maps for NotebookServerErrorReason.

View Source
var File_internal_context_notebookserver_interface_grpc_proto_notebookserver_proto protoreflect.FileDescriptor
View Source
var NotebookServerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.NotebookServerService",
	HandlerType: (*NotebookServerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateNotebookServer",
			Handler:    _NotebookServerService_CreateNotebookServer_Handler,
		},
		{
			MethodName: "GetNotebookServer",
			Handler:    _NotebookServerService_GetNotebookServer_Handler,
		},
		{
			MethodName: "UpdateNotebookServerSettings",
			Handler:    _NotebookServerService_UpdateNotebookServerSettings_Handler,
		},
		{
			MethodName: "DeleteNotebookServer",
			Handler:    _NotebookServerService_DeleteNotebookServer_Handler,
		},
		{
			MethodName: "SwitchNotebookServer",
			Handler:    _NotebookServerService_SwitchNotebookServer_Handler,
		},
		{
			MethodName: "ListNotebookServers",
			Handler:    _NotebookServerService_ListNotebookServers_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/context/notebookserver/interface/grpc/proto/notebookserver.proto",
}

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

Functions

func ErrorNotebookserverNotFound

func ErrorNotebookserverNotFound(format string, args ...interface{}) *errors.Error

func ErrorNotebookserverValidateError

func ErrorNotebookserverValidateError(format string, args ...interface{}) *errors.Error

func IsNotebookserverNotFound

func IsNotebookserverNotFound(err error) bool

func IsNotebookserverValidateError

func IsNotebookserverValidateError(err error) bool

func RegisterNotebookServerServiceServer

func RegisterNotebookServerServiceServer(s grpc.ServiceRegistrar, srv NotebookServerServiceServer)

Types

type CreateNotebookServerRequest

type CreateNotebookServerRequest struct {
	WorkspaceID  string        `protobuf:"bytes,1,opt,name=workspaceID,proto3" json:"workspaceID,omitempty"`
	Image        string        `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	ResourceSize *ResourceSize `protobuf:"bytes,3,opt,name=resourceSize,proto3" json:"resourceSize,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateNotebookServerRequest) Descriptor deprecated

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

Deprecated: Use CreateNotebookServerRequest.ProtoReflect.Descriptor instead.

func (*CreateNotebookServerRequest) GetImage

func (x *CreateNotebookServerRequest) GetImage() string

func (*CreateNotebookServerRequest) GetResourceSize

func (x *CreateNotebookServerRequest) GetResourceSize() *ResourceSize

func (*CreateNotebookServerRequest) GetWorkspaceID

func (x *CreateNotebookServerRequest) GetWorkspaceID() string

func (*CreateNotebookServerRequest) ProtoMessage

func (*CreateNotebookServerRequest) ProtoMessage()

func (*CreateNotebookServerRequest) ProtoReflect

func (*CreateNotebookServerRequest) Reset

func (x *CreateNotebookServerRequest) Reset()

func (*CreateNotebookServerRequest) String

func (x *CreateNotebookServerRequest) String() string

type CreateNotebookServerResponse

type CreateNotebookServerResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateNotebookServerResponse) Descriptor deprecated

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

Deprecated: Use CreateNotebookServerResponse.ProtoReflect.Descriptor instead.

func (*CreateNotebookServerResponse) GetId

func (*CreateNotebookServerResponse) ProtoMessage

func (*CreateNotebookServerResponse) ProtoMessage()

func (*CreateNotebookServerResponse) ProtoReflect

func (*CreateNotebookServerResponse) Reset

func (x *CreateNotebookServerResponse) Reset()

func (*CreateNotebookServerResponse) String

type DeleteNotebookServerRequest

type DeleteNotebookServerRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteNotebookServerRequest) Descriptor deprecated

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

Deprecated: Use DeleteNotebookServerRequest.ProtoReflect.Descriptor instead.

func (*DeleteNotebookServerRequest) GetId

func (*DeleteNotebookServerRequest) ProtoMessage

func (*DeleteNotebookServerRequest) ProtoMessage()

func (*DeleteNotebookServerRequest) ProtoReflect

func (*DeleteNotebookServerRequest) Reset

func (x *DeleteNotebookServerRequest) Reset()

func (*DeleteNotebookServerRequest) String

func (x *DeleteNotebookServerRequest) String() string

type DeleteNotebookServerResponse

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

func (*DeleteNotebookServerResponse) Descriptor deprecated

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

Deprecated: Use DeleteNotebookServerResponse.ProtoReflect.Descriptor instead.

func (*DeleteNotebookServerResponse) ProtoMessage

func (*DeleteNotebookServerResponse) ProtoMessage()

func (*DeleteNotebookServerResponse) ProtoReflect

func (*DeleteNotebookServerResponse) Reset

func (x *DeleteNotebookServerResponse) Reset()

func (*DeleteNotebookServerResponse) String

type GPU

type GPU struct {
	Model  string  `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	Card   float64 `protobuf:"fixed64,2,opt,name=card,proto3" json:"card,omitempty"`
	Memory int64   `protobuf:"varint,3,opt,name=memory,proto3" json:"memory,omitempty"`
	// contains filtered or unexported fields
}

func (*GPU) Descriptor deprecated

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

Deprecated: Use GPU.ProtoReflect.Descriptor instead.

func (*GPU) GetCard

func (x *GPU) GetCard() float64

func (*GPU) GetMemory

func (x *GPU) GetMemory() int64

func (*GPU) GetModel

func (x *GPU) GetModel() string

func (*GPU) ProtoMessage

func (*GPU) ProtoMessage()

func (*GPU) ProtoReflect

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

func (*GPU) Reset

func (x *GPU) Reset()

func (*GPU) String

func (x *GPU) String() string

type GetNotebookServerRequest

type GetNotebookServerRequest struct {
	WorkspaceID string `protobuf:"bytes,1,opt,name=workspaceID,proto3" json:"workspaceID,omitempty"`
	Id          string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Notebook    string `protobuf:"bytes,3,opt,name=notebook,proto3" json:"notebook,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNotebookServerRequest) Descriptor deprecated

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

Deprecated: Use GetNotebookServerRequest.ProtoReflect.Descriptor instead.

func (*GetNotebookServerRequest) GetId

func (x *GetNotebookServerRequest) GetId() string

func (*GetNotebookServerRequest) GetNotebook

func (x *GetNotebookServerRequest) GetNotebook() string

func (*GetNotebookServerRequest) GetWorkspaceID

func (x *GetNotebookServerRequest) GetWorkspaceID() string

func (*GetNotebookServerRequest) ProtoMessage

func (*GetNotebookServerRequest) ProtoMessage()

func (*GetNotebookServerRequest) ProtoReflect

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

func (*GetNotebookServerRequest) Reset

func (x *GetNotebookServerRequest) Reset()

func (*GetNotebookServerRequest) String

func (x *GetNotebookServerRequest) String() string

type GetNotebookServerResponse

type GetNotebookServerResponse struct {
	Id           string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Image        string                 `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	ResourceSize *ResourceSize          `protobuf:"bytes,3,opt,name=resourceSize,proto3" json:"resourceSize,omitempty"`
	Status       string                 `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	CreatedAt    *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt    *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	AccessURL    string                 `protobuf:"bytes,7,opt,name=accessURL,proto3" json:"accessURL,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNotebookServerResponse) Descriptor deprecated

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

Deprecated: Use GetNotebookServerResponse.ProtoReflect.Descriptor instead.

func (*GetNotebookServerResponse) GetAccessURL

func (x *GetNotebookServerResponse) GetAccessURL() string

func (*GetNotebookServerResponse) GetCreatedAt

func (x *GetNotebookServerResponse) GetCreatedAt() *timestamppb.Timestamp

func (*GetNotebookServerResponse) GetId

func (x *GetNotebookServerResponse) GetId() string

func (*GetNotebookServerResponse) GetImage

func (x *GetNotebookServerResponse) GetImage() string

func (*GetNotebookServerResponse) GetResourceSize

func (x *GetNotebookServerResponse) GetResourceSize() *ResourceSize

func (*GetNotebookServerResponse) GetStatus

func (x *GetNotebookServerResponse) GetStatus() string

func (*GetNotebookServerResponse) GetUpdatedAt

func (x *GetNotebookServerResponse) GetUpdatedAt() *timestamppb.Timestamp

func (*GetNotebookServerResponse) ProtoMessage

func (*GetNotebookServerResponse) ProtoMessage()

func (*GetNotebookServerResponse) ProtoReflect

func (*GetNotebookServerResponse) Reset

func (x *GetNotebookServerResponse) Reset()

func (*GetNotebookServerResponse) String

func (x *GetNotebookServerResponse) String() string

type ListNotebookServersRequest

type ListNotebookServersRequest struct {
	WorkspaceID string `protobuf:"bytes,1,opt,name=workspaceID,proto3" json:"workspaceID,omitempty"`
	// contains filtered or unexported fields
}

func (*ListNotebookServersRequest) Descriptor deprecated

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

Deprecated: Use ListNotebookServersRequest.ProtoReflect.Descriptor instead.

func (*ListNotebookServersRequest) GetWorkspaceID

func (x *ListNotebookServersRequest) GetWorkspaceID() string

func (*ListNotebookServersRequest) ProtoMessage

func (*ListNotebookServersRequest) ProtoMessage()

func (*ListNotebookServersRequest) ProtoReflect

func (*ListNotebookServersRequest) Reset

func (x *ListNotebookServersRequest) Reset()

func (*ListNotebookServersRequest) String

func (x *ListNotebookServersRequest) String() string

type ListNotebookServersResponse

type ListNotebookServersResponse struct {
	Items []*NotebookServer `protobuf:"bytes,1,rep,name=Items,proto3" json:"Items,omitempty"`
	// contains filtered or unexported fields
}

func (*ListNotebookServersResponse) Descriptor deprecated

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

Deprecated: Use ListNotebookServersResponse.ProtoReflect.Descriptor instead.

func (*ListNotebookServersResponse) GetItems

func (*ListNotebookServersResponse) ProtoMessage

func (*ListNotebookServersResponse) ProtoMessage()

func (*ListNotebookServersResponse) ProtoReflect

func (*ListNotebookServersResponse) Reset

func (x *ListNotebookServersResponse) Reset()

func (*ListNotebookServersResponse) String

func (x *ListNotebookServersResponse) String() string

type NotebookServer

type NotebookServer struct {
	Id           string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Image        string                 `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	ResourceSize *ResourceSize          `protobuf:"bytes,3,opt,name=resourceSize,proto3" json:"resourceSize,omitempty"`
	Status       string                 `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	CreatedAt    *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt    *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*NotebookServer) Descriptor deprecated

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

Deprecated: Use NotebookServer.ProtoReflect.Descriptor instead.

func (*NotebookServer) GetCreatedAt

func (x *NotebookServer) GetCreatedAt() *timestamppb.Timestamp

func (*NotebookServer) GetId

func (x *NotebookServer) GetId() string

func (*NotebookServer) GetImage

func (x *NotebookServer) GetImage() string

func (*NotebookServer) GetResourceSize

func (x *NotebookServer) GetResourceSize() *ResourceSize

func (*NotebookServer) GetStatus

func (x *NotebookServer) GetStatus() string

func (*NotebookServer) GetUpdatedAt

func (x *NotebookServer) GetUpdatedAt() *timestamppb.Timestamp

func (*NotebookServer) ProtoMessage

func (*NotebookServer) ProtoMessage()

func (*NotebookServer) ProtoReflect

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

func (*NotebookServer) Reset

func (x *NotebookServer) Reset()

func (*NotebookServer) String

func (x *NotebookServer) String() string

type NotebookServerErrorReason

type NotebookServerErrorReason int32
const (
	NotebookServerErrorReason_NOTEBOOKSERVER_NOT_FOUND      NotebookServerErrorReason = 0
	NotebookServerErrorReason_NOTEBOOKSERVER_VALIDATE_ERROR NotebookServerErrorReason = 1
)

func (NotebookServerErrorReason) Descriptor

func (NotebookServerErrorReason) Enum

func (NotebookServerErrorReason) EnumDescriptor deprecated

func (NotebookServerErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use NotebookServerErrorReason.Descriptor instead.

func (NotebookServerErrorReason) Number

func (NotebookServerErrorReason) String

func (x NotebookServerErrorReason) String() string

func (NotebookServerErrorReason) Type

type NotebookServerServiceClient

type NotebookServerServiceClient interface {
	CreateNotebookServer(ctx context.Context, in *CreateNotebookServerRequest, opts ...grpc.CallOption) (*CreateNotebookServerResponse, error)
	GetNotebookServer(ctx context.Context, in *GetNotebookServerRequest, opts ...grpc.CallOption) (*GetNotebookServerResponse, error)
	UpdateNotebookServerSettings(ctx context.Context, in *UpdateNotebookServerSettingsRequest, opts ...grpc.CallOption) (*UpdateNotebookServerSettingsResponse, error)
	DeleteNotebookServer(ctx context.Context, in *DeleteNotebookServerRequest, opts ...grpc.CallOption) (*DeleteNotebookServerResponse, error)
	SwitchNotebookServer(ctx context.Context, in *SwitchNotebookServerRequest, opts ...grpc.CallOption) (*SwitchNotebookServerResponse, error)
	ListNotebookServers(ctx context.Context, in *ListNotebookServersRequest, opts ...grpc.CallOption) (*ListNotebookServersResponse, error)
}

NotebookServerServiceClient is the client API for NotebookServerService 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 NotebookServerServiceServer

NotebookServerServiceServer is the server API for NotebookServerService service. All implementations must embed UnimplementedNotebookServerServiceServer for forward compatibility

type ResourceSize

type ResourceSize struct {
	Cpu    float64 `protobuf:"fixed64,1,opt,name=cpu,proto3" json:"cpu,omitempty"`
	Memory int64   `protobuf:"varint,2,opt,name=memory,proto3" json:"memory,omitempty"`
	Disk   int64   `protobuf:"varint,3,opt,name=disk,proto3" json:"disk,omitempty"`
	Gpu    *GPU    `protobuf:"bytes,4,opt,name=gpu,proto3" json:"gpu,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceSize) Descriptor deprecated

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

Deprecated: Use ResourceSize.ProtoReflect.Descriptor instead.

func (*ResourceSize) GetCpu

func (x *ResourceSize) GetCpu() float64

func (*ResourceSize) GetDisk

func (x *ResourceSize) GetDisk() int64

func (*ResourceSize) GetGpu

func (x *ResourceSize) GetGpu() *GPU

func (*ResourceSize) GetMemory

func (x *ResourceSize) GetMemory() int64

func (*ResourceSize) ProtoMessage

func (*ResourceSize) ProtoMessage()

func (*ResourceSize) ProtoReflect

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

func (*ResourceSize) Reset

func (x *ResourceSize) Reset()

func (*ResourceSize) String

func (x *ResourceSize) String() string

type SwitchNotebookServerRequest

type SwitchNotebookServerRequest struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Onoff bool   `protobuf:"varint,2,opt,name=onoff,proto3" json:"onoff,omitempty"`
	// contains filtered or unexported fields
}

func (*SwitchNotebookServerRequest) Descriptor deprecated

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

Deprecated: Use SwitchNotebookServerRequest.ProtoReflect.Descriptor instead.

func (*SwitchNotebookServerRequest) GetId

func (*SwitchNotebookServerRequest) GetOnoff

func (x *SwitchNotebookServerRequest) GetOnoff() bool

func (*SwitchNotebookServerRequest) ProtoMessage

func (*SwitchNotebookServerRequest) ProtoMessage()

func (*SwitchNotebookServerRequest) ProtoReflect

func (*SwitchNotebookServerRequest) Reset

func (x *SwitchNotebookServerRequest) Reset()

func (*SwitchNotebookServerRequest) String

func (x *SwitchNotebookServerRequest) String() string

type SwitchNotebookServerResponse

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

func (*SwitchNotebookServerResponse) Descriptor deprecated

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

Deprecated: Use SwitchNotebookServerResponse.ProtoReflect.Descriptor instead.

func (*SwitchNotebookServerResponse) ProtoMessage

func (*SwitchNotebookServerResponse) ProtoMessage()

func (*SwitchNotebookServerResponse) ProtoReflect

func (*SwitchNotebookServerResponse) Reset

func (x *SwitchNotebookServerResponse) Reset()

func (*SwitchNotebookServerResponse) String

type UnimplementedNotebookServerServiceServer

type UnimplementedNotebookServerServiceServer struct {
}

UnimplementedNotebookServerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNotebookServerServiceServer) CreateNotebookServer

func (UnimplementedNotebookServerServiceServer) DeleteNotebookServer

func (UnimplementedNotebookServerServiceServer) GetNotebookServer

func (UnimplementedNotebookServerServiceServer) ListNotebookServers

func (UnimplementedNotebookServerServiceServer) SwitchNotebookServer

type UnsafeNotebookServerServiceServer

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

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

type UpdateNotebookServerSettingsRequest

type UpdateNotebookServerSettingsRequest struct {
	Id           string        `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Image        string        `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	ResourceSize *ResourceSize `protobuf:"bytes,3,opt,name=resourceSize,proto3" json:"resourceSize,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateNotebookServerSettingsRequest) Descriptor deprecated

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

Deprecated: Use UpdateNotebookServerSettingsRequest.ProtoReflect.Descriptor instead.

func (*UpdateNotebookServerSettingsRequest) GetId

func (*UpdateNotebookServerSettingsRequest) GetImage

func (*UpdateNotebookServerSettingsRequest) GetResourceSize

func (x *UpdateNotebookServerSettingsRequest) GetResourceSize() *ResourceSize

func (*UpdateNotebookServerSettingsRequest) ProtoMessage

func (*UpdateNotebookServerSettingsRequest) ProtoMessage()

func (*UpdateNotebookServerSettingsRequest) ProtoReflect

func (*UpdateNotebookServerSettingsRequest) Reset

func (*UpdateNotebookServerSettingsRequest) String

type UpdateNotebookServerSettingsResponse

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

func (*UpdateNotebookServerSettingsResponse) Descriptor deprecated

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

Deprecated: Use UpdateNotebookServerSettingsResponse.ProtoReflect.Descriptor instead.

func (*UpdateNotebookServerSettingsResponse) ProtoMessage

func (*UpdateNotebookServerSettingsResponse) ProtoMessage()

func (*UpdateNotebookServerSettingsResponse) ProtoReflect

func (*UpdateNotebookServerSettingsResponse) Reset

func (*UpdateNotebookServerSettingsResponse) String

Jump to

Keyboard shortcuts

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