kasapp

package
v17.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 121 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// GitLabReleasesList contains a list of GitLab Releases in the format of `Major.Minor`,
	// for example `17.10` or `16.5`.
	GitLabReleasesList []string
)

Functions

func ApplyDefaultsToKASConfigurationFile

func ApplyDefaultsToKASConfigurationFile(cfg *kascfg.ConfigurationFile)

func ErrReporterWithoutAgentInfos

func ErrReporterWithoutAgentInfos(hub SentryHub) errz.ErrReporter

func LoadConfigurationFile

func LoadConfigurationFile(ctx context.Context, configFile string) (*kascfg.ConfigurationFile, error)

LoadConfigurationFile loads the configuration file. This function does not run any validation logic.

func NewCommand

func NewCommand() *cobra.Command

Types

type App

type App struct {
	ConfigurationFile string
}

func (*App) Run

func (a *App) Run(ctx context.Context) error

type ConfiguredApp

type ConfiguredApp struct {
	Log           *slog.Logger
	Hub           *sentry.Hub
	Validator     prototool.Validator
	Configuration *kascfg.ConfigurationFile
}

func (*ConfiguredApp) Run

func (a *ConfiguredApp) Run(ctx context.Context) (retErr error)

type SentryHub

type SentryHub interface {
	CaptureEvent(event *sentry.Event) *sentry.EventID
}

type TraceDualWriter

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

func (*TraceDualWriter) ExportSpans

func (tdw *TraceDualWriter) ExportSpans(ctx context.Context, spans []tracesdk.ReadOnlySpan) error

func (*TraceDualWriter) Shutdown

func (tdw *TraceDualWriter) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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