c8ybinary

package
v2.60.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const BarFiller = "[━━ ]"

Variables

This section is empty.

Functions

func AddProgress

func AddProgress(cmd *cobra.Command, fileFlag string, progress *mpb.Progress) func(r *http.Request) (*http.Request, error)

func CreateBinaryWithProgress

func CreateBinaryWithProgress(ctx context.Context, client *c8y.Client, path string, filename string, properties interface{}, progress *iostreams.Progress) (*c8y.Response, error)

func CreateProxyReader

func CreateProxyReader(progress *iostreams.Progress) func(response *http.Response) io.Reader

func NewProgressBar

func NewProgressBar(progress *iostreams.Progress, filename string) (*mpb.Bar, error)

func NewProxyReader

func NewProxyReader(progress *iostreams.Progress, r io.ReadCloser, filename string) (io.ReadCloser, error)

func WithBinaryUploadURL

func WithBinaryUploadURL(clientFunc ClientFunc, progress *iostreams.Progress, opts ...string) flags.GetOption

WithBinaryUploadURL uploads an inventory binary and returns the URL to it

Types

type ClientFunc added in v2.30.0

type ClientFunc func() (*c8y.Client, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL