Documentation
¶
Index ¶
- Constants
- func DestroySharedProvider(ctx context.Context, runtime Runtime) error
- func DestroySharedProviderAt(ctx context.Context, runtime Runtime, dataDir, namespace string) error
- func ExportProviderInteractionTrace(ctx context.Context, m application.Manifest, source observability.SignalSource) (string, error)
- func ExportProviderInteractionTraceAt(ctx context.Context, m application.Manifest, source observability.SignalSource, ...) (string, error)
- func ProviderEndpoint(files ProviderFiles) (string, error)
- func VerificationTracePayload(m application.Manifest) []byte
- func VerifyApplication(ctx context.Context, m application.Manifest, files application.RuntimeFiles) error
- func VerifyApplicationAt(ctx context.Context, m application.Manifest, files application.RuntimeFiles, ...) error
- type Driver
- func (d *Driver) Bind(_ context.Context, resource capability.Resource, _ capability.Binding) error
- func (d *Driver) Descriptor() capability.Provider
- func (d *Driver) Preflight(_ context.Context, resource capability.Resource, binding capability.Binding) error
- func (d *Driver) Provision(ctx context.Context, resource capability.Resource, _ capability.Binding) error
- func (d *Driver) SetTraceBackend(endpoint, network string)
- func (d *Driver) Verify(ctx context.Context, resource capability.Resource, _ capability.Binding) error
- type ProviderFiles
- func EnsureProviderFiles(ctx context.Context, issuer serviceaccess.Issuer) (ProviderFiles, error)
- func EnsureProviderFilesWithTraceBackend(ctx context.Context, issuer serviceaccess.Issuer, ...) (ProviderFiles, error)
- func EnsureProviderFilesWithTraceBackendForEnvironment(ctx context.Context, issuer serviceaccess.Issuer, ...) (ProviderFiles, error)
- func EnsureProviderFilesWithTraceBackendForEnvironmentAt(ctx context.Context, issuer serviceaccess.Issuer, ...) (ProviderFiles, error)
- func ExistingProviderFiles() (ProviderFiles, error)
- func ExistingProviderFilesAt(dataDir, namespace string) (ProviderFiles, error)
- type Runtime
Constants ¶
View Source
const ( ProviderProject = "baseharbor-telemetry" ProviderService = "otel-collector" ProviderNetwork = "baseharbor-telemetry" ProviderImage = "docker.io/otel/opentelemetry-collector-contrib:0.161.0" ExternalHeadersEnv = "BASEHARBOR_OTLP_HEADERS" ProbeTraceIDHex = "42617365486172626f72303430370001" )
Variables ¶
This section is empty.
Functions ¶
func DestroySharedProviderAt ¶ added in v0.4.15
func ExportProviderInteractionTrace ¶ added in v0.4.15
func ExportProviderInteractionTrace(ctx context.Context, m application.Manifest, source observability.SignalSource) (string, error)
func ExportProviderInteractionTraceAt ¶ added in v0.4.15
func ExportProviderInteractionTraceAt(ctx context.Context, m application.Manifest, source observability.SignalSource, dataDir, namespace string) (string, error)
func ProviderEndpoint ¶ added in v0.4.10
func ProviderEndpoint(files ProviderFiles) (string, error)
func VerificationTracePayload ¶ added in v0.4.10
func VerificationTracePayload(m application.Manifest) []byte
func VerifyApplication ¶
func VerifyApplication(ctx context.Context, m application.Manifest, files application.RuntimeFiles) error
func VerifyApplicationAt ¶ added in v0.4.15
func VerifyApplicationAt(ctx context.Context, m application.Manifest, files application.RuntimeFiles, dataDir, namespace string) error
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func NewDriver ¶
func NewDriver(runtime Runtime, app application.Manifest, files application.RuntimeFiles, issuer serviceaccess.Issuer) *Driver
func NewDriverAt ¶ added in v0.4.15
func NewDriverAt(runtime Runtime, app application.Manifest, files application.RuntimeFiles, issuer serviceaccess.Issuer, dataDir, namespace string) *Driver
func (*Driver) Bind ¶
func (d *Driver) Bind(_ context.Context, resource capability.Resource, _ capability.Binding) error
func (*Driver) Descriptor ¶
func (d *Driver) Descriptor() capability.Provider
func (*Driver) Preflight ¶
func (d *Driver) Preflight(_ context.Context, resource capability.Resource, binding capability.Binding) error
func (*Driver) Provision ¶
func (d *Driver) Provision(ctx context.Context, resource capability.Resource, _ capability.Binding) error
func (*Driver) SetTraceBackend ¶ added in v0.4.10
func (*Driver) Verify ¶
func (d *Driver) Verify(ctx context.Context, resource capability.Resource, _ capability.Binding) error
type ProviderFiles ¶
type ProviderFiles struct {
Dir string
Compose string
Env string
Config string
Project string
Network string
}
func EnsureProviderFiles ¶
func EnsureProviderFiles(ctx context.Context, issuer serviceaccess.Issuer) (ProviderFiles, error)
func EnsureProviderFilesWithTraceBackend ¶ added in v0.4.10
func EnsureProviderFilesWithTraceBackend(ctx context.Context, issuer serviceaccess.Issuer, traceEndpoint, traceNetwork string) (ProviderFiles, error)
func EnsureProviderFilesWithTraceBackendForEnvironment ¶ added in v0.4.15
func EnsureProviderFilesWithTraceBackendForEnvironment(ctx context.Context, issuer serviceaccess.Issuer, traceEndpoint, traceNetwork, environment string) (ProviderFiles, error)
func EnsureProviderFilesWithTraceBackendForEnvironmentAt ¶ added in v0.4.15
func EnsureProviderFilesWithTraceBackendForEnvironmentAt(ctx context.Context, issuer serviceaccess.Issuer, traceEndpoint, traceNetwork, environment, dataDir, namespace string) (ProviderFiles, error)
func ExistingProviderFiles ¶
func ExistingProviderFiles() (ProviderFiles, error)
func ExistingProviderFilesAt ¶ added in v0.4.15
func ExistingProviderFilesAt(dataDir, namespace string) (ProviderFiles, error)
Click to show internal directories.
Click to hide internal directories.