import "go.undefinedlabs.com/scopeagent/agent"
agent.go cache.go ci.go config.go container.go dependencies.go git.go ntp.go recorder.go remote_config.go report.go util.go
type Agent struct {
// contains filtered or unexported fields
}
Creates a new Scope Agent instance
Flush agent buffer
Runs the test suite
Stops the agent
func (a *Agent) Tracer() opentracing.Tracer
type Config struct { CurrentProfile string `json:"currentProfile"` Profiles map[string]Profile `json:"profiles"` }
type DiffFileItem struct { Path string `json:"path" msgpack:"path"` Added int `json:"added" msgpack:"added"` Removed int `json:"removed" msgpack:"removed"` Status string `json:"status" msgpack:"status"` PreviousPath *string `json:"previousPath" msgpack:"previousPath"` }
type GitDiff struct { Type string `json:"type" msgpack:"type"` Version string `json:"version" msgpack:"version"` Uuid string `json:"uuid" msgpack:"uuid"` Files []DiffFileItem `json:"files" msgpack:"files"` }
func WithRecorders(recorders ...tracer.SpanRecorder) Option
type Profile struct { ApiEndpoint string `json:"apiEndpoint"` ApiKey string `json:"apiKey"` OAuthToken string `json:"oauthToken"` }
type RecorderStats struct {
// contains filtered or unexported fields
}
func NewSpanRecorder(agent *Agent) *SpanRecorder
func (r *SpanRecorder) Flush() error
Flush recorder
func (r *SpanRecorder) RecordSpan(span tracer.RawSpan)
Appends a span to the in-memory buffer for async processing
func (r *SpanRecorder) Stop()
Stop recorder
Package agent imports 39 packages (graph) and is imported by 2 packages. Updated 2020-06-30. Refresh now. Tools for package owners.