utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func BlockUntilSignal

func BlockUntilSignal(signals ...os.Signal)

func ExecuteUntilFirstError

func ExecuteUntilFirstError(fns ...func() error) error

func InitializeCron

func InitializeCron() (*cron.Cron, func())

func InitializeDockerClient

func InitializeDockerClient() (*client.Client, error)

func InitializeLogger

func InitializeLogger(logConfig configs.Log) (*zap.Logger, func(), error)

func LoggerWithContext

func LoggerWithContext(ctx context.Context, logger *zap.Logger) *zap.Logger

func TrimSpaceRight

func TrimSpaceRight(s string) string

Types

type Arguments

type Arguments struct {
	Distributed           bool
	Worker                bool
	NoBrowser             bool
	HostAddress           string
	WorkerAccountName     string
	WorkerAccountPassword string
	PullImageAtStartUp    bool
}

Jump to

Keyboard shortcuts

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