Documentation
¶
Overview ¶
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Index ¶
- type ProgressBar
- func (p *ProgressBar) ReceiveAttestation(description string, totalSize int, stream agent.AgentService_AttestationClient, ...) error
- func (p *ProgressBar) ReceiveResult(description string, totalSize int, stream agent.AgentService_ResultClient, ...) error
- func (p *ProgressBar) SendAlgorithm(description string, algo, req *os.File, stream agent.AgentService_AlgoClient) error
- func (p *ProgressBar) SendData(description, filename string, file *os.File, ...) error
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
Click to show internal directories.
Click to hide internal directories.