notebook

package
v3.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNotebookService

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

Types

type NotebookResolver

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

func NewResolver added in v3.12.2

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

func (*NotebookResolver) GetCellIndexByBlock added in v3.12.2

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

func (*NotebookResolver) ResolveDaggerShell

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

type Option added in v3.12.2

type Option func(*NotebookResolver) error

func WithDocumentPath added in v3.12.2

func WithDocumentPath(path string) Option

func WithNotebook added in v3.12.2

func WithNotebook(notebook *parserv1.Notebook) Option

func WithSource added in v3.12.2

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