progressbar

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressBar

type ProgressBar struct {
	TerminalWidthFunc func() (int, error)
	// contains filtered or unexported fields
}

func New

func New(isDownload bool) *ProgressBar

func (*ProgressBar) ReceiveAttestation added in v0.4.0

func (p *ProgressBar) ReceiveAttestation(description string, totalSize int, stream agent.AgentService_AttestationClient, attestationFile *os.File) error

func (*ProgressBar) ReceiveResult added in v0.4.0

func (p *ProgressBar) ReceiveResult(description string, totalSize int, stream agent.AgentService_ResultClient, resultFile *os.File) error

func (*ProgressBar) SendAlgorithm

func (p *ProgressBar) SendAlgorithm(description string, algo, req *os.File, stream agent.AgentService_AlgoClient) error

func (*ProgressBar) SendData

func (p *ProgressBar) SendData(description, filename string, file *os.File, stream agent.AgentService_DataClient) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳