tenant

package
v0.110.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeTenantSource

type AttributeTenantSource struct {
	Value string
}

func (*AttributeTenantSource) GetTenant

func (ts *AttributeTenantSource) GetTenant(_ context.Context, logs plog.Logs) (string, error)

type ContextTenantSource

type ContextTenantSource struct {
	Key string
}

func (*ContextTenantSource) GetTenant

func (ts *ContextTenantSource) GetTenant(ctx context.Context, _ plog.Logs) (string, error)

type LogsPerTenant

type LogsPerTenant map[string]plog.Logs

LogsPerTenant holds a registry of plog.Logs per tenant

type Source

type Source interface {
	GetTenant(context.Context, plog.Logs) (string, error)
}

type StaticTenantSource

type StaticTenantSource struct {
	Value string
}

func (*StaticTenantSource) GetTenant

func (ts *StaticTenantSource) GetTenant(_ context.Context, _ plog.Logs) (string, error)

Jump to

Keyboard shortcuts

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