progress

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OllamaPullProgress

type OllamaPullProgress struct {
	Status    string `json:"status"`
	Digest    string `json:"digest,omitempty"`
	Total     int64  `json:"total,omitempty"`
	Completed int64  `json:"completed,omitempty"`
}

OllamaPullProgress represents the progress information from Ollama pull API

type ProgressModel

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

ProgressModel represents the progress bar model

func NewProgressModel

func NewProgressModel() ProgressModel

NewProgressModel creates a new progress model

func (ProgressModel) Init

func (m ProgressModel) Init() tea.Cmd

Init initializes the progress model

func (ProgressModel) Update

func (m ProgressModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles progress updates

func (ProgressModel) View

func (m ProgressModel) View() string

View renders the progress bar

type ProgressReader

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

ProgressReader wraps an io.Reader to provide progress updates for Ollama pull operations

func NewProgressReader

func NewProgressReader(reader io.Reader) *ProgressReader

NewProgressReader creates a new progress reader for Ollama pull operations

func (*ProgressReader) Close

func (pr *ProgressReader) Close() error

Close stops the progress display and waits for cleanup

func (*ProgressReader) Read

func (pr *ProgressReader) Read(p []byte) (n int, err error)

Read implements io.Reader and parses Ollama streaming responses

Jump to

Keyboard shortcuts

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