service

package
v0.19.1069 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(params Params) *service

Types

type CreateCellRequest

type CreateCellRequest struct {
	Name             string            `json:"name" validate:"max=255"`
	InlineContents   string            `json:"inline_contents" validate:"required_without=Command"`
	Command          string            `json:"command" validate:"required_without=InlineContents"`
	EnvVars          map[string]string `json:"env_vars"`
	Timeout          int               `json:"timeout,omitempty" validate:"omitempty,min=1,max=3600"`
	Role             string            `json:"role"`
	EnableKubeConfig *bool             `json:"enable_kube_config" extensions:"x-nullable"`
}

type CreateNotebookRequest

type CreateNotebookRequest struct {
	Name        string `json:"name" validate:"max=255"`
	Description string `json:"description" validate:"max=2000"`
}

type Params

type Params struct {
	fx.In

	V              *validator.Validate
	DB             *gorm.DB `name:"psql"`
	L              *zap.Logger
	Cfg            *internal.Config
	InstallHelpers *installhelpers.Helpers
	EndpointAudit  *apiPkg.EndpointAudit
	FeaturesClient *features.Features
	NotebookClient *notebookclient.Client
	QueueClient    *queueclient.Client
}

type ReorderCellsRequest

type ReorderCellsRequest struct {
	CellIDs []string `json:"cell_ids" validate:"required,min=1"`
}

type RunCellRequest

type RunCellRequest struct {
	// IdempotencyKey deduplicates retried run requests. Optional; a server-side
	// key is generated when empty.
	IdempotencyKey string `json:"idempotency_key" validate:"omitempty,max=255"`
}

type UpdateCellRequest

type UpdateCellRequest struct {
	Name             *string            `json:"name" validate:"omitempty,max=255"`
	InlineContents   *string            `json:"inline_contents"`
	Command          *string            `json:"command"`
	EnvVars          *map[string]string `json:"env_vars"`
	Timeout          *int               `json:"timeout" validate:"omitempty,min=1,max=3600"`
	Role             *string            `json:"role"`
	EnableKubeConfig *bool              `json:"enable_kube_config" extensions:"x-nullable"`
}

type UpdateNotebookRequest

type UpdateNotebookRequest struct {
	Name        *string `json:"name" validate:"omitempty,max=255"`
	Description *string `json:"description" validate:"omitempty,max=2000"`
	Status      *string `json:"status" validate:"omitempty,oneof=active archived"`
}

Jump to

Keyboard shortcuts

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