notebook

package
v3.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCellInterpreter

func GetCellInterpreter(notebook *parserv1.Notebook, cell *parserv1.Cell) string

func NewNotebookService

func NewNotebookService(logger *zap.Logger) notebookv1alpha1.NotebookServiceServer

Types

type NotebookResolver

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

func NewResolver

func NewResolver(opts ...Option) (*NotebookResolver, error)

func (*NotebookResolver) GetCellIndexByBlock

func (r *NotebookResolver) GetCellIndexByBlock(block *document.CodeBlock) (uint32, error)

func (*NotebookResolver) IsDaggerShellCell

func (r *NotebookResolver) IsDaggerShellCell(notebook *parserv1.Notebook, cell *parserv1.Cell) bool

func (*NotebookResolver) ResolveDaggerShell

func (r *NotebookResolver) ResolveDaggerShell(context context.Context, cellIndex uint32) (string, error)

type Option

type Option func(*NotebookResolver) error

func WithDocumentPath

func WithDocumentPath(path string) Option

func WithNotebook

func WithNotebook(notebook *parserv1.Notebook) Option

func WithSource

func WithSource(source []byte) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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