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

traces

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func DestroyAllSharedProviders

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

func DestroyProvider

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

func EnsureProviderFiles

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

func ExistingProviderFiles

func ExistingProviderFiles(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 VerifyTrace

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

Types

type Driver

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

func NewDriver

func NewDriver(runtime Runtime, 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 Provision

func Provision(ctx context.Context, runtime Runtime, m application.Manifest) (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
}

Jump to

Keyboard shortcuts

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