Documentation
¶
Overview ¶
Package dmsgcurl pkg/dmsg/dmsgcurl/dmsgcurl.go c1-net-dmsg
Package dmsgcurl pkg/dmsg/dmsgcurl/flags.go c1-net-dmsg
Package dmsgcurl pkg/dmsg/dmsgcurl/progress_writer.go c1-net-dmsg
Package dmsgcurl pkg/dmsg/dmsgcurl/url.go c1-net-dmsg
Index ¶
Constants ¶
View Source
const ExecName = "dmsgcurl"
ExecName contains the execution name.
Variables ¶
View Source
var ( ErrNoURLs = errors.New("no URLs provided") ErrMultipleURLsNotSupported = errors.New("multiple URLs is not yet supported") )
Errors related to URLs.
View Source
var Version = buildinfo.Version()
Version contains the version string.
Functions ¶
Types ¶
type DmsgCurl ¶
type DmsgCurl struct {
// contains filtered or unexported fields
}
DmsgCurl contains the logic for dmsgcurl (curl over dmsg).
func (*DmsgCurl) Run ¶
func (dg *DmsgCurl) Run(ctx context.Context, log *logging.Logger, skStr string, args []string) (err error)
Run runs the download logic.
type ProgressWriter ¶
type ProgressWriter struct {
// atomic requires 64-bit alignment for struct field access
Current int64
Total int64
}
ProgressWriter prints the progress of a download to stdout.
Click to show internal directories.
Click to hide internal directories.