analytics

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationTypeUpload   = "upload"
	OperationTypeDownload = "download"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheOperation

type CacheOperation struct {
	OperationID          string    `json:"operationId"`
	OperationType        string    `json:"operationType"`
	StartedAt            time.Time `json:"startedAt"`
	DurationMilliseconds int       `json:"durationMs"`
	TransferSize         int64     `json:"transferSizeBytes"`
	CacheKey             string    `json:"cacheKey"`
	CacheKeyType         *string   `json:"cacheKeyType,omitempty"`
	Error                *string   `json:"error,omitempty"`
	CIProvider           string    `json:"ciProvider"`
	ProjectID            *string   `json:"projectId,omitempty"`
	BuildID              *string   `json:"buildId,omitempty"`
	RepositoryURL        *string   `json:"repositoryUrl,omitempty"`
	CommitHash           string    `json:"commitHash"`
	Branch               *string   `json:"branch,omitempty"`
	WorkflowID           *string   `json:"workflowId,omitempty"`
	WorkflowTitle        *string   `json:"workflowTitle,omitempty"`
	CLIVersion           string    `json:"cliVersion"`
	FileStats            FileStats `json:"fileStats"`
}

type Client

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

func NewClient

func NewClient(baseURL string, accessToken string, logger log.Logger) (*Client, error)

func (*Client) PutCacheOperation

func (c *Client) PutCacheOperation(op CacheOperation) error

type FileStats

type FileStats struct {
	FilesToTransfer  int `json:"filesToTransfer"`
	FilesTransferred int `json:"filesTransferred"`
	FilesFailed      int `json:"filesFailed"`
	FilesMissing     int `json:"filesMissing"`
	TotalFiles       int `json:"totalFiles"`
}

Jump to

Keyboard shortcuts

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