c8ybinary

package
v2.22.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 15 Imported by: 0

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 *mpb.Progress) (*c8y.Response, error)

func CreateProxyReader

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

func NewProgressBar

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

func NewProxyReader

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

func WithBinaryUploadURL

func WithBinaryUploadURL(client *c8y.Client, progress *mpb.Progress, opts ...string) flags.GetOption

WithBinaryUploadURL uploads an inventory binary and returns the URL to it

Types

This section is empty.

Jump to

Keyboard shortcuts

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