Help us shape the future of Go! Take the 2026 Go Developer Survey

traces

package
v0.4.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProviderImage   = "docker.io/grafana/tempo:3.0.2"
	ProviderService = "tempo"
)

Variables

This section is empty.

Functions

func DestroyAllSharedProviders

func DestroyAllSharedProviders(ctx context.Context, runtime Runtime) error

func DestroyAllSharedProvidersAt added in v0.4.15

func DestroyAllSharedProvidersAt(ctx context.Context, runtime Runtime, dataDir, namespace string) error

func DestroyProvider

func DestroyProvider(ctx context.Context, runtime Runtime, m application.Manifest) error

func DestroyProviderAt added in v0.4.15

func DestroyProviderAt(ctx context.Context, runtime Runtime, m application.Manifest, dataDir, namespace string) error

func EnsureProviderFilesAt added in v0.4.15

func EnsureProviderFilesAt(ctx context.Context, issuer serviceaccess.Issuer, dataDir, namespace string, m application.Manifest) (ProviderFiles, Placement, error)

func ExistingProviderFiles

func ExistingProviderFiles(m application.Manifest) (ProviderFiles, Placement, error)

func ExistingProviderFilesAt added in v0.4.15

func ExistingProviderFilesAt(dataDir, namespace string, m application.Manifest) (ProviderFiles, Placement, error)

func NetworkEndpoint

func NetworkEndpoint(p Placement) string

func ProviderEndpoint

func ProviderEndpoint(files ProviderFiles) (string, error)

func StopProvider

func StopProvider(ctx context.Context, runtime Runtime, m application.Manifest) error

func StopProviderAt added in v0.4.15

func StopProviderAt(ctx context.Context, runtime Runtime, m application.Manifest, dataDir, namespace string) error

func VerifyTrace

func VerifyTrace(ctx context.Context, m application.Manifest, traceID string) error

func VerifyTraceAt added in v0.4.15

func VerifyTraceAt(ctx context.Context, m application.Manifest, traceID, dataDir, namespace string) error

Types

type Driver

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

func NewDriver

func NewDriver(runtime Runtime, app application.Manifest, issuer serviceaccess.Issuer) *Driver

func NewDriverAt added in v0.4.15

func NewDriverAt(runtime Runtime, app application.Manifest, issuer serviceaccess.Issuer, dataDir, namespace string) *Driver

func NewDriverWithRealization added in v0.4.19

func NewDriverWithRealization(realization TempoRealization, app application.Manifest) *Driver

func (*Driver) Bind

func (*Driver) Descriptor

func (d *Driver) Descriptor() capability.Provider

func (*Driver) Preflight

func (d *Driver) Preflight(_ context.Context, resource capability.Resource, _ capability.Binding) error

func (*Driver) Provision

func (d *Driver) Provision(ctx context.Context, _ capability.Resource, _ capability.Binding) error

func (*Driver) Verify

type Placement

type Placement struct {
	Scope            capability.ProviderScope
	Project          string
	Network          string
	Volume           string
	Dir              string
	SharingBoundary  string
	OwnerApplication string
}

func PlacementFor

func PlacementFor(m application.Manifest) (Placement, error)

func PlacementForAt added in v0.4.15

func PlacementForAt(dataDir, namespace string, m application.Manifest) (Placement, error)

func Provision

func Provision(ctx context.Context, runtime Runtime, issuer serviceaccess.Issuer, m application.Manifest) (Placement, error)

func ProvisionAt added in v0.4.15

func ProvisionAt(ctx context.Context, runtime Runtime, issuer serviceaccess.Issuer, m application.Manifest, dataDir, namespace string) (Placement, error)

type ProviderFiles

type ProviderFiles struct {
	Dir     string
	Compose string
	Env     string
	Config  string
}

type Runtime

type Runtime interface {
	ConfigProject(context.Context, string, string, string) error
	UpProject(context.Context, string, string, string) error
	StopProject(context.Context, string, string, string) error
	DestroyProject(context.Context, string, string, string) error
}

type TempoInstance added in v0.4.19

type TempoInstance struct {
	Endpoint   string
	HTTPClient *http.Client
}

type TempoRealization added in v0.4.19

type TempoRealization interface {
	Apply(context.Context) (TempoInstance, error)
	Existing(context.Context) (TempoInstance, error)
	VerifyTrace(context.Context, string) error
	Destroy(context.Context) error
}

Jump to

Keyboard shortcuts

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