Affected by GO-2024-2814
and 1 other vulnerabilities
GO-2024-2814 : Pterodactyl Wings vulnerable to Arbitrary File Write/Read in github.com/pterodactyl/wings
GO-2024-2815 : Pterodactyl Wings vulnerable to Server-Side Request Forgery during remote file pull in github.com/pterodactyl/wings
Discover Packages
github.com/pterodactyl/wings
internal
progress
package
Version:
v1.11.9
Opens a new window with list of versions in this module.
Published: Mar 13, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Progress struct {
Writer io .Writer
}
Progress is used to track the progress of any I/O operation that are being
performed.
NewProgress returns a new progress tracker for the given total size.
Progress returns a formatted progress string for the current progress.
SetTotal sets the total size of the archive in bytes. This function is safe
to call concurrently and can be used to update the total size if it changes,
such as when the total size is simultaneously being calculated as data is
being written through the progress writer.
Total returns the total size in bytes.
Write totals the number of bytes that have been written to the writer.
Written returns the total number of bytes written.
This function should be used when the progress is tracking data being written.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.