shared

package module
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

README

Shared Module

This go module contains shared functionality for components of the Ocelot Cloud ecosystem.

Documentation

Index

Constants

View Source
const (
	TRACE logLevelValue = iota
	DEBUG
	INFO
	WARN
	ERROR
)

Variables

View Source
var DataDir = "data"

Functions

func Execute

func Execute(commandStr string)

func ExecuteShellCommand

func ExecuteShellCommand(shellCommand string) error

func GetLogLevel added in v0.0.14

func GetLogLevel() string

Types

type Logger

type Logger interface {
	Trace(message string, v ...any)
	Debug(message string, v ...any)
	Info(message string, v ...any)
	Warn(message string, v ...any)
	Error(message string, v ...any)
	Fatal(message string, v ...any)
}

func ProvideLogger

func ProvideLogger(logLevel string) Logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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