global

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tracer trace.Tracer = tracenoop.NewTracerProvider().Tracer(serviceName)
	Meter  metric.Meter = metricnoop.NewMeterProvider().Meter(serviceName)
)
View Source
var (
	PulumiRuntimes = []string{"go"}
)
View Source
var (
	Version = ""
)

Functions

func GetEtcdManager added in v0.4.5

func GetEtcdManager() *etcd.Manager

func GetOCIManager added in v0.6.2

func GetOCIManager() *oci.Manager

func SetupOTelSDK added in v0.6.4

func SetupOTelSDK(ctx context.Context) (shutdown func(context.Context) error, err error)

SetupOTelSDK configures the OpenTelemetry signals exporters.

func WithChallengeID added in v0.1.4

func WithChallengeID(ctx context.Context, id string) context.Context

func WithIdentity added in v0.4.0

func WithIdentity(ctx context.Context, id string) context.Context

func WithSourceID added in v0.1.4

func WithSourceID(ctx context.Context, id string) context.Context

func WithoutChallengeID added in v0.4.3

func WithoutChallengeID(ctx context.Context) context.Context

func WithoutIdentity added in v0.4.3

func WithoutIdentity(ctx context.Context) context.Context

func WithoutSourceID added in v0.4.3

func WithoutSourceID(ctx context.Context) context.Context

Types

type Configuration

type Configuration struct {
	Directory string
	Cache     string
	LogLevel  string

	Etcd struct {
		Endpoint string
		Username string
		Password string //nolint:gosec //#gosec G117 -- FP, we don't marshal this object into JSON
	}

	OCI struct {
		Insecure bool
		Username string
		Password string //nolint:gosec //#gosec G117 -- FP, we don't marshal this object into JSON
	}
}

Configuration holds the parameters that are shared across submodules.

var (
	Conf Configuration
)

type Logger

type Logger struct {
	Sub *zap.Logger
}

func Log

func Log() *Logger

func (*Logger) Debug

func (log *Logger) Debug(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Error

func (log *Logger) Error(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Info

func (log *Logger) Info(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Warn

func (log *Logger) Warn(ctx context.Context, msg string, fields ...zap.Field)

Jump to

Keyboard shortcuts

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