logging

package
v0.0.0-...-f3a14d9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPackageContext

func NewPackageContext(ctx context.Context, tenantName string, defaultLogDestinations []SupportedLogDestination) context.Context

Types

type LogDestination

type LogDestination interface {
	IsNode()
	IsLogDestination()
}

func FromWorkload

func FromWorkload(ctx context.Context, wl workload.Workload) []LogDestination

type LogDestinationLoki

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

func (LogDestinationLoki) GrafanaURL

func (l LogDestinationLoki) GrafanaURL(ctx context.Context) string

func (LogDestinationLoki) ID

func (LogDestinationLoki) IsLogDestination

func (LogDestinationLoki) IsLogDestination()

func (LogDestinationLoki) IsNode

func (LogDestinationLoki) IsNode()

type LogDestinationSecureLogs

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

func (LogDestinationSecureLogs) ID

func (LogDestinationSecureLogs) IsLogDestination

func (LogDestinationSecureLogs) IsLogDestination()

func (LogDestinationSecureLogs) IsNode

func (LogDestinationSecureLogs) IsNode()

type SupportedLogDestination

type SupportedLogDestination string
const (
	Loki       SupportedLogDestination = "loki"
	SecureLogs SupportedLogDestination = "secure_logs"
)

func (SupportedLogDestination) String

func (s SupportedLogDestination) String() string

func (SupportedLogDestination) Valid

func (s SupportedLogDestination) Valid() bool

Jump to

Keyboard shortcuts

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