Documentation ¶
Index ¶
- func AddCLIProject(org, project string)
- func AddEarthfileProject(org, project string)
- func CollectAnalytics(ctx context.Context, cloudClient *cloud.Client, displayErrors bool, meta Meta, ...)
- func Count(subsystem, key string)
- func DetectCI(isEarthlyCIRunner bool) (string, bool)
- func ProjectDetails() (string, string)
- type Counters
- type Meta
- type ProjectTracker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCLIProject ¶ added in v0.7.0
func AddCLIProject(org, project string)
func AddEarthfileProject ¶ added in v0.7.0
func AddEarthfileProject(org, project string)
func CollectAnalytics ¶
func CollectAnalytics(ctx context.Context, cloudClient *cloud.Client, displayErrors bool, meta Meta, installationName string)
CollectAnalytics sends analytics to api.earthly.dev
func Count ¶ added in v0.6.15
func Count(subsystem, key string)
Count increases the global count of (subsystem, key) which then gets reported when CollectAnalytics is called.
func DetectCI ¶ added in v0.6.28
DetectCI determines if Earthly is being run from a CI environment. It returns the name of the CI tool and true if we detect one.
func ProjectDetails ¶ added in v0.7.0
Types ¶
type Counters ¶ added in v0.6.15
type Counters struct {
// contains filtered or unexported fields
}
Counters is a threadsafe collection of counters
type Meta ¶ added in v0.6.20
type Meta struct { Version string Platform string BuildkitPlatform string UserPlatform string GitSHA string CommandName string ExitCode int Target domain.Target IsSatellite bool SatelliteVersion string IsRemoteBuildkit bool Realtime time.Duration OrgName string ProjectName string EarthlyCIRunner bool }
Meta holds metadata about the current run of the program.
type ProjectTracker ¶ added in v0.7.0
type ProjectTracker struct {
// contains filtered or unexported fields
}
func (*ProjectTracker) AddCLIProject ¶ added in v0.7.0
func (pt *ProjectTracker) AddCLIProject(org, project string)
func (*ProjectTracker) AddEarthfileProject ¶ added in v0.7.0
func (pt *ProjectTracker) AddEarthfileProject(org, project string)
func (*ProjectTracker) ProjectDetails ¶ added in v0.7.0
func (pt *ProjectTracker) ProjectDetails() (string, string)
Click to show internal directories.
Click to hide internal directories.