helpers

package
v0.0.0-...-13597f4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package helpers contains helpers for the flare component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlareEndpoint

func GetFlareEndpoint(cfg config.Reader) string

GetFlareEndpoint creates the flare endpoint URL

func NewFlareBuilder

func NewFlareBuilder(localFlare bool, flareArgs types.FlareArgs) (types.FlareBuilder, error)

NewFlareBuilder returns a new FlareBuilder ready to be used. You need to call the Save method to archive all the data pushed to the flare as well as cleanup the temporary directories created. Not calling 'Save' after NewFlareBuilder will leave temporary directory on the file system.

func SendTo

func SendTo(cfg pkgconfigmodel.Reader, archivePath, caseID, email, apiKey, url string, source FlareSource) (string, error)

SendTo sends a flare file to the backend. This is part of the "helpers" package while all the code is moved to components. When possible use the "Send" method of the "flare" component instead.

Types

type FlareSource

type FlareSource struct {
	// contains filtered or unexported fields
}

FlareSource has metadata about why the flare was sent

func NewLocalFlareSource

func NewLocalFlareSource() FlareSource

NewLocalFlareSource returns a flare source struct for local flares

func NewRemoteConfigFlareSource

func NewRemoteConfigFlareSource(rcTaskUUID string) FlareSource

NewRemoteConfigFlareSource returns a flare source struct for remote-config

Jump to

Keyboard shortcuts

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