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
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
Click to show internal directories.
Click to hide internal directories.