c8ybinary

package
v2.39.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 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(clientFunc ClientFunc, progress *mpb.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