operations

package
v0.0.0-...-1b83794 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpsManagerCollectFailureMessage = "Failed collecting from Operations Manager"
	CredhubCollectFailureMessage    = "Failed collecting from Credhub"
	UsageCollectFailureMessage      = "Failed collecting from Usage Service"
	DataWriteFailureMessage         = "Failed writing data"
	ContentReadingFailureMessage    = "Failed to read content"
	UUIDGenerationErrorMessage      = "unable to generate UUID"
	CoreCountsCollectFailureMessage = "Failed collecting from Core Counting API"
)
View Source
const (
	AuthorizationHeaderKey         = "Authorization"
	PostPath                       = "/collections/batch"
	TarContentType                 = "application/tar"
	GzipContentEncoding            = "gzip"
	HTTPSenderVersionRequestHeader = "Pivotal-Telemetry-Sender-Version"

	RequestCreationFailureMessage = "Failed make request object"
	PostFailedMessage             = "Failed to do request"
	ReadDataFileError             = "Unable to read data file"
	UnauthorizedErrorMessage      = "User is not authorized to perform this action"
	UnexpectedServerErrorFormat   = "" /* 128-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectExecutor

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

func NewCollector

func NewCollector(opsmanagerDC omDataCollector, credhubDC credhubDataCollector, consumptionDC consumptionDataCollector, coreConsumptionDC coreConsumptionDataCollector, tarWriter tarWriter, uuidProvider uuidProvider, operationalDataOnly bool) *CollectExecutor

func (*CollectExecutor) Collect

func (ce *CollectExecutor) Collect(envType, collectorVersion, foundationNickname string) error

type SendExecutor

type SendExecutor struct{}

func (SendExecutor) Send

func (s SendExecutor) Send(client httpClient, tarFilePath, dataLoaderURL, apiToken, senderVersion string) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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